Use Google Analytics as a reporting tool

Setting up custom dimensions and enter their indexes in the Datatrics platform

Christiaan Proper avatar
Written by Christiaan Proper
Updated over a week ago

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:

  1. Sign in to Google Analytics.

  2. Click on Admin in the bottom left corner, and navigate to the property to which you want to add custom dimensions.

  3. In the PROPERTY column, click Custom Definitions > Custom Dimensions.

  4. Click New Custom Dimension.

  5. Add the following Custom Dimensions:

  • Datatrics Group (With the scope: User) - You can ignore the JavaScript snippets

  • 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 right corner. Click on Integrations in the dropdown menu, and navigate to the Google Analytics integration.

When you haven’t connected Google Analytics to Datatrics yet, you will need to do this first. Be sure to set the dimension sync to "no", so you can add the index numbers manually.

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 have an active Google Tag Manager container on your website, an additional tag and a few variables need to be added to Google Tag Manager. Don’t worry, we explained it over here.

Did this answer your question?