Skip to main content

Server side implemenation of Google Analytics in Python.

Project description

Build Status

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).

Use Cases

  1. You want to track data from server side

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyga-fc-2.4.2.tar.gz (21.7 kB view details)

Uploaded Source

File details

Details for the file pyga-fc-2.4.2.tar.gz.

File metadata

  • Download URL: pyga-fc-2.4.2.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyga-fc-2.4.2.tar.gz
Algorithm Hash digest
SHA256 482b6d83583a3608ca79dedd10b2bf708b84024d19914d714f3918412d1087cd
MD5 a780c6ed1b193be3b2fa7d2c63e8a67a
BLAKE2b-256 0adf7e97fffd88ea96f3a012fb5ff8dac448b486cb7938cb065db540283c3cb7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page