Home › Platforms › TikTok

TikTok Pixel and Events API for WordPress

TikTok ads that learn from every accepted lead and paid order, counted once.

Tracking Nexus is a WordPress plugin that sends each accepted form lead and paid WooCommerce order to TikTok from the pixel in the browser and from the Events API on your server, with one event ID so TikTok Ads Manager counts it once, and only after the visitor's consent.

Paste a pixel ID and an Events API access token. No TikTok plugin, no Tag Manager.

TikTok finds buyers from the conversions you send it

When a TikTok campaign optimises for leads or purchases, TikTok shows your ads to people it expects to convert, and it learns who they are from the conversions your website reports.

Tracking Nexus sends the ones your business really got: leads your form plugin accepted and orders your WooCommerce store was paid for, each counted once.

Every event TikTok uses, under TikTok's own names

Each event has its own switch for TikTok, and custom events you define yourself can go too.

  • A page loads page view (the pixel's own page call)
  • A product page is viewed ViewContent
  • A shop or category page is viewed ViewCategory
  • A product is added to or removed from the cart AddToCart RemoveFromCart
  • The cart is viewed ViewCart
  • Checkout starts InitiateCheckout
  • A shipping or payment method is chosen AddShippingInfo AddPaymentInfo
  • A WooCommerce order is paid Purchase
  • Your form plugin accepts a submission Lead
  • A visitor creates an account or logs in CompleteRegistration Login
  • Someone searches your site Search
  • A phone, email or messaging link is clicked Contact

Download, OutboundClick, ScrollDepth, TimeOnPage and FormStart go too, but start switched off for TikTok on a new site; switch on the ones you want. Purchases carry the order value, currency, products and order ID, and you choose whether the value includes tax, shipping and fees.

Pixel and Events API, counted once

Do you need the TikTok Events API as well as the pixel? With both, a conversion still reaches TikTok when an ad blocker or a closed tab stops the pixel. Tracking Nexus sends each event from the visitor's browser and from your WordPress server with the same event ID, and TikTok deduplicates the pair, so you see one conversion in Ads Manager, not two.

Leads and purchases are recorded on your server when the form plugin accepts the submission or WooCommerce confirms the payment. They wait in a queue on your own site, and a background job sends them to the Events API within a minute or two, so no page waits. There's no tagging server to rent, and it's in every plan.

How server-side tracking works

A four-step setup, with no pixel code to paste

  1. Install Tracking Nexus and paste your TikTok pixel ID.
  2. Paste an Events API access token, generated once in TikTok Events Manager.
  3. Turn on the events you want TikTok to receive.
  4. Send a test lead or order and open Activity in the plugin: it shows what was sent and what TikTok answered. TikTok Pixel Helper, TikTok's Chrome extension, shows the pixel events on each page.

Matching details, only after consent

TikTok matches a conversion to a person using the details sent with it. Tracking Nexus sends the email and phone hashed (SHA-256) on your server, with TikTok's own ttp browser ID, the ttclid from the ad click when there is one, and the IP address and browser name TikTok uses for matching. Nothing goes to TikTok, from the browser or the server, until the visitor allows advertising through the consent plugin you already use.

Consent and Consent Mode v2

TikTok Pixel tracking on WordPress: questions

How do I add the TikTok Pixel to WordPress?

Install Tracking Nexus, paste your pixel ID and an Events API access token, and turn on the events you want to track. There's no pixel code to copy into your theme and no Tag Manager tag to build. Without a plugin, you'd paste TikTok's base code into your site's header and write each event yourself.

How does event deduplication work?

The pixel and the Events API send the same event with the same event ID. TikTok keeps one and drops the other, so a sale reported by both is counted once.

Is my customers' personal data sent to TikTok?

Only with the visitor's consent. The email and phone are hashed (SHA-256) on your server before they leave your site; TikTok never receives them in plain text. TikTok also asks for the visitor's IP address and browser name, which go as they are; the IP address has its own switch in the plugin.

Will it slow down my site?

Tracking Nexus adds one script of about 16 KB compressed, shared by every platform you connect. Server copies go from a background job on your server, never while your visitor waits.

Can I see what is being sent?

Yes. Activity lists every lead, purchase and refund, what was sent to each platform and what each platform did with it.

Does it work with my WooCommerce store?

Yes. Purchases count when WooCommerce confirms the payment, and the shopping journey from product views to checkout goes too. WooCommerce tracking

Every other platform gets the same conversions

Check out all the platforms we work with

Start your TikTok campaigns on real conversions

Get Tracking Nexus and go live in under five minutes, with the TikTok Events API and every other feature included. Try it worry-free with our 30-day money-back guarantee.