TikTok web events API extension overview
The TikTok events API is a secure Edge Network Server API interface that allows you to share information with TikTok directly about user actions on your websites. You can leverage the event forwarding rules to send data from the Adobe Experience Platform Edge Network to TikTok by using the TikTok Web Events API extension.
TikTok prerequisites prerequisites
To configure the TikTok web events API to use the TikTok events API, you need to generate a TikTok pixel code and access token.
You must have a valid TikTok for business account in order to create a TikTok pixel using the partner setup. Go to the TikTok for business registration page to register and create an account if you do not have one already.
You must be logged into your business account to set up TikTok Pixel using partner setup. To do this, follow the steps below:
- Navigate to the Assets tab and select Event.
- Under Web Events, select Manage.
- Select Set Up Web Events.
- Select Partner Setup as your connection method.
See the Get Started with Pixel guide for more information on how to setup the TikTok pixel.
You can generate an access token once the pixel has been successfully created. To do this navigate to the Pixel and select the Settings tab. Under Events API, select Generate Access Token.
See the TikTok getting started guide for more information on how to setup the pixel code and access token.
Install and configure the TikTok web events API extension install
To install the extension, select Extensions in the left navigation. In the Catalog tab, select the TikTok Web Events API Extension and then select Install.
On the next screen, input the following configuration values that you previously generated from TikTok Ads Manager:
- Pixel Code
- Access Token
When finished, select Save.
Configure an event forwarding rule config-rule
Once all your data elements are set up, you can start creating event forwarding rules that determine when and how your events will be sent to TikTok.
Create a new rule in your event forwarding property. Under Actions, add a new action and set the extension to TikTok Web Events API Extension. To send Edge Network events to TikTok, set the Action Type to Send TikTok Web Events API Event.
After selection, additional controls appear to further configure the event, as outlined below. Once complete, select Keep Changes to save the rule.
Web Events and Parameters
Web events and parameters contain general information about the event. Standard events are supported across TikTok integration tools and can be used for reporting , optimizing for conversions, and building audiences.
yyyy-MM-dd'T'HH:mm:ss:SSSZ
format. This is a required field.
User Context Parameters
User context parameters contain customer information that is used to match web visitor events with TikTok users. Including multiple types of matching data allows you to increase the accuracy of targeting and optimization models.
_ttp
cookie, if cookies are enabled. The _ttp
value can extracted and used for this field.ttclid
which is added to the URL of the landing page each time an advertisement is selected on TikTok.
Properties Parameters
Use the properties parameters to configure additional supported properties.
product
or product_group
must be assigned to the content_type object property, depending on how you will configure your data feed when you set up your product catalog.
Event deduplication deduplication
TikTok pixel will need to be setup for deduplication if you use both the TikTok pixel SDK and the TikTok web events API extension to send the same events to TikTok.
Deduplication is not required if distinct event types are being sent from the client and server without any overlap. To ensure that your reporting is not negatively impacted, you must make sure that any single event that is shared by the TikTok pixel SDK and the TikTok web events API extension is deduplicated.
When sending shared events, make sure that every event includes a pixel ID, event ID and name. Duplicated events that arrive within five minutes of each other will be merged. If the data field was absent from the first event, it will be combined with the subsequent event. Any duplicate events received within 48 hours will be removed.
See the TikTok documentation on Event Deduplication for more details on this process.
Next steps
This guide covered how to send server-side event data to TikTok using the TikTok web events API extension. For more information on event forwarding capabilities in Adobe Experience Platform, refer to the event forwarding overview.