Google Tag Manager is a free tool that lets you quickly and easily create and update pieces of code that are called tags. Tags help you track customer behavior, monitor your site performance, and much more. After you add a tag in Google Tag Manager, it can be automatically added to your website without you having to touch any code in the site’s backend.
You can easily connect GTM with your Lightspeed eCom (E-Series) online store on Lightspeed eCom site (Instant Site) or another website via the Google Tag Manager app from the Lightspeed eCom App Market.
Google Tag Manager benefits
Creating a tag in your GTM account allows adding it to your website right away. No need to go to the site backend and inject any code manually. You can add, edit, and disable your tags on the fly, all in one place.
GTM supports a wide variety of tags:
- tags from Google products like Analytics or Ads
- tags from third parties like Pinterest or Twitter
- and even your own custom tags
Using tags and triggers in Google Tag Manager, you can get insights into your customer’s behavior, and analyze the most popular products or conversion funnel. Any event in your online storefront can be monitored. This way, you’ll get to track page views, file downloads, clicks, and scrolls, adding items to the shopping cart or removing them, and more.
Creating a GTM account and your online storefront’s container
If you already have a Google Tag Manager account and a container for your eCom store or website, you can proceed to the next section and connect it to your store.
If you don’t have a GTM account, follow these steps to create it:
- Sign in to your Google Account or create a new Google/Gmail account.
- Go to https://tagmanager.google.com/
- Click Create Account.
- Fill in your Account Name and select your country.
- Enter the Container name to create a new container for your store/website and choose Web.
- Click Create.
- Agree with the Google Tag Manager Terms of Service Agreement that opens.
You can also check with Google instructions on how to get started.
Now you have a GTM account and container for your store site. You will see the installation code snippet popup. Close it and copy the Container ID formatted as GTM-XXXXXX in the upper right part of the window:
Next, you’ll need to install the Google Tag Manager app from the Lightspeed eCom app market and add the Container ID to your eCom admin panel to connect your store to GTM. Read on to learn how.
Connecting Google Tag Manager to your online storefront
By default, after you create a container in your GTM account, you then manually install the Google Tag Manager code in the head and body sections of your website. In Lightspeed eCom, you don’t need to access the code directly. To connect GTM to your storefront on Lightspeed eCom site (Instant Site) or another site, simply use a free app from the Lightspeed eCom App Market.
If eCom is added to your site using an iFrame, connecting GTM via the app allows you to track only the events inside the iFrame. To track events on your website, inject code into its backend.
To connect Google Tag Manager to your eCom storefront:
- Install the Google Tag Manager app from the Lightspeed eCom app market.
-
Go to the GTM website and copy the ID for the container you want to use with your store:
- In your eCom admin panel, go to Settings > Google Tag Manager and click Connect Google Tag Manager.
-
Paste your Container ID into the field:
- Click Save Container ID.
That’s it! You’ve connected your GTM container to your eCom store and website.
Now you can manage tags and more in your Google Tag Manager account. The tags you create there will be added to your store site without any further action required on the eCom side. For example, if you’re using Google Analytics with your online store, you can configure GA tags and events right in Google Tag Manager and manage them there, along with all the tags from other parties you might need.
Learn more about adding tags in Google Tag Manager help.
If later you want to temporarily stop using GTM with your online storefront, you can simply disable it in your eCom admin (Retail POS > Online > Overview > Go to eCom (E-Series) > Settings > Google Tag Manager).