Google Analytics can be used as a reporting tool for Datatrics. For this to work, you need to add Custom Dimensions to Google Analytics and enter their indexes in the Datatrics platform.
Custom Dimensions are like default dimensions in your Analytics account, except you create them yourself. You can use them to collect and analyze data that Analytics doesn't automatically track. Datatrics sends data to these Custom Dimension for A/B-testing, labeling visitors with a customer type and persuasion type, and reporting which touchpoints have been shown.
To create custom dimensions in Google Analytics:
- Sign in to Google Analytics.
- Click on Admin in the bottom left corner, and navigate to the property to which you want to add custom dimensions.
- In the PROPERTY column, click Custom Definitions > Custom Dimensions.
- Click New Custom Dimension.
- Add the following Custom Dimensions:
- Datatrics Journey (With the scope: User)
- Datatrics Buying Phase (With the scope: User)
- Datatrics Campaign (With the scope: User)
- Datatrics Persuasion (With the scope: User)
- Datatrics Customer Type (With the scope: User)
- Datatrics Segment (With the scope: User)
- Datatrics Touchpoint (With the scope: Hit) - Optional
- Datatrics Touchpoint Content (With the scope: Hit) - Optional
Each Custom Dimension has an associated index, which are automatically added and start at 1. You can find the indexes at the Custom Dimensions overview (This screenshot doesn't include the "Datatrics Segment" custom dimension, don't forget to add it):
Note: this property already uses three other Custom Dimensions, so the Custom Dimension “Datatrics Group” has an index of 4.
Now head to your project in Datatrics and click on your project name in the top left corner. Click on Channels in the dropdown menu, and navigate to the channel Google Analytics.
When you haven’t connected Google Analytics to Datatrics yet, you will need to do this first.
If Google Analytics is connected, you will find a translation table with the names of the Custom Dimensions you just added to Google Analytics. In this table, you need to enter the indexes of the Custom Dimensions.
Note: this is an example, based on the Custom Dimensions of the screenshot earlier in this post.
If you added the Datatrics Tracking script to the source code of your website, you’re all set and Datatrics will start reporting to Google Analytics! If you added the Datatrics Tracking script with Google Tag Manager, an additional tag and a few variables need to be added to Google Tag Manager. Don’t worry, we explained it over here.