A Python library for importing data into Google Analytics 4 (GA4) via the Data API. Version 0.1.66 supports batch data uploads for user, item, and event-scoped dimensions and metrics. It uses the google-analytics-data library under the hood. Active development with frequent releases.
pip install ga4-data-importNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the GA4DataImport client and uploads a small dataset.
Pass a plain numeric string, e.g., '123456789'.
You must delete data via the GA4 UI or the Admin API before re-uploading if needed.
Change import to: from ga4_data_import import GA4DataImport