Loading...

How to add Google Tag Manager on Shopify

LD
Lucy Doan Published on September 1, 2020

How to add Google Tag Manager on Shopify

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

Use Shopify’s integration for Google Analytics and Facebook Pixel instead of using them with Google Tag Manager.

You copy the code snippets, that are provided by Google Tag Manager, into your theme.liquid and checkout.liquid theme files.

Step 1: Install Google Tag Manager.

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:

Step 1. Install Google Tag Manager

Step 2: Go to the Online store.

Start from your Shopify admin, choose Online Store.

Step 2. Go to the Online store

Step 3: Choose Edit code.

Inside the Online Store page, click Themes, and choose Edit code.

Step 3. Choose Edit code

Step 4: Copy the first code snippet from Google Tag Manager into the <head> tags of your theme.liquid code:

1. Copy the first code snippet from Google Tag Manager

Step 4

2. In your Shopify admin, open your theme.liquid file.

Step 4

3. Paste the code snippet as high in the <head> of the theme.liquid code as possible.

Step 4

Step 5: Copy the second code snippet from the Google Tag Manager into the <body> tags of your theme.liquid code:

1. Copy the second code snippet from the Google Tag Manager

Step 5

2. Paste the code snippet as high in the <body> of the theme.liquid page as possible.

Step 5

### Step 6: Click Save

### Note: 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.

Keep reading

Explore more blog posts from Ordersify

May 4, 2021 Integrate Ordersify with Wiser

We’re so happy to announce that now you can integrate Ordersify with Wiser. Its components are intended to display suggested product widgets in order to upsell and cross-sell your goods and, as a result, improve the store's conversion rate.

October 3, 2020 Favicon - Upload a favicon to your online store on Shopify

A favicon, or favorites icon, is a small square image or logo that appears next to a web address. You can find favicons on your browser tabs, as well as on browser pages that list web addresses, such as the bookmarks page.

October 2, 2020 How to register a store on Shopify

One of the best things about Shopify is it offers any users a 14-day trial that’s completely free and no risk whatsoever. Some other platforms will still require you to input payment details or credit card information.