ga4bigquery
ga4bigquery is a lightweight helper for working with Google Analytics 4 (GA4) exports stored in BigQuery.
Installation
pip install ga4bigquery
Usage
from datetime import date, timedelta
from ga4bigquery import GA4BigQuery, FunnelStep
ga = GA4BigQuery(table_id="bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*")
page_views = ga.request_events(
events=["page_view"],
start=date(2020, 11, 1),
end=date(2020, 11, 2),
measure="totals",
group_by="platform",
interval="day",
)
purchase_funnel = ga.request_funnel(
steps=[
FunnelStep(event_name="view_item"),
FunnelStep(event_name="add_to_cart"),
FunnelStep(event_name="purchase"),
],
start=date(2020, 11, 1),
end=date(2020, 11, 2),
group_by="platform",
interval="day",
conversion_window_lt=timedelta(hours=1),
)
Metadata
Release files for ga4bigquery 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ga4bigquery-1.3.0.tar.gz | 17.5 kB | With provenance | Details for ga4bigquery-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ga4bigquery-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for ga4bigquery-1.3.0-py3-none-any.whl |
Total release size: 33.1 kB
Release files / ga4bigquery-1.3.0.tar.gz
| Download URL | ga4bigquery-1.3.0.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c7e96e269b39939727fe2c9ef166d3e056b71a0f6aae1aeefadeb20252cf7d9
|
|
BLAKE2b-256 checksum How to use checksums |
c3a44c8c4d4c80a3e520f025ac02c9733f3aa96f70498b6147d5ea989b228b24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 11, 2026.
Transparency logRelease files / ga4bigquery-1.3.0-py3-none-any.whl
| Download URL | ga4bigquery-1.3.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31600733c694d8d8e1c9ddd1b6fc03281ee89c3607ee2e183fd4b443206bf00d
|
|
BLAKE2b-256 checksum How to use checksums |
318fb689112ce787c3ab554c2470b97814102f7541539288b9d230e3765ba171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 11, 2026.
Transparency logSecurity for ga4bigquery 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ga4bigquery-1.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.