• 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. 

    Table of contents

    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 "Shopify App / Custom Pixel" from the dropdown under "Analytics Connection" and then click on Update.

    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: Setting up the Google Tag Manager

    To set up the Google Tag Manager  . 

  • First steps