Google Analytics 4 Events
This guide shows how to export Google Analytics 4 Events and give access to Maya to process them for further analysis.
Setup instructions
Prerequisites
To connect Google Analytics 4 Events to Maya, you need
- Access to a A Google Analytics 4 account.
- A Google Cloud Platform role with sufficient permissions to provision IAM roles for BigQuery access.
In your developers settings, make a note of the unique auto-generated email address at the bottom of the setup form ( i.e, [email protected]). You will need this email to configure your source system to sync with Maya.
note
The auto-generated email is unique and tied to your account.
Configure BigQuery export for GA4ExportFollow Google's step-by-step instructions to configure BigQuery export for Google Analytics 4 Export .
or proceed with the following steps:
Log in to the Google APIs Console.
Create a Google APIs Console project or select an existing project (write down this project_id because you will need it later) - i.e mayainsights.
Navigate to the APIs table. Open the Navigation menu in the top-left corner, click APIs & Services, then click Library.
Activate BigQuery. Under Google Cloud APIs, click BigQuery API. On the following page, click Enable. If prompted, review and agree to the Terms of Service.
In Google Analytics, click Admin. Make sure you are in the correct account and property.
In the Property column, under PRODUCT LINKS, click BigQuery Links. Click Link.
Click Choose a BigQuery project to display a list of projects for which you have at least read permission.
Finish the steps and click submit.
Grant permissions to Maya.Go to your Google Cloud Platform project IAM section.
Click + Grant Access to add new user. The Add principals form appears.
In the New principals field, enter the auto-generated email address you copied in Step 1 (i.e, [email protected]).
Select the A.Bigquery Job User, B.BigQuery Data Viewer, C.Storage Object Admin.
Maya must have these permissions to access Google Analytics 4 Export tables and create the jobs necessary to query the BigQuery tables. Use a separate project for datasets that you do not want Maya to be able to query.
Give Access to Maya.After the first run of ga4 export to your big query project (by the next day), the dataset_id containing the analytics data will become available. Then in order to conclude the Maya integration you need to:
Go to your Google Bigquery and select the project you configured in step 1.
In Google Bigquery under mayainsights you will see a dataset (datasetid) with the following pattern "analytics\<number>" (i.e analytics_30456743). Write down this dataset_id along with project_id because you will need it in the next step.
Login to Maya.
Go to Sources.
Add Google Analytics 4 Events.
In the new screen enter the project_id and dataset_id created.
Click Save.
General information
Maya Dashboards
Maya Database
You can inspect database schema here.
Release notes
Version | Description |
---|---|
0.0.1 | GA4 BETA. |
FAQ
Questions?
We would be happy to answer any questions you may have! Send us an email at [email protected].