Google Analytics 4 - Traffic Integration

Configuring this integration will enable Indigo8 to pull Engaged Sessions by date for each property/online store. The metric will be pulled each day at 3am for the previous date and store in a foot traffic table alongside instore traffic counter data. This data will be presented on the Dashboard > Retail Summary and facilitate the calculation of Conversion Rate %.

 

Metric = EngagedSessions. An engaged session is a session that lasts longer than 10 seconds, has a conversion event, or has at least 2 pageviews or screenviews.

 

The following documentation from Google has been followed to create the integration:

https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries

 

Steps to configure:

1. Enable the API
Client with access to the Google Analytics account should create a new Cloud Platform project, and in doing so will automatically enable the Google Analytics Data API v1 and create the service account.

To do so, please click the “Enable the Google Analytics Data API v1” button on this page → https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries

In resulting dialog click DOWNLOAD CLIENT CONFIGURATION and save the file credentials.json to your working directory.

 

2. Add service account to the Google Analytics 4 property
Using a text editor, open the credentials.json file downloaded in the previous step and search for client_email field to obtain the service account email address that looks similar to:

quickstart@PROJECT-ID.iam.gserviceaccount.com
Use this email address to add a user to the Google Analytics 4 property you want to access via the Google Analytics Data API v1. For this purpose only Viewer permissions are needed.

 

3. Add credentials to Indigo8

a. Add the online stores that will be tracked

b. Type in the Property ID given in Google Analytics

c. Upload the credentials.json file that was created in step 1 for each store

d. Save