Server side implemenation of Google Analytics in Python.
pyga is an iplementation 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 deprectaed. 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
To know more about mobiletracking 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 = '126.96.36.199' session = Session() page = Page('/path') tracker.track_pageview(page, session, visitor)
Thanks to: Expicient Inc
And for you fans outthere, we even have mountain bikes named pyga ;)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|pyga-2.5.1-py2-none-any.whl (24.2 kB) Copy SHA256 Checksum SHA256||py2||Wheel||Jun 5, 2016|
|pyga-2.5.1.tar.gz (21.3 kB) Copy SHA256 Checksum SHA256||–||Source||Jun 5, 2016|