# Onboarding

TikTok channel offers a seamless onboarding experience through the OAuth process, which connects your TikTok account with EdgeTag. This integration enables your site to send events to TikTok. Let's walk through the process.

### Video Guide

{% embed url="<https://www.loom.com/share/ae4c4ffa5b9d4bbc84c8bdbbeb0f38b0>" %}

### Authorization

To add a channel, begin by entering the channel's name. We recommend choosing a name that clearly describes the dataset you are adding. This will assist with debugging if any issues arise. Once you have entered the name, click on "Authenticate."

<figure><img src="/files/jkdXmOoY8CnduGUSWPpx" alt=""><figcaption></figcaption></figure>

This will redirect you to the TikTok authorization flow, where you will need to confirm your identity and grant the necessary permissions for our system to function correctly.&#x20;

<figure><img src="/files/f8Zkj8bglDZ9EI5g7Ybv" alt="" width="563"><figcaption></figcaption></figure>

After completing the TikTok process, you will be redirected back to our app to finish the onboarding.

<figure><img src="/files/pYK4OOj3wSyPa4fv1cQG" alt=""><figcaption></figcaption></figure>

Now we need to add the Pixel ID. First, go to TikTok Ads Manager. Then, click on "Tools" in the top navigation and select "Events", which will take you to the TikTok Events Manager. Next, click on "Data Sources" in the left section.&#x20;

<figure><img src="/files/RVn414KiuAwjcayzguiF" alt=""><figcaption></figcaption></figure>

Please copy the Pixel ID (shown in the image below as 2) that you want to use with EdgeTag. Now,  return to our app and copy the Pixel ID. After that, return to the Events Manager again, click on your ad account dropdown at the top right, and once expanded, you can copy the Advertiser ID from there and paste it under the Advertiser ID field in our app.

<figure><img src="/files/rUvCdpkeJNk2mEqGnNkD" alt=""><figcaption></figcaption></figure>

### Purchase Event

Please select **Complete Payment** value for Purchase Event field unless you are optimising for PlaceAnOrder in which you can select **PlaceAnOrder.**&#x54;ikTok recently made changes to its Standard Events. They introduced Purchase as a standard event; we will need to migrate to our end. Complete Payment event is a reserved event which is treated as Purchase in TikTok. Therefore, please switch to CompletePayment if you are optimizing against the Purchase event.

<figure><img src="/files/JiTu4xCE0tbMwIUVYi3N" alt=""><figcaption></figcaption></figure>

Click "Save & Deploy." Congratulations, the basic setup is now complete. Let's proceed to the next section to explore additional configuration options.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/channels/tiktok/onboarding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
