Set up TikTok server-side tracking with TikTok Events API

Written by

Ira Holubovska

Updated Oct 6, 2026 comments

What is TikTok server-side tracking?

What is the TikTok Events API?

How to set up TikTok Events API

What are the main benefits of TikTok server-side tracking?

What are the main disadvantages of TikTok server-side tagging?

How does TikTok server-side tracking with the TikTok Events API work?

Ways to set up TikTok Events API

TikTok Events API Gateway

TikTok Events API Gateway

TikTok Events API via sGTM

Stape’s TikTok Events API tag

Comparison table

What tracking method should you choose?

How to set up TikTok Events API Gateway

1. Create a TikTok Events API Gateway on Stape

Create an account or log in to Stape
Click “Create TikTok Events API Gateway”.
Choose a subscription plan. Stape offers
Wait till the status of your gateway is “Running”

2. Connect your Pixel

Click on “Finish TikTok Gateway setup”.
Click on “Finish TikTok Gateway setup”.
View details in TikTok Events API Gateway hub Tenant list
View details in TikTok Events API Gateway hub Tenant list
Choose the account and Pixels you’d like to connect and confirm your choices
You will see the added pixel in your dashboard
Click “Settings” on the menu. Push the button “Set up domain”.
Choose domain and receive DNS records to configure
Choose domain and receive DNS records to configure
Log in to your DNS provider and set records
Click on “View base code” to download TikTok js snippet
Click on “View base code” to download TikTok js snippet

5. [Optional] Add new Pixels

Connect data source

6. Test your setup

TikTok Events Gateway
  1. 1.
  2. 2.
Check that events were sent to your Events API Gateway URL (look at the screenshot below)

How to set up TikTok events API via server GTM?

Starting February 28, 2022, TikTok supports event deduplication

You can combine web and server tracking for TikTok. If you do so, please ensure to add event_id to web and server tags. Our TikTok events API supports deduplication, as well as event_id variable supports the TikTok standard of event_id. Guide bellow describes setting up only TikTok events API, without pixel events or deduplication.

GTM template gallery
Generate Access Token
TikTok trigger add
TikTok HTTP request details
TikTok ads manager

Conclusion

Want to start on the server side?

Try for free

Written by

Ira Holubovska

Content writer

Ira has 10+ years of digital marketing experience, with the last 5 focused on server-side tracking. She understands how and when it works across various digital marketing scenarios.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free