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:
Metadata
Release files for pyga-fc 2.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyga-fc-2.4.2.tar.gz | 21.7 kB | Without provenance | Details for pyga-fc-2.4.2.tar.gz |
Release files / pyga-fc-2.4.2.tar.gz
| Download URL | pyga-fc-2.4.2.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
482b6d83583a3608ca79dedd10b2bf708b84024d19914d714f3918412d1087cd
|
|
BLAKE2b-256 checksum How to use checksums |
0adf7e97fffd88ea96f3a012fb5ff8dac448b486cb7938cb065db540283c3cb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyga-fc 2.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.