
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
.. image:: https://secure.travis-ci.org/kra3/py-ga-mob.png?branch=master :alt: Build Status :target: http://travis-ci.org/kra3/py-ga-mob .. image:: https://img.shields.io/pypi/v/pyga.svg :target: http://pypi.python.org/pypi/pyga .. image:: https://coveralls.io/repos/github/kra3/py-ga-mob/badge.svg?branch=master :target: https://coveralls.io/github/kra3/py-ga-mob?branch=master .. image:: https://github.com/kra3/py-ga-mob/actions/workflows/codeql-analysis.yml/badge.svg :target: https://github.com/kra3/py-ga-mob/actions/workflows/codeql-analysis.yml
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
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
::
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)
PHP version <https://github.com/thomasbachem/php-ga>
_
Thanks to: Expicient Inc <http://www.expicient.com>
_
And for you fans out there, we even have mountain bikes named pyga <http://www.pygaindustries.com/bikes.html>
_ ;)
FAQs
Server side implementation of Google Analytics in Python.
We found that pyga demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.