Top

Google Analytics - Cross Domain Tracking with Recurring Orders

Google Analytics allows you to maintain tracking sessions across different domains that your website may have.  Because Recurring Orders checkout takes place on a different domain (recurringcheckout.com) than your Shopify store, you need to use it to track your customers through the entire checkout process.

If you know where your existing Google Analytics tracking code is, you can replace it with what is shown here or follow these steps to set it up:

  1. From "Shopify Admin", select Online Store.

    Select Online Store 

  2. Select ...

    Select ... 

  3. Select Edit HTML / CSS.

    Edit HTML / CSS 

  4. Under "Layout", select theme.liquid.

    select theme.liquid 

  5. Copy and paste this code directly above the </body> tag:
    <script>
    ga('create', 'YOUR GOOGLE ANALYTICS ID HERE LIKE UA-XXXXX-Y', 'auto', {allowLinker: true});
    ga('require', 'linker');
    ga('linker:autoLink', ['your custom domain mystore.com', 'your myshopify domain mystore.myshopify.com', 'recurringcheckout.com'], false, true);
    </script>

    paste this code 

  6. Replace YOUR GOOGLE ANALYTICS ID HERE LIKE UA-XXXXX-Y with your google analytics ID.

    Note: Your Google Analytics ID will be something like “UA-123456-7”.

    replace google ID 

  7. Replace your custom domain mystore.com with your domain name.

    Note: Your custom domain will be something like “mystore.com”.

    replace your custom domain 

  8. Replace your myshopify domain mystore.myshopify.com with your myshopify domain.

    Note: Your myshopify domain will be something like “mystore.myshopify.com”.

    replace your myshopify domain name 

  9. Select Save.

    select save 

Additional Information:

Have more questions? Submit a request