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¶
- Go to TikTok Ads Manager
- Sign in to your TikTok for Business account
- Open Tools > Events
- Select Web Events, then your pixel (or create a new one)
- Choose Manually install pixel code
- 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¶
- In your store admin, go to System Settings > Plugins
- Find the TikTok Pixel card
- Click Configure
- Enable the plugin using the toggle switch
- Paste your complete pixel code in the TikTok Pixel Script field
- 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:
- Install the TikTok Pixel Helper Chrome extension
- Visit your store website
- Click the extension icon - it should show your pixel is active
- Go to TikTok Ads Manager > Tools > Events > Test Events
- 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.