Skip to main content

Google Analytics client for asyncio

Project description


info:Google Analytics client for asyncio


pip install aioga


import asyncio
import uuid

from aioga import GA


async def go():
    cid = uuid.uuid4()

    async with GA(TRACKING_ID) as ga:
        ga.event(str(cid), ec='tests', ea='success from context manager')
        # all methods returns asynio.Tasks, which can be awaited if needed

loop = asyncio.get_event_loop()


The library is asynchronous client for measurement protocol. All available hit types are supported.

Full documentation of measurement protocol provides by google

Available methods

  • pageview
  • screenview
  • event
  • transaction
  • item
  • social
  • exception
  • timing

Available parameters

All methods require cid (Client ID). The value of this field should be a random UUID (version 4) as described in

Library support all available parametes for measurement protocol (documentation here)

Project details

Download files

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

Files for aioga, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aioga-0.1.0-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aioga-0.1.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page