Google Tag Manager

You can use Google Tag Manager with your Shopify Plus online store, as long as you:

Add Google Tag Manager code to your theme

Steps:

  1. Install Google Tag Manager to get the code snippets that you will need to copy and paste into your Shopify store. Because Shopify uses templates, you only need to copy the snippets into the theme.liquid and checkout.liquid files.
    • If this is your first time installing Google Tag Manager, then use the installation steps provided by Google Tag Manager. Pause at the step where you are given two code snippets to add to your web pages, and then follow the instructions below.
    • If you have already installed Google Tag Manager, then you can find these code snippets in your Google Tag Manager by clicking Admin, and then clicking Install Google Tag Manager:
      Screenshot of Google Tag Manager showing the code snippets you need to copy to your theme files.
  2. In your Shopify admin, click Online store, and then click Themes.
  3. In the theme drop-down, click Edit Code.
  4. Copy the first code snippet from Google Tag Manager into the <head> tags of your theme.liquid and checkout.liquid code:
    1. Copy the first code snippet from Google Tag Manager
    2. In your Shopify admin, open your theme.liquid file.
    3. Paste the code snippet as high in the <head> of the theme.liquid code as possible.
    4. Open your checkout.liquid file.
    5. Paste the code snippet as high in the <head> of the checkout.liquid code as possible.
  5. Copy the second code snippet from the Google Tag Manager into the <body> tags of your theme.liquid and checkout.liquid code:
    1. In your Shopify admin, open the theme.liquid page.
    2. Paste the code snippet as high in the <body> of the theme.liquid page as possible.
    3. Open the checkout.liquid page.
    4. Paste the code snippet as high in the <body> of the checkout.liquid code as possible.
  6. In your Shopify admin, click Save.
  7. In Google Tag Manager, continue installing the Google Tag Manager. When prompted to add tags, do not add the following types of tags:
    • Universal Analytics for Google Analytics
    • Classic Google Analytics for Google Analytics
    • Facebook Pixel.

Verify that Google Tag Manager is installed

To verify that you installed Google Tag Manager properly, you can use:

Ready to start selling with Shopify?

Try it free