universal-analytics-python3
Universal analytics python library
Decision gist · record as of 2026-08-14
No—not for new projects. The package is abandoned (last release 2021-04-28, no commits since), and maintenance risk is high. If you must integrate with legacy Universal Analytics properties, this library will work for basic tracking, but you assume all maintenance risk. For new work, use a maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Google Analytics property ID (UA-XXXXX-Y format) and a unique client ID for tracking.
- Low install friction with a single runtime dependency (httpx).
- However, the package is abandoned—last release was 2021-04-28, with no recent maintenance activity.
License · maintenance · safety
permissive license (permissive) — Distributed under the MIT license (permissive), which allows commercial and private use with minimal restrictions.
last release 2021-04-28 (1934 days) · last repo commit 2021-04-29 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,240 downloads/mo, #10,250 on PyPI
Alternatives
Verify before relying
pip install universal-analytics-python3
from universal_analytics import Tracker, HTTPRequest
with HTTPRequest() as http:
tracker = Tracker("UA-XXXXX-Y", http, client_id="unique-id")
tracker.send("event", "Subscription", "billing")- Whether Google Analytics still accepts the Universal Analytics Measurement Protocol or requires migration.
- Compatibility of httpx dependency with current versions, given abandonment since 2021-04-28.
- Whether batch request functionality works reliably with current Google Analytics endpoints.
- Support status for Python versions beyond 3.9 (classifiers list 3.7, 3.8, 3.9).
What it is and what it does
This library provides a Python interface to Google Analytics using the Universal Analytics Measurement Protocol. It wraps HTTP calls to Google's analytics endpoint, allowing you to track events, pageviews, social interactions, timing data, and other analytics events from Python code—either synchronously or asynchronously, and optionally in batches. The interface is loosely modeled after analytics.js, so developers familiar with that API will recognize the patterns.
The package depends only on httpx for HTTP transport and supports both single-request and batch-request workflows. It covers the main tracking types (pageview, event, social, timing, transaction, item, screenview, exception) and accepts parameters in multiple formats—named arguments, property dictionaries, or analytics.js field names. However, the project has been abandoned since 2021-04-28 and is no longer maintained, which means any issues or incompatibilities will not be addressed.
Use it for
- Track backend events (purchases, signups, errors) to Google Analytics from a Python application.
- Send server-side pageview data to Google Analytics for server-rendered or hybrid web applications.
- Batch multiple analytics events into a single HTTP request to reduce network overhead.
- Implement asynchronous analytics tracking in async Python applications without blocking request handlers.
- Run A/B tests by setting experiment and variation IDs before sending pageview or event hits.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—not for new projects.
The package is abandoned (last release 2021-04-28, no commits since), and maintenance risk is high. If you must integrate with legacy Universal Analytics properties, this library will work for basic tracking, but you assume all maintenance risk. For new work, use a maintained alternative.
Install
universal-analytics-python3 on PyPI
Before you install
Low install friction with a single runtime dependency (httpx). However, the package is abandoned—last release was 2021-04-28, with no recent maintenance activity. Use only if you accept the risk of unpatched issues.
Requires a valid Google Analytics property ID (UA-XXXXX-Y format) and a unique client ID for tracking.
License in practice
Distributed under the MIT license (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install universal-analytics-python3
from universal_analytics import Tracker, HTTPRequest
with HTTPRequest() as http:
tracker = Tracker("UA-XXXXX-Y", http, client_id="unique-id")
tracker.send("event", "Subscription", "billing")
Verify before relying
- Whether Google Analytics still accepts the Universal Analytics Measurement Protocol or requires migration.
- Compatibility of httpx dependency with current versions, given abandonment since 2021-04-28.
- Whether batch request functionality works reliably with current Google Analytics endpoints.
- Support status for Python versions beyond 3.9 (classifiers list 3.7, 3.8, 3.9).
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagehttpx |
| Maintenance | Abandoned 1,934 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,240 / month, #10,250 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: universal_analytics_python3-1.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “universal analytics measurement protocol”
- universal-analytics-python3Sends event and pageview data to Google Analytics via the Universal…
- line-protocol-parserParses InfluxDB line protocol strings into Python dictionaries,…
- PyVISA-simPyVISA-sim provides a simulated VISA backend for PyVISA that lets you…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also analytics-python · snowplow-tracker · google-analytics-data · openvino-telemetry · kanaries-track · django-analytical · analytics-mcp · amplitude-analytics · minimal-snowplow-tracker · aiotractive