1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
PYGA: Python Google Analytics - Data Collection API
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/#
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 mobile-tracking 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: Expicient Inc
And for you fans out there, we even have mountain bikes named pyga ;)
Release files for pyga 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyga-2.6.0.tar.gz | 21.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyga-2.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.9 kB
Release files / pyga-2.6.0.tar.gz
| Download URL | pyga-2.6.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a0667e81ed07dca1e028af02d70406795dd8e17df6957497643f7d9d863c299
|
|
BLAKE2b-256 checksum How to use checksums |
1507ad0fc6b16b678468396742022058d3ddaac5db3871db35596444f9214253
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/36.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|
Release files / pyga-2.6.0-py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyga-2.6.0-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81115bb9af93a5c2aa8d96d7d35c0ee339d2b36ed75b0ac201736f3239572575
|
|
BLAKE2b-256 checksum How to use checksums |
b3b5dfdb2ae8b0e74315a96cde51831485e637876729b2fa9beae4a6a9a90c4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|