Server side implementation of Google Analytics in Python.
pyga is an implementation of Google Analytics (ga.js) in Python; so that it can be used at server side. This project only helps you with Data Collection part of Google Analytics. ie., You can consider this as a replacement for ga.js at client side.
Google Provides Android SDK,iOS SDK + Flash SDK. And left everybody else with a single page documentation about GIF request parameters. Also with a basic sample of server side implementation in quite a few languages (perl, php, jsp).
PS: Google moved away from ga.js to analytics.js; a new operating standard for Google Analytics named “universal analytics”. Soon ga.js will be deprecated. I’m planning to have a pyga equivalent to the new standard. Read more here at https://developers.google.com/analytics/devguides/collection/upgrade/#upgrade-guides https://developers.google.com/analytics/devguides/collection/protocol/v1/#getting-started
- PyPi Package Page: http://pypi.python.org/pypi/pyga
- Main Repository: https://github.com/kra3/py-ga-mob
- Documentation: http://readthedocs.org/docs/pyga-python-google-analytics-data-collection-api/en/latest/#
- You want to track data from server side
- You’re developing a mobile site and have to support devices w/o JS support
To know more about mobile-tracking see: https://developers.google.com/analytics/devguides/collection/other/mobileWebsites
from pyga.requests import Tracker, Page, Session, Visitor tracker = Tracker('MO-XXXXX-X', 'yourdomain.com') visitor = Visitor() visitor.ip_address = '18.104.22.168' session = Session() page = Page('/path') tracker.track_pageview(page, session, visitor)
Thanks to: Expicient Inc
And for you fans out there, we even have mountain bikes named pyga ;)
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyga-2.6.2-py3-none-any.whl (23.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pyga-2.6.2.tar.gz (23.2 kB)||File type Source||Python version None||Upload date||Hashes View|