Install Google Tag Manager on Shopify - 2023

Install Google Tag Manager on Shopify - 2023

Table of Contents:

  1. Introduction
  2. What is Google Tag Manager?
  3. Benefits of Google Tag Manager
  4. Installing Google Tag Manager on Shopify
  5. Setting up Google Analytics on Shopify using Google Tag Manager
  6. Setting up Google Ads for your Shopify Store
  7. Setting up Google Ads Conversion Tracking for your Shopify Store
  8. Setting up a Facebook Ad Account for your Shopify Store
  9. Setting up Facebook Conversion Pixel on your Shopify Store
  10. Creating Custom Events with Google Tag Manager
  11. Debugging and Testing GTM Code with Google Tag Manager Preview and Debug Mode

Article:

Introduction

Welcome back to our YouTube channel! In this Shopify Google Tag Manager course, we will guide you through the process of installing and utilizing Google Tag Manager on your Shopify store. After setting up GTM, we will cover topics such as setting up Google Analytics, Google Ads, and Facebook Ads for your Shopify store. Additionally, we will explore how to create custom events and test your GTM code using the preview and debug mode. Let's get started!

What is Google Tag Manager?

Google Tag Manager (GTM) is a tag management system that allows you to install multiple tags on your website using a single code container. Tags can include tracking codes such as Google Analytics, Google Ads conversion tracking, Facebook pixel conversion tags, and more. By consolidating all these codes into one container, GTM simplifies the management and deployment of tracking codes on your Shopify store.

Benefits of Google Tag Manager

Using Google Tag Manager on your Shopify store offers several benefits:

  1. Simplified Code Management: With GTM, you can manage all your tracking codes in one place, reducing the need for manual code implementation.

  2. Improved Website Speed: By loading tags asynchronously, GTM can enhance the performance and speed of your Shopify store.

  3. Enhanced Tracking Capabilities: GTM allows you to create custom events and track specific actions on your website, providing valuable insights for optimization.

  4. Easy Deployment of Tracking Codes: With GTM, you can add or modify tags without the need for developer assistance, making it a user-friendly solution.

Installing Google Tag Manager on Shopify

To install Google Tag Manager on your Shopify store, follow these steps:

  1. Sign in to your Google account and search for "Google Tag Manager."
  2. Click on the Google Tag Manager website and create a new account.
  3. Provide a name for your account and select your country.
  4. Enter the name of your Shopify store and select the "Web" option.
  5. Agree to the terms and conditions and create your Tag Manager account.
  6. Copy the code provided and navigate to your Shopify store's backend.
  7. Go to "Online Store" and select "Actions > Edit Code."
  8. Locate the "theme.liquid" file and paste the Tag Manager container code above the </head> tag.
  9. Save the changes, and the Tag Manager code will be placed on your Shopify store.

Setting up Google Analytics on Shopify using Google Tag Manager

Google Analytics is a powerful tool for tracking and analyzing website data. By integrating Google Analytics with Google Tag Manager on your Shopify store, you can gain valuable insights into visitor behavior, demographics, and conversion rates. Here's how to set it up:

  1. Open your Google Tag Manager account and select the correct container.
  2. Click on "Tags" and then "New."
  3. Name your tag and select the "Google Analytics - Universal Analytics" tag type.
  4. Enter the property ID provided by Google Analytics.
  5. Configure triggers based on the pages where you want to track analytics data.
  6. Save the tag and submit the changes.
  7. Test the setup by previewing the GTM container and checking the Google Analytics events on your website.

Setting up Google Ads for your Shopify Store

Google Ads is a powerful advertising platform that allows you to reach potential customers through targeted campaigns. Here's how to set up Google Ads for your Shopify store using Google Tag Manager:

  1. Access your Google Tag Manager account and select the appropriate container.
  2. Click on "Tags" and then "New."
  3. Name your tag and select the "Google Ads - Global Site Tag" tag type.
  4. Enter your Google Ads conversion ID and enable dynamic remarketing if desired.
  5. Configure triggers to fire the tag on specific pages or events.
  6. Save the tag and submit the changes.
  7. Test the setup by previewing the GTM container and checking if the Google Ads tags fire correctly.

Setting up Google Ads Conversion Tracking for your Shopify Store

Tracking conversions is crucial for measuring the success of your Google Ads campaigns. By setting up Google Ads conversion tracking with Google Tag Manager on your Shopify store, you can monitor and optimize your advertising performance. Follow these steps to get started:

  1. Within your Google Tag Manager account, select the relevant container.
  2. Click on "Tags" and then "New."
  3. Name your tag and choose the "Google Ads Conversion Tracking" tag type.
  4. Enter your conversion ID and label.
  5. Configure triggers based on the events or pages where you want to track conversions.
  6. Save the tag and submit the changes.
  7. Test the setup by previewing the GTM container and ensuring that the Google Ads conversion tags fire correctly.

Setting up a Facebook Ad Account for your Shopify Store

Facebook Ads is another effective advertising platform to promote your Shopify store. By setting up a Facebook ad account and integrating it with Google Tag Manager, you can track conversions and optimize your Facebook ad campaigns. Here's how to get started:

  1. Access your Facebook Ads Manager and create or log in to your ad account.
  2. Within Google Tag Manager, select the appropriate container.
  3. Click on "Tags" and then "New."
  4. Name your tag and choose the "Facebook Pixel" tag type.
  5. Enter your Facebook pixel ID and adjust the pixel settings if needed.
  6. Configure triggers to fire the tag on specific events or pages.
  7. Save the tag and submit the changes.
  8. Test the setup by previewing the GTM container and ensuring that the Facebook pixel fires correctly.

Setting up Facebook Conversion Pixel on your Shopify Store

Facebook conversion pixel allows you to track and measure the effectiveness of your Facebook ad campaigns by monitoring specific actions taken by users on your Shopify store. Follow these steps to set up the Facebook conversion pixel with Google Tag Manager:

  1. Open your Facebook Ads Manager and navigate to the "Events Manager."
  2. Create or select the ad account you want to track conversions for.
  3. Set up the conversion event you want to track on your Shopify store.
  4. Copy the Facebook pixel code provided by Facebook.
  5. Access your Google Tag Manager account and select the relevant container.
  6. Click on "Tags" and then "New."
  7. Name your tag and choose the "Custom HTML" tag type.
  8. Paste the Facebook pixel code in the HTML field.
  9. Configure triggers to fire the tag on the desired conversion events.
  10. Save the tag and submit the changes.
  11. Test the setup by previewing the GTM container and ensuring that the Facebook conversion pixel fires correctly.

Creating Custom Events with Google Tag Manager

Google Tag Manager allows you to create custom events to track specific actions or interactions on your Shopify store. By defining custom events, you can gain more granular insights into user behavior and optimize your website accordingly. Here's how to create custom events using GTM:

  1. Open your Google Tag Manager account and select the relevant container.
  2. Click on "Tags" and then "New."
  3. Name your tag and choose the appropriate tag type based on the event you want to track.
  4. Configure triggers to fire the tag on the desired event or interaction.
  5. Save the tag and submit the changes.
  6. Test the setup by previewing the GTM container and verifying if the custom events are recorded in your analytics tools.

Debugging and Testing GTM Code with Google Tag Manager Preview and Debug Mode

To ensure the accuracy and functionality of your GTM code, it's crucial to test and debug it before deploying it on your live Shopify store. Google Tag Manager offers a preview and debug mode that allows you to validate your code implementation and tracking tags. Here's how you can debug and test your GTM code using this feature:

  1. Open your Google Tag Manager account and go to the desired container.
  2. Click on "Preview" to enter the preview and debug mode.
  3. Enter your Shopify store's URL in the preview window.
  4. Click on "Connect" to initiate the connection between GTM and your store.
  5. Use the preview and debug mode to check if your tags and triggers are firing correctly.
  6. Verify that the data is being recorded in your analytics tools as expected.
  7. Once you have completed the testing and debugging, exit the preview mode to stop the connection.

Conclusion

Congratulations! You have successfully learned how to install and utilize Google Tag Manager on your Shopify store. By implementing GTM, you can effectively track and measure the performance of your website, Google Ads, and Facebook Ads. Additionally, you have learned how to set up Google Analytics, create custom events, and debug your GTM code. Keep exploring the capabilities of Google Tag Manager to enhance your Shopify store's tracking and optimization efforts. If you found this guide helpful, please subscribe to our channel for more informative videos.

I am a shopify merchant, I am opening several shopify stores. I use ppspy to find Shopify stores and track competitor stores. PPSPY really helped me a lot, I also subscribe to PPSPY's service, I hope more people can like PPSPY! — Ecomvy

Join PPSPY to find the shopify store & products

To make it happen in 3 seconds.

Sign Up
App rating
4.9
Shopify Store
2M+
Trusted Customers
1000+
No complicated
No difficulty
Free trial