• Manual Google Tag Manager tracking integration

    ❗️These instructions apply to accounts that have their tracking not until 11.02.2025 have set up. If your account already has a tracking setup, everything will remain as usual - no changes are necessary.

    If you would still like to use the new Tracking setup switch? Find out how here: Migration to the Tracking Setup Wizard

    IMPORTANT NOTICE:
    The procedure for Google Tag Manager integration has changed. The previous integrations continue to work as usual.

    Table of contents

    In short

    At Tracking Setup Wizard you have the option of setting up manually via the Google Tag Manager (GTM) to be carried out. This requires adjustments to the GTM so that Experiment data an GA4 be sent.

    These instructions will show you step by step how to set up the Google Tag Manager set up correctly.

    Step-by-Step Tutorial
    Analytics integration via Google Tag Manager

    Tracking Setup Wizard setting

    If you are in the Tracking Setup Wizard manual analytics integration via the Google Tag Manager (GTM) additional adjustments are required in the GTM. Without these adjustments, no tracking events are sent to Google Analytics sent.

    Step 1: Setup in Google Tag Manager

    1. creation of a new data layer variable (VA Short)

    This variable is used to provide a tag with the information of the A/B test.

    1. Create a new variable: "Variables" > "New"
    2. Variable type -> "Data Layer Variable"
    3. Data Layer Variable Name -> varify_abTestShort (spelling obligatory)
    4. Name the variable -> VA Short

    2. create a new trigger (Varify.io - Event)

    The trigger is the decisive event that triggers the transmission of data to the Analytics system.

    1. Name of the trigger: e.g. "Varify.io - event"
    2. Trigger type: "User-defined event"
    3. Event name: varify (spelling obligatory)

    3. creation of a new GTM tag (Varify.io - GA4 Tracking Linker)

    Tags are code snippets that send the values stored in the variables to your analytics tool, such as Google Analytics. Now create a sochles tag to send the values of the created variable to Google Analytics.

    1. Name of the tag: "Varify.io - GA4 Tracking Linker"
    2. Configuration tag: [use your existing GA4 tag].
    3. Event name: e.g. "Abtesting"
    4. Parameter name: varify_abTestShort (Mandatory spelling)
    5. Values: {{VA Short}} (The variable created in step 1)
    6. Trigger: "Varify.io - event" (The trigger created in step 2)

    4. publish GTM Container

    To ensure that your adjustments in Google Tag Manager also work on your website, it is important to publish the changes.

    To do this, go to "Overview" in the Tag Manager on the left. Here you can see an overview of all the elements you have just created.

    To publish, click on the blue "Publish" button at the top right and confirm. The tag is now live and sends the data to your Google Analytics.

    Step 2: Transmitting the data to GA4

    Sending data with user consent

    You can send the experiment data to GA4 with or without user consent. If Google Analytics 4 already only sends data via User Consent, you should also only send the Varify data via User Consent. You can find out how this works here: Sending data with user consent

    Sending data without user consent

    The following steps describe how to send the data to GA4 without user consent.

    1. create a new custom HTML tag in GTM

    1. go to Tags in the Google Tag Manager and click on New. Now create a new custom HTML tag here.

    2. name the tag: "Varify Activate Tracking"

    3. paste the following code into the HTML field:

    4. save the tag. Confirm that the day without trigger is to be saved.

    				
    					<script>
        var active = true;
        window.varify.setTracking(active);
    </script>
    				
    			

    2. customize Google Tag configuration tag

    1. now go to your GA4 configuration tag and open it. Note: The easiest way to find it is to navigate to your tags and search for "Google Tag" with Ctrl+F

    2. click in the Tag Configuration area and select Advanced Settings and Tag Sequencing.

    3. now click on "Fire a tag after GA4 Config (The GA4 config tag) fires"

    4. select the Varify Active Tracking Tag you have just created.

    5. click on the tick below "Don't fire Varify Activate Tracking if GA4 Config fails or is paused"

    6. save the tag customization

    3. publish GTM Container

    To ensure that your adjustments in Google Tag Manager also work on your website, it is important to publish the changes.

    To do this, go to "Overview" in the Tag Manager on the left. Here you can see an overview of all the elements you have just created.

    To publish, click on the blue "Publish" button at the top right and confirm. The tag is now live and sends the data to your Google Analytics.

    Step 3: Setting up a custom dimension in GA4

    IMPORTANT NOTICE: 
    The custom dimension only needs to be created manually if your Varify account is not should be connected to Google Analytics 4 via the Google Authenticator.

    Finally, it is necessary to create a custom dimension in Google Analytics. Proceed as follows:

    1. open your GA4 settings and select the menu item "Custom definitions"

    2. create a new user-defined dimension ("Create custom dimension")

    3. select a dimension name: Varify AB Test(spelling obligatory)

    4. select the event parameter: varify_abTestShort . Make sure that you specify the event parameter in the correct notation.

    Important Notice: You will only be able to select the event parameter "varify_abTestShort" under the user-defined definition as soon as GA4 has received the first test data from you. After that, it may take up to 24 hours before you find the value in the dropdown. You can still enter the parameter manually, but make sure you use the correct spelling.

    Display the A/B test data in Varify.io

    With the Varify.io Google Analytics 4 Connection, you can easily display your results directly in your Varify.io dashboard. You can find out how to do this here: To the result evaluation in Varify.io

    Viewing the A/B test data in GA4

    You can analyze the data of the variations of your A/B test in GA4 with the Explorative Data Analysis. You can find more information here: To evaluate the results in GA4

  • First steps