A Python library for processing Google Analytics 4 data
Project description
GA4 Analytics Processor
A Python library for processing Google Analytics 4 data with built-in data transformations and channel grouping logic.
Installation
pip install ga4-analytics-processor
Quick Start
from ga4_analytics import GA4Processor
from datetime import datetime, timedelta
# Initialize processor
processor = GA4Processor(
credentials_path="/path/to/your/credentials.json",
property_id="your_ga4_property_id"
)
# Define date range
end_date = datetime.now().date()
start_date = end_date - timedelta(days=7)
# Fetch and process general report
df = processor.get_general_report(start_date, end_date)
print(df.head())
Features
- Easy GA4 API integration
- Built-in data transformations and cleaning
- Channel grouping and campaign labeling
- Revenue reallocation logic
- Email campaign data integration
- Configurable data formatting
Requirements
- Python 3.8+
- Google Analytics Data API credentials
- pandas, numpy, google-analytics-data
License
MIT License
Project details
Release history Release notifications | RSS feed
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 ga4_analytics_processor-0.1.0.tar.gz.
File metadata
- Download URL: ga4_analytics_processor-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d06eb2423143a2acfabebdfa683c4a7d5ab476ca3fce58d582acafe7e8054a1b
|
|
| MD5 |
6c6981f979ce2fda1fc09dd6a70dd05d
|
|
| BLAKE2b-256 |
4f0bf1959898f14c380f2d162e3360ae82b959ede26e65ff4a87229fc9239f3a
|
File details
Details for the file ga4_analytics_processor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ga4_analytics_processor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
209511303eb8d158f2876e418b5383f510e1f2038a37e7205600604b7d8b3ccf
|
|
| MD5 |
19123cce018488720eead3e30760f28e
|
|
| BLAKE2b-256 |
786a38ef4963771fcef79d05ecda6348c1e58d942e50aa09d8b085a3fa71d2cf
|