Server side implemenation of Google Analytics in Python.
Project description
pyga is an iplementation of Google Analytics 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).
PyPi Package Page: http://pypi.python.org/pypi/pyga
Main Repository: https://github.com/kra3/py-ga-mob
Copy Repository: https://bitbucket.org/kra3/pyga/overview
Documentation: http://readthedocs.org/docs/pyga-python-google-analytics-data-collection-api/en/latest/#
Use Cases
You want to track data from server side
You’re developing a mobile site and have to support devices w/o JS support
Supported Features
Page View
E-Commerce
Social Interaction
Custom Variables
Events
Campaigns
not yet
Ad-Words
Search Engine
To know more about mobiletracking see: https://developers.google.com/analytics/devguides/collection/other/mobileWebsites
Example
from pyga.requests import Tracker, Page, Session, Visitor
tracker = Tracker('MO-XXXXX-X', 'yourdomain.com')
visitor = Visitor()
visitor.ip_address = '194.54.176.12'
session = Session()
page = Page('/path')
tracker.track_pageview(page, session, visitor)
Thanks to:
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 Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyga-2.2.tar.gz.
File metadata
- Download URL: pyga-2.2.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7684b4b41ab8d33f4d7537fa448c2f75db8381ec05871cfe164119c2b610f47a
|
|
| MD5 |
bb5fc12a1734bc9f13e345d731899207
|
|
| BLAKE2b-256 |
55ad69f8b9a96fa909b0d4c5469c4bbe2f87e01359d4f597bbd948f6e3956ed3
|
File details
Details for the file pyga-2.2.linux-x86_64.tar.gz.
File metadata
- Download URL: pyga-2.2.linux-x86_64.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90044188ad9654bfd948caded1e149cf4c66d61a92812f9f80bf37e90d35643a
|
|
| MD5 |
16e7ef36c48717293ee6bc931d1ae693
|
|
| BLAKE2b-256 |
a45c7fb8e252d05ebc58355f37b23afd67291c3805985bca333958a905330133
|
File details
Details for the file pyga-2.2-py2.7.egg.
File metadata
- Download URL: pyga-2.2-py2.7.egg
- Upload date:
- Size: 42.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e542ba8acb34e37d855e6c34bb481a55d47d7b40912384f07a117ad2a00c625
|
|
| MD5 |
dd13b497e237ad5298bfe3312fffceef
|
|
| BLAKE2b-256 |
3427216451d67ee8f20931aa35f4cf3f0cf75b847f67c57644f4c2ee3681976a
|