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.

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

  1. In your GA account, navigate to GA Admin and the specific property running Digioh, then to Custom Definitions > Custom Dimensions.
  2. Create a new Custom Dimension called DIUID scoped at User level. We don’t need the code offered after creating the dimension.
  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, choose the one that has the most data (usually “All Website Data”).


2.4: Choose up to 10 segments to target with Digioh. These will be available for use in the “GA Segment” dropdown 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 targets at the user level with a daily data refresh, so session-based segments are less useful.



Step 3: Configure GA Integration

Now you are in the main configuration screen. Here, you can change your GA account (rare), change the profile (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: Select your embed type. If you deploy Digioh through Google Tag Manager (GTM), you will need to follow the Additional GTM Setup Steps below. If you deploy Digioh JavaScript directly to your site, choose Digioh Code Autogenerated.

3.3: In Dimension for DIUID, enter the index number for the new GA dimension created in step 1.


3.3. For ESP settings, please coordinate with Digioh support, or leave blank for now.

3.4. Save your settings. If you used GTM, follow the additional steps below.

Step 4: For customers deploying Digioh via Google Tag Manager

Setup via GTM is a little technical, but is the recommended approach, as it minimizes the amount of data we need to send to your Google Analytics instance.


4.1: Log into your GTM account and create a new User-Defined Variable.


google analytics segment user defined variables


4.2: Set the Variable Type to “Custom JavaScript.”


google tag manager custom javascript


4.3: Save your new variable

save variable in google tag manager


4.4: Add the variable as a Custom Dimension to your Tag

add variable as custom dimension GTM


…and make sure that you configure the tag to trigger on all pages:

configure tag to trigger on all pages


4.5: Publish your changes in your GTM account.

publish your changes in GTM