Skip to content

TikTok Pixel

What It Does

Track how people interact with your store after seeing your TikTok ads. The TikTok Pixel helps you measure ad performance, build audiences for retargeting, and let TikTok optimize who sees your campaigns.

When to Use It

Enable this plugin if you:

  • Run TikTok ads
  • Want to track conversions coming from TikTok campaigns
  • Need to build custom audiences for retargeting
  • Want TikTok to optimize delivery toward people likely to buy
  • Need to measure return on ad spend (ROAS)

How It Works

You paste the pixel code TikTok gives you, and the store adds it to every storefront page. From then on TikTok receives the visits and can match them to the people who saw your ads.


Setup Instructions

Step 1: Get Your Pixel Code

  1. Go to TikTok Ads Manager
  2. Sign in to your TikTok for Business account
  3. Open Tools > Events
  4. Select Web Events, then your pixel (or create a new one)
  5. Choose Manually install pixel code
  6. Copy the entire code snippet (from <script> to </script>)

The code looks like this:

<!-- TikTok Pixel Code -->
<script>
!function (w, d, t) {
  w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];
  ttq.load('YOUR_PIXEL_ID');
  ttq.page();
}(window, document, 'ttq');
</script>
<!-- End TikTok Pixel Code -->

Step 2: Enable the Plugin

  1. In your store admin, go to System Settings > Plugins
  2. Find the TikTok Pixel card
  3. Click Configure
  4. Enable the plugin using the toggle switch
  5. Paste your complete pixel code in the TikTok Pixel Script field
  6. Click Save

Configuration Fields

Enabled

Type: Toggle Description: Turn the plugin on or off

TikTok Pixel Script

Type: Text Area Required: Yes Description: The complete TikTok Pixel code from TikTok Events Manager, including the <script> tags

What to paste: Copy everything from <script> to </script> from the Events Manager


Verification

After enabling the plugin:

  1. Install the TikTok Pixel Helper Chrome extension
  2. Visit your store website
  3. Click the extension icon - it should show your pixel is active
  4. Go to TikTok Ads Manager > Tools > Events > Test Events
  5. You should see your page views appearing in real-time

What Gets Tracked

The code you paste from TikTok tracks page views on every storefront page. That alone is enough for retargeting audiences and for measuring traffic from your ads.

Richer events such as add-to-cart or purchase are not automatic: build them in TikTok Ads Manager with Event Builder, which lets you define events by clicking elements on your live store without changing any code.