Lean GA4 BigQuery event + funnel querying
Project description
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
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",
)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ga4bigquery-1.0.0.tar.gz.
File metadata
- Download URL: ga4bigquery-1.0.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4848be3b599a5e03b0fc6778a7080786936c06faa9ef595dadc0669ffc06da94
|
|
| MD5 |
3b73565b9ec69c952834d56b20acc3a2
|
|
| BLAKE2b-256 |
cf9baf709f79922c86e0251cbfda5174b14ba01ee7cdb268191145eadba4ef6e
|
Provenance
The following attestation bundles were made for ga4bigquery-1.0.0.tar.gz:
Publisher:
publish.yml on hortemo/ga4bigquery
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ga4bigquery-1.0.0.tar.gz -
Subject digest:
4848be3b599a5e03b0fc6778a7080786936c06faa9ef595dadc0669ffc06da94 - Sigstore transparency entry: 533472176
- Sigstore integration time:
-
Permalink:
hortemo/ga4bigquery@983818d98a3d34f9d454d68e25c2e58a0c89d9af -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/hortemo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@983818d98a3d34f9d454d68e25c2e58a0c89d9af -
Trigger Event:
release
-
Statement type:
File details
Details for the file ga4bigquery-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ga4bigquery-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
093992df2ba9c098dd8fc1131547165324fb72ab91cb03425a82961322c532d4
|
|
| MD5 |
684586a00b9860bc9b1df99ee5a33f80
|
|
| BLAKE2b-256 |
136899168b5a3dc4c08e793c66c2e2b04f8f6bcfe25b03899e98ef080d157f8b
|
Provenance
The following attestation bundles were made for ga4bigquery-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on hortemo/ga4bigquery
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ga4bigquery-1.0.0-py3-none-any.whl -
Subject digest:
093992df2ba9c098dd8fc1131547165324fb72ab91cb03425a82961322c532d4 - Sigstore transparency entry: 533472211
- Sigstore integration time:
-
Permalink:
hortemo/ga4bigquery@983818d98a3d34f9d454d68e25c2e58a0c89d9af -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/hortemo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@983818d98a3d34f9d454d68e25c2e58a0c89d9af -
Trigger Event:
release
-
Statement type: