TikTok Events API for Shopify.
Leeghwater sends your shop's purchases, and the five steps before them, to TikTok's Events API from our server. You paste a pixel ID and an access token. Every event, and TikTok's answer to it, is on your dashboard.
Checked against the tool on 29 November 2026.
PageviewViewContentAddToCartInitiateCheckoutAddPaymentInfoPurchase
What you paste
Pixel ID and access token, from TikTok Ads Manager under Tools, Events. A test event code, to test.
What it is matched by
Purchase: email and phone, hashed.
Every event: our visitor ID, hashed (or the customer number if our pixel missed the visit), the click ID (ttclid) and TikTok’s cookie (_ttp).
Good to know
- Needs the page an event happened on. Without it, nothing is sent, and the log says so.
Connect it, step by step
- Install Leeghwater from the Shopify App Store and open it from Shopify admin. It places its own pixel. No theme edits, no DNS change.
- In TikTok Ads Manager, go to Tools, Events, and open your pixel. Its pixel ID is a row of capitals and digits, such as
CUSG5HBC77UD11VVRQEG. - In that pixel’s Settings, choose Generate Access Token.
- In the dashboard, open Settings, then TikTok. Paste both and save. We try them at TikTok before we keep them.
- Optional: paste a test event code from the Test Events tab. Once live data is on, the events then show under Test Events, and test orders are sent as well. Empty the field when you are done.
- Nothing goes to TikTok until you switch live data on in the settings. Look at a few orders first: each shows the events as they would go out to TikTok, and why any would not.
Use a pixel nothing else sends to
TikTok counts two copies of an event as one only when they carry the same event ID, and only within 48 hours. Our events carry our own IDs. So if TikTok’s pixel in your theme or TikTok’s sales channel app also sends to this pixel, every purchase counts twice. Switch the other sender off, or use a pixel nothing else sends to. When you connect, we look at your shop’s home page and tell you if the pixel ID is on it already.
Until you switch live data on, nothing is sent, so you can compare first.
See it arrive at TikTok
- In TikTok’s Events Manager, the pixel’s overview shows the events it received and where they came from.
- With a test event code and live data on, the Test Events tab shows each event as it arrives.
- In Leeghwater, an order’s page lists every event that went to TikTok and TikTok’s answer. An answer with
"code":0and"message":"OK"is shown as accepted.
When TikTok says no
| TikTok’s words | What it means | What to do |
|---|---|---|
Access token is incorrect or has been revoked. (code 40105) |
TikTok does not accept this access token: it was mistyped or cut short, or it was revoked. | Make a new one: open the pixel in Events Manager, go to Settings, choose Generate Access Token, and paste it in place of this one. |
No permission to operate event source id (code 40001) |
This token may not send to this pixel: the pixel ID is wrong, or the token was made for another pixel. | Check the pixel ID under Tools, Events, and make the token in that pixel’s own settings. |
A token TikTok refuses while we send pauses TikTok alone. The dashboard and Shopify admin say so, the shop’s owner gets one mail, and TikTok’s events wait until you paste a token it accepts.
Questions
Why was an event not sent to TikTok?
TikTok needs the page an event happened on. An event without one is not sent, and its log says so. Events also need the visitor to allow marketing.
Does TikTok get the buyer’s name and address?
No. TikTok’s Events API takes email and phone, hashed, and no name or address. It also gets the click ID (ttclid), TikTok’s cookie (_ttp) and our visitor ID, hashed.
How late can a purchase reach TikTok?
TikTok names no age limit. We try a purchase again for up to 7 days when TikTok has a fault.