Python Server Side Analytics
Project description
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
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
Documentation: https://analytical.readthedocs.io
IRC: #readthedocs on freenode
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for analytical-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68009b125e086c995f973f3c6021760fade59ea0970caedc1f9467b74df43098 |
|
MD5 | 79d4ab44f49ee349580d5d5ac8c8778d |
|
BLAKE2b-256 | 52db844603676eabedbb78939c2c7f9d1b2edce178a980aa99c196309a349774 |