Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/readthedocs/analytical
Analytics done server side
https://github.com/readthedocs/analytical
Last synced: 4 days ago
JSON representation
Analytics done server side
- Host: GitHub
- URL: https://github.com/readthedocs/analytical
- Owner: readthedocs
- License: mit
- Created: 2018-11-01T06:34:38.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T15:30:02.000Z (8 months ago)
- Last Synced: 2024-10-12T00:26:46.997Z (about 1 month ago)
- Language: Python
- Homepage: https://analytical.readthedocs.io
- Size: 37.1 KB
- Stars: 1
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. This file is included automatically by docs/index
Analytical - Server Side Analytics
==================================Analytical is a Python library for sending pageviews and events to analytics platforms
like Google Analytics except from Python rather than JavaScript so it can be done server side.
This has a number of advantages such as working regardless of whether clients block analytics scripts,
privacy sensitive information can be anonymized or removed before sending,
and it allows sending data only known by the server.Feature support
---------------* Convenient utilities for anonymizing sensitive information like IP addresses
* Pluggable provider backends for different analytics platforms (currently just Google)Supports Python 2.7, Python 3.5+, and PyPy.
Example
-------.. code-block:: python
import analytical
provider = analytical.Provider('googleanalytics', 'UA-XXXXXXX-1')
provider.pageview({
'dl': 'https://example.com',
'dt': 'My Page Title',
'ua': 'user-agent', # User agent
'uip: '12.34.56.78', # User IP address
})Resources
---------* GitHub: https://github.com/rtfd/analytical
* Documentation: https://analytical.readthedocs.io
* IRC: #readthedocs on freenode