> For the complete documentation index, see [llms.txt](https://zotek.gitbook.io/facebook-multiple-pixel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zotek.gitbook.io/facebook-multiple-pixel/getting-started/setup-tiktok-pixel-guide/tiktok-pixel-for-shopify-how-it-work.md).

# TikTok Pixel for Shopify: How it work?

TikTok Pixel for Shopify is a JavaScript code snippet you install on your Shopify store that tracks customer behavior (like page views, adding to cart, purchases) and sends that data back to TikTok Ads.&#x20;

***Zotek - TikTok Pixel Meta Pixel Feed*** simplifies this procedure by requiring less work throughout the setup process. [Setup TikTok Pixel](https://zotek.gitbook.io/facebook-multiple-pixel/getting-started/setup-tiktok-pixel-guide/setup-tiktok-pixel)

### Benefits and features <a href="#anchor-1-0" id="anchor-1-0"></a>

Once you've successfully [set up and verified the pixel](https://ads.tiktok.com/help/article/get-started-pixel) on your site, it will share information on when an action is taken on your website, based on the [events](https://ads.tiktok.com/help/article/standard-events-parameters?lang=en) you've set up. We recommend you set up events that reflect a full customer journey on your site, from viewing a product details page to adding an item to a cart and making a purchase.

Learn more about the [Events Manager](https://ads.tiktok.com/help/article/about-tiktok-events-manager).

### What you can track <a href="#anchor-2-0" id="anchor-2-0"></a>

By default, TikTok collects  `ttclid`, `ttp`  as the most important parameters that boost the matching.&#x20;

To enable matching across user sessions and on different devices, TikTok needs you to share additional customer data.

The following parameters are collected whenever available and passed to the server-side events (in encoded format):

* `user_agent`
* `ip`
* `email`
* `phone_number`

In order to get accurate data, you need server-side tracking that captures everything that happens in your online store, including checkout funnel activity and purchases. **Z*****otek TikTok Pixel Meta Pixel Feed's***  TikTok integration enables better tracking by stitching your TikTok Pixel events together with accurate server-side events.

***Event Default:***&#x20;

<table><thead><tr><th width="148">Event </th><th width="228">Type</th><th>Description</th></tr></thead><tbody><tr><td>PageView</td><td>Server-side &#x26; Browser-side</td><td>logs an instance where a customer visited a page. This event is available on the online store, checkout, and order status pages</td></tr><tr><td>ViewContent</td><td>Server-side &#x26; Browser-side</td><td>logs an instance where a customer visited a product details page. This event is available on the product page</td></tr><tr><td>AddToCart</td><td>Server-side &#x26; Browser-side</td><td>logs an instance where a customer adds a product to their cart. This event is available on the online store page</td></tr><tr><td>InitiateCheckout</td><td><p>Server-side </p><p>(collect browser-side instead if <a href="https://zotek.gitbook.io/facebook-multiple-pixel/getting-started/set-up-meta-pixel-guide/set-up-meta-pixel#upgrade-your-data-with-conversion-api">Coversion API settings</a> is turned off)</p></td><td>logs an instance of a customer starting the checkout process. This event is available on the checkout page. For Checkout Extensibility, this event is triggered every time a customer enters checkout. For non-checkout extensible shops, this event is only triggered the first time a customer enters checkout.</td></tr><tr><td>Purchase</td><td><p>Server-side</p><p>(collect browser-side instead if <a href="https://zotek.gitbook.io/facebook-multiple-pixel/getting-started/set-up-meta-pixel-guide/set-up-meta-pixel#upgrade-your-data-with-conversion-api">Coversion API settings</a> is turned off)</p></td><td>logs when a visitor completes a purchase. It's triggered once for each checkout, typically on the 'Thank You' page. However, for upsells and post-purchases, the Purchase event is triggered on the first upsell offer page instead. The event isn't triggered again on the 'Thank You' page. If the page where the event is supposed to be triggered fails to load, then the Purchase event isn't triggered at all.</td></tr></tbody></table>

***Event Custom:***&#x20;

<table><thead><tr><th width="150">Event</th><th width="224">Type</th><th>Description</th></tr></thead><tbody><tr><td>Search</td><td>Server-side &#x26; Browser-side</td><td><p>logs an instance where a customer performed a search on the storefront. The products returned from the search query are in this event object (the first product variant for each product is listed in the array). </p><p>This event is available on the online store page</p></td></tr><tr><td>CollectionView</td><td>Server-side &#x26; Browser-side</td><td>logs an instance where a customer performed a search on the storefront. The products returned from the search query are in this event object (the first product variant for each product is listed in the array). This event is available on the online store page</td></tr><tr><td>AddPaymentInfo</td><td><p>Server-side </p><p>(collect browser-side instead if <a href="https://zotek.gitbook.io/facebook-multiple-pixel/getting-started/set-up-meta-pixel-guide/set-up-meta-pixel#upgrade-your-data-with-conversion-api">Coversion API settings</a> is turned off)</p></td><td>logs an instance of a customer submitting their payment information. This event is available on the checkout page.</td></tr><tr><td>CartView</td><td>Server-side &#x26; Browser-side</td><td>logs an instance where a customer visited the cart page.</td></tr></tbody></table>


---

# 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://zotek.gitbook.io/facebook-multiple-pixel/getting-started/setup-tiktok-pixel-guide/tiktok-pixel-for-shopify-how-it-work.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.
