TikTok Events API setup in Google Tag Manager


For the TikTok Events API to work, you must first configure a server container. Visit this blog to find out how to set this up.

In the first blog of the TikTok implementation series, we showed how to install the TikTok Pixel via Google Tag Manager, Client Side. Now that all events are sent via the TikTok Pixel Server Side, we want to send the events that are missed (due to browser blocking and ad-blockers) Server Side. You can do this with the TikTok – Events API. But how do you set these up? We show that in this blog.

With TikTok, things work a little differently than with other tags. In doing so, you send both client-side (TikTok Pixel) and server-side (Events API) data to the platform. Through Event Deduplication, TikTok can distinguish the unique requests and collect as much data as possible.

Events you can measure with TikTok Events API

  • ViewContent
  • ClickButton
  • Search
  • AddToWishlist
  • AddToCart
  • InitiateCheckout
  • AddPaymentInfo
  • CompletePayment
  • PlaceAnOrder
  • Contact
  • Download
  • SubmitForm
  • CompleteRegistration
  • Subscribe

TikTok Events API setup in Google Tag Manager

TikTok Select Pixels


First, we need to select the TikTok Pixels. Go inside to Tools –> Events –> Web Events. Next, select the TikTok Pixels here.

TikTok Events API Access Token Generate.


Then go to Settings and scroll down until you see Access Token Generation. Click Generate Access Token here.

Go to Server Container Google Tag Manager.


The TikTok Events API must be set up in the GTM Server Container.

Creating Tags


Go to Tags and click New.

Tag Configuration

tag configuration tiktok events api

Then give the Tag a name, such as TikTok – Events API and click Tag Configuration. Next, select the TikTok Events API (Official) here.

TikTok Events API Tag setup


Paste the Access Token you generated in step 2 under Access token. Next, enter your TikTok Pixel ID . Not created and installed a TikTok Pixels yet? Then go to this blog.

Tags Triggering


When the tag is set, we are going to choose the trigger, or in other words, at what time the tag should be fired. In this case, we would like the tag to forward all GA4 Events tags to TikTok.
To forward all GA4 events, you can choose the GA4 client trigger. Don’t have this trigger set up yet? Then check out this blog.

The TikTok Events API is now set up. TikTok Server Side events are now measured. Currently, TikTok does not distinguish between events from the pixel (Client Side) and from the Events API (Server Side). To get these duplicate measurements out, you can use TikTok Event Deduplication. This is the next and final step in the TikTok implementation series.

Ready for the next level?

Start with Server Side Tracking and generate more revenue and conversions in a world without third-party cookies.