Skip to content
Gama
Ad tracking

The TikTok pixel for Salla stores, and how to connect it with Events API

What the TikTok pixel is, how browser events differ from Events API, and how to connect both to your Salla store and test purchases without duplicates.

Gama Team, Product and marketing team at GamaUpdated 6 min read
TikTok pixel and Events API sending a purchase from a Salla store

TikTok has become a main sales channel for Salla stores in only a few years, especially in fashion, fragrance and seasonal products, and campaigns only learn with solid ad tracking. But TikTok's algorithm, like every other, only learns from what it sees. If the purchase event doesn't reach it, it optimises your campaign on viewers and engagers, not buyers.

What is the TikTok pixel?#

The TikTok pixel is a small script on your store that tells TikTok what visitors from your ads do: view a product, add to cart, start checkout, buy. TikTok uses these events to measure the campaign, show it to people who look like buyers, and build retargeting audiences.

The pixel isn't enough: what is Events API?#

The pixel runs in the browser, so it's affected by ad blockers, privacy limits and shoppers who close TikTok's in-app browser right after paying.

Events API is TikTok's way to send events from the server. When the order is created in Salla, the purchase goes straight from the server to TikTok, with hashed email and phone for matching. It never passes through the browser, so it isn't lost.

Connecting it to Salla#

1. Create or select the pixel#

  1. Open TikTok Ads Manager, then Events Manager.
  2. Select your store's web pixel or create one.
  3. Copy the Pixel ID.

2. Generate the access token#

  1. In the pixel's settings, choose Generate Access Token.
  2. Copy the token and store it safely.

3. Add both in Salla#

  1. Install Universal Pixel Tracker from the Salla App Store.
  2. Add TikTok and paste the Pixel ID and access token.
  3. Turn on the core events and save.
  4. Remove any TikTok pixel pasted into the theme.

4. Test#

  1. In Events Manager, open Test Events.
  2. Place a test order on your store.
  3. Check that CompletePayment (TikTok's purchase event) arrives once, with the right value and currency.

TikTok event names#

TikTok's names differ slightly from Meta's. A good tracking app maps them for you:

What happens in the storeTikTok event
Product viewViewContent
Add to cartAddToCart
Checkout startsInitiateCheckout
PurchaseCompletePayment

Tips once you're connected#

  • Wait before judging: campaigns need enough purchases to learn. If you sell little, that's another reason not to lose any.
  • Optimise on purchase, not add to cart, once you have enough orders.
  • Check the gap weekly between TikTok purchases and Salla orders from TikTok.

Next#

Advertising on Snapchat too? Follow the Snapchat pixel guide. Planning campaigns? Read TikTok ads for online stores. For the full picture, see the pixel guide.

Read next: Event Match Quality, Attribution windows.

FAQ

What is the TikTok pixel?

Code from TikTok that runs on your store and sends events such as product views, add to cart and purchases, so TikTok can measure your ads and improve targeting.

What's the difference between the pixel and Events API?

The pixel sends from the shopper's browser; Events API sends from the server. Events API isn't affected by ad blockers or closed tabs. Run both.

Where do I get the Events API access token?

In TikTok Events Manager, inside your pixel's settings, choose Generate Access Token.

How do I know TikTok isn't counting orders twice?

Make sure browser and server events share the same event ID, then check Test Events after a test order.

Browser pixel and server sending the same purchase to an ad platform

What is a pixel? Ad tracking for Salla stores, from scratch

What an ad pixel is, how it tracks purchases for Snapchat, TikTok and Meta on a Salla store, why you need Conversions API and how to avoid duplicates.

8 min read

Steps to connect the Snapchat pixel to a Salla store

How to connect the Snapchat pixel and Conversions API to a Salla store

Connect the Snapchat pixel to your Salla store, create a Conversions API token, test the purchase event and stop duplicates, so Snapchat ads learn from real sales.

6 min read

A TikTok ad video for a product from a Salla store

TikTok ads for online stores - launching a sales campaign from TikTok Ads Manager

Launch a TikTok sales campaign for a Salla store - pixel and Events API, Ads Manager settings, content that sells, and reading the results.

6 min read