• Google Tag Manager integration via Shopify Custom Pixel

    IMPORTANT NOTICE:
    These instructions should only be followed if you have integrated the Google Tag Manager via the Shopify Custom Pixel. 

    In short

    In this guide, you will learn how to transmit the Varify events to Google Analytics 4 using the Google Tag Manager via the Shopify Custom Pixel integration.

    Shopify integration using the custom pixel

    Step 1: Selection of the Analytics Connection "Shopify App / Custom Pixel"

    Go to app.varify.io and click on "Go to tracking setup". Then select "Google Analytics 4 (Shopify Custom Pixel Integration)" in the Tracking Setup Wizard. Follow the steps of the setup wizard. Only if you are already using GTM on your site is it necessary to follow the steps below.

    Step 2: Add the varify analytics.subscribe function in the custom pixel of the GTM

    Call up the "Customer events" area in the Shopify backend and open the custom pixel in which you have integrated your GTM.

    The Varify event is created using the analytics.subscribe added to your DataLayer. In the screenshot, you can see the Varify event inserted at the bottom.

    Add the following code to your Custom Pixel below the Google Tag Manager code:

    analytics.subscribe('varify', (event) => {
      window.dataLayer.push({
       'event': "varify",
        ...event.customData
      });
    });

    Step 3: Deactivating the "Start Tracking on Activation Event" option

    Go to "Advanced Setup" under "Tracking Options". Deactivate the "Start Tracking on Activation Event" option.

    Step 4: Setting up the Google Tag Manager

    To set up the Google Tag Manager  . 

  • First steps