Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.


import analytical

provider = analytical.Provider('googleanalytics', 'UA-XXXXXXX-1')
    'dl': '',
    'dt': 'My Page Title',
    'ua': 'user-agent',             # User agent
    'uip: '',            # User IP address


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for analytical, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size analytical-0.0.1-py2.py3-none-any.whl (23.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size analytical-0.0.1.tar.gz (26.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page