LoginMetrics for Churches without Campuses ========================================== The LoginMetrics python script produces a formatted report showing the total numbers of logins for the past 30 days whether the login was on a mobile device or on a web browser. .. figure:: https://i.tpsdb.com/loginmetricsnc.jpg :target: # Sample LoginMetrics Report .. note:: This article describes the python script needed by a church that does not have multiple campuses. If you use the Campus feature of TouchPoint, see :doc:`LoginMetrics`. Create the LoginMetrics Script ------------------------------- Step 1 Go to `Administration > Setup > Special Content` and select the `Python Scripts` tab. Step 2 Click the green `+ New Python Script File` button and enter the name of the file as ``LoginMetrics`` and press `Submit`. Step 3 Copy all of the code below and then paste it into the new script file and press the blue `Save Python Script` button. .. literalinclude:: Files/LoginMetricsNC.py :linenos: Step 4 The default reporting period is the past 30 days. If you need to change this, modify the numbers on lines 4, 11, and 15. For example, to modify the report to cover the past 60 days, change the ``30`` in these lines to ``60``. Step 5 Click the `Run Script` button at the top of the form. Then, if you want the report available on the Reports Menu, click the link at the bottom of the report - `Add Report to Menu`. | | +--------------------+------------------+ | **Latest Update** | **11/13/2020** | +--------------------+------------------+ Modify image link with secure protocol.