Set up TikTok Tags on your sGTM container
Setting up TikTok tags on your server-side Google Tag Manager (sGTM) container is a crucial step for tracking events and collecting data efficiently. This process allows you to capture meaningful insights from actions taken by users on your site, like purchases, button clicks, or other interactions. Each step builds on the previous one, ensuring a smooth and accurate integration. Let’s go through the setup step-by-step.
Let’s get started🚀
To begin, you need to add the TikTok Event API Template to your sGTM container. This template is the backbone of the integration. It provides the necessary structure to connect TikTok’s event tracking system to your website. The template simplifies the entire process by giving you pre-configured options that can be adjusted to suit your needs. By setting up this template, you create a foundation for capturing data and sending it to TikTok for analysis.
In this demonstration, we will guide you through the process of adding and configuring the TikTok Event API Template to ensure proper event tracking.
Once the template is ready, the next step is to set up variables. Variables in sGTM act as containers for storing reusable data, such as your TikTok Pixel ID and API token. These variables ensure that your tags work consistently and are linked to your TikTok account.
The TikTok Pixel Variable stores your unique Pixel ID, which is required to connect your website’s events to your TikTok account. This ID ensures that all event data collected is accurately attributed to the right account. Configuring this variable is essential for tracking activities like page views, purchases, and interactions.
In this demonstration, we will guide you on how to create and use this variable in your setup.
The TikTok API Token Variable securely stores the token needed to authenticate your connection with TikTok’s servers. This token acts as a bridge, allowing your sGTM container to send data to TikTok without interruptions. Setting up this variable ensures that the communication between your sGTM and TikTok remains secure and reliable.
In this demonstration, we will guide you through the process of setting up and using the API token.
After the variables are configured, it’s time to create tags. Tags are responsible for tracking specific events and sending the data to TikTok. Each tag is linked to the variables you created earlier, making the setup process streamlined and efficient.
The general event tag is designed to track a wide range of activities on your website. This tag collects data from common interactions, such as page visits or form submissions, and sends it to TikTok. By setting up this tag, you ensure that general user behavior is captured for analysis and optimization.
In this demonstration, we will guide you through how to configure the TikTok tag for your sGTM container.
Triggers work with tags to decide when the tags should fire. For general TikTok events, you’ll configure a trigger that activates when specific actions take place, such as when a user visits a page or clicks on a link. Setting up this trigger ensures that data is sent to TikTok at the right moments, capturing the intended events accurately.
In this demonstration, we will guide you step by step to set up these triggers in your sGTM container.
Tracking purchase or payment completion events is vital for understanding the effectiveness of your campaigns. This tag specifically monitors when a user completes a purchase or makes a payment on your site. By creating this tag, you gain insights into high-value actions that contribute directly to your business goals.
In this demonstration, we will guide you through the process of setting up this event in your sGTM container.
For the purchase tag to work, you’ll need a trigger that tells it when to activate. This trigger is set up to fire whenever a user successfully completes a purchase or payment. Configuring this trigger ensures that important transactions are accurately tracked and reported to TikTok.
In this demonstration, we will guide you through setting up the trigger and event in your sGTM container.
User engagement often involves interactions with buttons, such as submitting forms, clicking on navigation elements, or downloading files. The button click tag is created to track these interactions, helping you understand how users interact with your website. This tag can provide valuable insights into user behavior and engagement patterns.
In this demonstration, we will guide you step-by-step on how to set up the button click event and trigger in your sGTM container.
To capture button click events, a trigger needs to be created. This trigger activates the button click tag whenever a user interacts with a button on your website. By setting this up, you ensure that each meaningful click is recorded and sent to TikTok for further analysis.
In this demonstration, we will guide you through setting up the button click trigger in your sGTM container.
Let’s get started🚀
Add TikTok Event API Template
To begin, you need to add the TikTok Event API Template to your sGTM container. This template is the backbone of the integration. It provides the necessary structure to connect TikTok’s event tracking system to your website. The template simplifies the entire process by giving you pre-configured options that can be adjusted to suit your needs. By setting up this template, you create a foundation for capturing data and sending it to TikTok for analysis.
In this demonstration, we will guide you through the process of adding and configuring the TikTok Event API Template to ensure proper event tracking.
Create TikTok Tag Variables
Once the template is ready, the next step is to set up variables. Variables in sGTM act as containers for storing reusable data, such as your TikTok Pixel ID and API token. These variables ensure that your tags work consistently and are linked to your TikTok account.
Create TikTok Pixel Variable
The TikTok Pixel Variable stores your unique Pixel ID, which is required to connect your website’s events to your TikTok account. This ID ensures that all event data collected is accurately attributed to the right account. Configuring this variable is essential for tracking activities like page views, purchases, and interactions.
In this demonstration, we will guide you on how to create and use this variable in your setup.
Create TikTok API Token Variable
The TikTok API Token Variable securely stores the token needed to authenticate your connection with TikTok’s servers. This token acts as a bridge, allowing your sGTM container to send data to TikTok without interruptions. Setting up this variable ensures that the communication between your sGTM and TikTok remains secure and reliable.
In this demonstration, we will guide you through the process of setting up and using the API token.
Setting Up Tags
After the variables are configured, it’s time to create tags. Tags are responsible for tracking specific events and sending the data to TikTok. Each tag is linked to the variables you created earlier, making the setup process streamlined and efficient.
Tag for General TikTok Events
The general event tag is designed to track a wide range of activities on your website. This tag collects data from common interactions, such as page visits or form submissions, and sends it to TikTok. By setting up this tag, you ensure that general user behavior is captured for analysis and optimization.
In this demonstration, we will guide you through how to configure the TikTok tag for your sGTM container.
Configure General TikTok Events Trigger
Triggers work with tags to decide when the tags should fire. For general TikTok events, you’ll configure a trigger that activates when specific actions take place, such as when a user visits a page or clicks on a link. Setting up this trigger ensures that data is sent to TikTok at the right moments, capturing the intended events accurately.
In this demonstration, we will guide you step by step to set up these triggers in your sGTM container.
Tag for Purchase / Complete Payment
Tracking purchase or payment completion events is vital for understanding the effectiveness of your campaigns. This tag specifically monitors when a user completes a purchase or makes a payment on your site. By creating this tag, you gain insights into high-value actions that contribute directly to your business goals.
In this demonstration, we will guide you through the process of setting up this event in your sGTM container.
Configure Trigger for Purchase / Complete Payment Trigger
For the purchase tag to work, you’ll need a trigger that tells it when to activate. This trigger is set up to fire whenever a user successfully completes a purchase or payment. Configuring this trigger ensures that important transactions are accurately tracked and reported to TikTok.
In this demonstration, we will guide you through setting up the trigger and event in your sGTM container.
Tag for Button Click
User engagement often involves interactions with buttons, such as submitting forms, clicking on navigation elements, or downloading files. The button click tag is created to track these interactions, helping you understand how users interact with your website. This tag can provide valuable insights into user behavior and engagement patterns.
In this demonstration, we will guide you step-by-step on how to set up the button click event and trigger in your sGTM container.
Configure Trigger for Button Click
To capture button click events, a trigger needs to be created. This trigger activates the button click tag whenever a user interacts with a button on your website. By setting this up, you ensure that each meaningful click is recorded and sent to TikTok for further analysis.
In this demonstration, we will guide you through setting up the button click trigger in your sGTM container.
Updated on: 05/02/2025
Thank you!