Skip to main content

aioga

info:

Google Analytics client for asyncio

https://img.shields.io/travis/aio-libs/aioga.svg https://img.shields.io/pypi/v/aioga.svg

Installation

pip install aioga

Usage

import asyncio
import uuid

from aioga import GA

TRACKING_ID = 'XX-XXXXXXXX-X'


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()
loop.run_until_complete(go())
loop.close()

Documentation

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 http://www.ietf.org/rfc/rfc4122.txt

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

Metadata

Release files for aioga 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioga 0.1.0
File Size Uploaded
aioga-0.1.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioga 0.1.0
File Interpreter ABI Platform
aioga-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / aioga-0.1.0.tar.gz

Download URL aioga-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e73e24c56ee2194c120fb75c2e4d112c5452cdf6cf529014ac9b30488be701d5
BLAKE2b-256 checksum
How to use checksums
31d3d4a9c4010b89f86b0a8610519fb0d1087824320aef30a48d5f39b4cb891c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / aioga-0.1.0-py3-none-any.whl

Download URL aioga-0.1.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73ba7f04fb9b06cf82e9a82e2f05f9890a414032103db1302147e8a8ccdb7a4b
BLAKE2b-256 checksum
How to use checksums
5616c63c167c6e41ea8e8072953216254f39d08d83c3e2af2329a896c97f8e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.4

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page