# How to find the TikTok Test Event Code

## Step 1: Access to your TikTok Events Manager

Log in to your [TikTok Ads Manager](https://ads.tiktok.com/). From the top navigation bar, go to Tools then select Events

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

## Step 2: Select the pixel you are using then go to the Test Events tab

<figure><img src="/files/8kUoTX2w9bWLUuMjSWza" alt=""><figcaption></figcaption></figure>

## Step 3: Copy the test event code

<figure><img src="/files/6wLTAFdqWeoUs7I9HkiK" alt=""><figcaption></figcaption></figure>

## Step 4: Paste the test event code in the TagFly App

Make sure that the conversion API Token is properly configured to run the test event code

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

## Step 5: View logged events

After completing all the required steps in the TagFly app, you can view the logged events in this section.

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

{% hint style="warning" %}
Important: Remember to turn off test server-side events after testing to ensure live events are properly recorded.
{% endhint %}


---

# 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.tagfly.io/tiktok/how-to-find-the-tiktok-test-event-code.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.
