How to set up Advanced Google Analytics integration (Universal and 360)

Follow these steps to enable Google Analytics (GA) integration for advanced Segment Targeting in Digioh box conditions. If you are looking for standard event tracking to GA, see this article instead.

Step 1: Add a new GA Custom Dimension for DIUID in your GA Account

1.1: Login to your GA account, and navigate to GA Admin and the specific property running Digioh, then to Custom Definitions > Custom Dimensions.
1.2: Create a new Custom Dimension called DIUID scoped at User level. We don’t need the code that GA offers after creating the dimension.
1.3: Click Done, then note the “index” number (1 – 20) assigned for the new Custom Dimension, it will be used in the next step.

Step 2: Connect GA to Digioh

2.1: Ask Digioh support to enable “CDP” for your account, then open the configurator in Digioh via the profile dropdown menu option: GA Segments.
2.2: You will be prompted to log into GA through Digioh and grant us permission to access your data. We need “view and manage” to access your custom segments.

2.3: Choose the main profile (view) for the specific property running Digioh. If you have multiple views for the property, pick the one that has the most data, usually “All Website Data”.

2.4: Choose up to 10 segments that you want to target with Digioh. These will be available for use in the “GA Segment” drop down in box conditions (rules). Built in GA segments have negative IDs. Your custom segments if any are at the bottom of the list, you can add more later. Digioh is targeting at the user level with a daily data refresh, so session-based segments are less useful here.

Step 3: Configure GA Integration

Now you are in the main configuration screen. Here you can change your GA account (rare), change the profile (if you want to use a different view), add/remove segments, and browse visitor data in Digioh to see what we pulled from GA.
3.1: Select your version of Google Analytics, Universal (free), or 360.
3.2: For embed type, if you are deploying Digioh through Google Tag Manager (GTM) then choose that and later you will need to follow the Additional GTM Setup Steps below. If you are deploying Digioh JS directly to your site choose Digioh Code Autogenerated.
3.3: In Dimension for DIUID, enter the index number for the new GA dimension you created in step 1.
3.3. For ESP settings, please co-ordinate with Digioh support, or just leave blank for now.
3.4. Save your settings. If you used GTM, follow the additional steps below

Step 4: Only for customers deploying Digioh via Google Tag Manager

Setup via GTM is a little technical, but is actually the recommended approach as it minimizes the amount of data that we need to send to your Google Analytics instance.
4.1: Log into your GTM account and create a new User-Defined Variable
4.2: Set the Variable Type to “Custom JavaScript”
…and paste the following code into the Custom JavaScript section:
4.3: Save your new variable
4.4: Add the variable as a Custom Dimension to your Tag
…and make sure that you configure the tag to trigger on all pages:
4.5: Publish your changes within your GTM account