Registry / aws / ga-attribution-scrape

ga-attribution-scrape

JSON →
library0.2.1pypypi✓ verified 81d ago

Scrapes attribution data from Google Analytics Model Comparison Tool via JS network requests and sends to BigQuery. Currently v0.2.1, pre-1.0 with sporadic releases. Works only on GA Goals (not ecommerce) and loops through each goal individually.

pip install ga-attribution-scrape
INSTALL
IMPORT
SIG · GA-ATTRIBUTION-SCR
G
ga-attribution-scrape
awspythonv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Scrape
from ga_attribution_scrape import Scrape
from ga_attribution_scrape import ScrapeAttribution
scrape
from ga_attribution_scrape import scrape

Basic usage: initialize with property ID, goal ID, and credentials, then scrape.

from ga_attribution_scrape import ScrapeAttribution scraper = ScrapeAttribution( property_id='123456789', goal_id='90', lookback_days=30, sample_size=10000, credentials_path='path/to/service-account-key.json' ) results = scraper.scrape() print(results.head())
Debug
Known issues
gotchaWorks only on GA Goals, not ecommerce conversions. Does not aggregate goals; loops through each goal individually.
fix
Ensure you're using GA Goal IDs, not ecommerce conversion IDs.
affects: all
gotchaRequires a valid Google Cloud service account key with BigQuery write permissions. The library will fail silently if permissions are missing.
fix
Check that the service account has roles/bigquery.dataEditor on the dataset.
affects: all
breakingThe library relies on headless browser automation (likely Selenium) and may break with browser updates.
fix
Keep browser drivers updated. Consider pinning browser version in Docker.
affects: <=0.2.1
Upgrade
Version history
0.2.1latest on PyPI · released Dec 7, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
ga-attribution-scrape — pip install ga-attribution-scrape · libregistry