Google Tag Manager Setup

1. EC (EN).png

SHOPLINE supports integration with Google Tag Manager (GTM), so you can install third-party tracking codes, marketing pixels, and other tools in your store and manage them all from one place in GTM. For Google's official documentation, please refer to: Google Tag Manager overview.

In this article, you'll find:

 

1. Steps to set up GTM

Step 1. Sign in to your Google Account

Go to the Google Tag Manager page and sign in to your Google Account.

Google Tag Manager sign-in page

 

Step 2. Create a Google Tag Manager account

After signing in, click Create Account.

Google Tag Manager accounts page with the Create Account button

 

Step 3. Set up the account

  • Account name: Enter your store name
  • Country/Region: Select the region where you primarily sell
GTM account setup screen with the Account name and Country fields

 

Step 4. Set up the container

  • Container name: Enter your online store URL, for example: www.domain.com.tw (do not copy the example; be sure to replace it with your own store URL)
  • Target platform: Select Web

Once you're done, click Create below.

GTM container setup screen with the Container name field and Web selected as the target platform

 

Step 5. Accept the Google Terms of Service

After reviewing the terms, select the "I also accept the Data Processing Terms as required by GDPR" checkbox in the lower left of the screen, and click Yes in the upper right.

Google Tag Manager Terms of Service screen with the GDPR data processing terms checkbox and the Yes button

 

Step 6. Get your container ID

Once the container is created, the code installation window appears. SHOPLINE has already installed the code in your store, so you can simply close this window.

Install Google Tag Manager code window shown after the container is created

 

Return to the Tag Manager page and copy your "GTM-XXXXX" ID. 

Tag Manager workspace showing the GTM-XXXXX container ID

 

Step 7. Install the code

In the SHOPLINE Admin, go to [Marketing & Tracker] > [Tracker Settings] and click Google Tag Manager.

SHOPLINE Admin Tracker Settings page showing the Google Tag Manager entry

 

Paste the "GTM-XXXXX" ID into the field and click Save.

GTM ID field in the SHOPLINE Admin with the Add button

 

2. Notes

  • If you want to use Google Tag Manager to embed third-party tools in your SHOPLINE store, such as pop-up windows or live chat tools, you can get the code from the third-party website and set it up in GTM. For detailed steps, please refer to: A Complete Guide to GA4 and GTM Custom Event Questions (this article is available in Traditional Chinese only).
  • After you finish editing and saving the tag, you can click Preview and return to your storefront to check the result. Once everything looks correct, go to Google Tag Manager and click Submit in the upper right to complete the process.
  • If an embedded third-party tool affects your SHOPLINE store's functionality or slows down its loading speed, the merchant is responsible for evaluating and maintaining it. This is outside SHOPLINE's scope of responsibility.
  • SHOPLINE provides tutorials for setting up custom code, but all tags in Google Tag Manager must be set up and maintained by the merchant. If a tag affects your store's operation, please adjust or remove it in Google Tag Manager yourself.

 

What is GTM?

Google Tag Manager (GTM) is a free tool from Google that helps you manage your website's tracking codes and event settings in one place.

With GTM, you can add, edit, or remove tracking codes without modifying your website's code, making it a good fit for sites that need custom events or advanced tracking.

 

 

Read more

 

 

Last updated: 16 September 2026

 

 

 

Have more questions? Submit a request

Comments