> For the complete documentation index, see [llms.txt](https://docs.shopone.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shopone.io/english/tracking-and-measuring-the-landing-page/tracking-and-conversion-code/instructions-for-installing-tiktok-pixel.md).

# 2.2. Instructions for installing TikTok Pixel

**TikTok Pixel** is a JavaScript code snippet that you can add to your website to track visitor behavior, measure the effectiveness of TikTok ads, and optimize ad campaigns to increase conversion rates. It functions similarly to tools like Facebook Pixel or Google Analytics for tracking and analysis.

To add TikTok Pixel to your landing page, follow these steps:

#### **Step 1:** Log in to **TikTok Ads Manager** → **Tools** → **Events**.

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

#### **Step 2:** Click "**Connect data source**" → **Web** → **Next**.

<figure><img src="/files/7MZQeIU0tFo49R2UpOIc" alt=""><figcaption></figcaption></figure>

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

#### **Step 3:** Paste the URL of your landing page → **Next**.

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

#### **Step 4:** Choose the connection method "**Manual Setup**" → **Next**.

<figure><img src="/files/7EkNXtDCnPhHEWVjt1Jk" alt=""><figcaption></figcaption></figure>

#### **Step 5:** Select the setup method "**TikTok Pixel + Events API**" → **Next**.

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

#### **Step 6:** Set up Pixel + Events API:

**1.** **Name** Your Pixel → **Create**.

{% hint style="info" %}
***Note:** All events sent to this Pixel code will be displayed in this Pixel. You should create a Pixel name that matches your website or domain name. The maximum length, including spaces, is 128 characters.*
{% endhint %}

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

**2. Copy** the Base Code → **Next.**

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

To add the base code to your landing page: Go to the **Editor** (Edit) page of your landing page → Select the **"Setting"** icon → **Code** **JavaScript/CSS** → Paste the base code in the **"Start of `<head>` tag"** section and save it.

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

Alternatively, you can take the **"Pixel ID"** from the TikTok Pixel code and add it to the Editor of your landing page → Select the **"Setting"** icon → **Tracking Code** → Paste **"Pixel ID"** into the **"TikTok Pixel ID"** field and save it.

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

**3.** Follow the instructions provided.

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

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

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

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

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

**4.** Click **"Finish"** to finish setting up **"Pixel + Events API"**.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.shopone.io/english/tracking-and-measuring-the-landing-page/tracking-and-conversion-code/instructions-for-installing-tiktok-pixel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
