# TikTok Event API

With the TikTok event API, you can easily send conversion data, helping track ad performance on TikTok and optimize ad delivery, especially when third-party cookies are blocked.

{% hint style="info" %}
To use the TikTok Event API, you need: a **Pixel ID** and an **Access Token**
{% endhint %}

### Get necessary data from TikTok Ads Manager

#### Pixel ID

1. Tools **»** Event
2. Go to Manage for Web Events
3. Enter Pixel name **»** Select "**Events API**" as a Connection Method **»** Next

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FgxcqwLMFzoLYr4d8c0fE%2Fimage.png?alt=media&#x26;token=51a1ea4a-28a0-40f3-b2ad-0cdf6bbade81" alt=""><figcaption></figcaption></figure>

4. Select "**Manually Set Up Events API**" in Installation Type **»** Next

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FMFKRqUGOtyVQTWUevMgI%2Fimage.png?alt=media&#x26;token=f90525ef-1aad-4cb8-99e9-ff97376b4fc5" alt=""><figcaption></figcaption></figure>

5. Make sure you're in Ads Manager **»** Assets **»** Settings

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FJRz298xHMNbwBHp4vW5G%2Fimage.png?alt=media&#x26;token=5bd8177d-5d3b-44a4-bcfd-2f39ffbd6b84" alt=""><figcaption></figcaption></figure>

6. **Pixel ID** will appear after "**ID:"** **»** Copy this **Pixel ID**

#### For Access Token

1. Event Manager **»** Settings
2. Go to "**Generate Access Token**" under Events API Section

***

### Placement of Pixel ID and an access token in Affiliate dashboard

1. Login to Affiliate dashboard **»** open respective Offer&#x20;

2. Go to Postback section\ <br>

   <figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2Fkb00wtMCmO8S2iBylaHe%2Fimage.png?alt=media&#x26;token=4fc58488-924b-4c31-bbf4-451042a580f0" alt=""><figcaption></figcaption></figure>

3. Select TikTok in Type

4. Place **Pixel ID** and **Access token**&#x20;

5. Select Event&#x20;

6. Define TikTok Event

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FrdzZl2eQ8xRV4DPM0xx6%2Fimage.png?alt=media&#x26;token=42939b06-6797-4108-9502-c0cca1122f53" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

* For TikTok Click ID use **{aff\_click\_id}**&#x20;
* For other values use additional parameters from **{aff\_sub1}** to **{aff\_sub5}**
  {% endhint %}

8. Go to Submit

{% hint style="info" %}
To use existing **Pixel ID** and **Access Token**, click on Use Existing then select Pixel ID from drop-down.
{% endhint %}

Make sure to use the same parameters in affiliate tracking link to receive the values from TikTok.
