Google Analytics 4 Export Setup Guide
Prerequisites
- Access to a Google Analytics 4 (GA4) account.
- A Google Cloud Platform user who can grant IAM roles. Matia needs the following BigQuery and Cloud Storage roles:
| ROLE | REASON |
|---|---|
| BigQuery Job User | To create queries |
| BigQuery Data Viewer | To view the data |
| Storage Object Admin | To automate data loading |
| Storage Bucket Viewer | To validate bucket |
Setup Guide
-
Turn on the BigQuery export for your GA4 data by following Google's guide: Set up BigQuery Export
-
Look up the Project ID and Dataset ID that the export writes to: Project List
-
Give MATIA access to the project:
- Open the IAM page in Google Cloud Platform: IAM
- Select desired project.
- Click +Grant Access to add MATIA as a principal.
- Paste the MATIA email address that was generated for you (matia-****@***...) into the New principals field.
- Assign it four roles: BigQuery Job User, BigQuery Data Viewer, Storage Bucket Viewer, and Storage Object Admin.
- Click save.
-
Create a bucket for MATIA in Google Cloud Storage:
Required: create the bucket in the Google Cloud project that receives your GA4 BigQuery export.
- Open the Storage Browser in the Google Cloud Console
- Click CREATE
- Open the new bucket's details and switch to the Permissions tab, then click +GRANT ACCESS in the Permissions section.
- Grant the MATIA email address from step 3 the Storage Object Admin and Storage Bucket Viewer roles on this bucket.
- Click SAVE