Connecting PrestaShop to TikTok Events API
PrestaShop is self-hosted open source with a large module ecosystem, which means the store's behaviour depends heavily on which modules are installed. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the PrestaShop order before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PrestaShop to TikTok: ttclid on the cart, CompletePayment on the hook
Store the ttclid on the PrestaShop cart the moment it appears, since TikTok's in-app browser loses cookies across payment redirects. Send CompletePayment from the validation hook with content IDs matching your TikTok catalog, hashed email and phone, and the order reference as the event_id shared with the pixel. Keep one server-side sender and check TikTok counts weekly.
TikTok shoppers reach PrestaShop in the in-app browser, which often loses cookies when the shopper is sent off to a payment provider and back. Store the ttclid from the landing URL on the cart the moment it is seen, not in a cookie read on the confirmation page. Redirect-based payment modules return the shopper to a fresh browser context often enough for the difference to show in your numbers.
Send CompletePayment from the validation hook with value, currency and content IDs that match the product IDs in your TikTok catalog if you run catalog ads; a feed module that exports one ID format while events send another breaks product-level optimization. Hashed email and phone come from the customer record, and the order reference is the event_id the pixel also uses.
Check whether a TikTok module is installed and what it sends, since some add only the pixel and others an Events API connection, and keep one server-side sender. Module updates are the usual cause of a sudden drop in TikTok-reported purchases: compare TikTok's CompletePayment count with PrestaShop's paid orders weekly, and after each update check ten consecutive TikTok-sourced orders for a stored ttclid. Credit slips cannot be reversed in TikTok, so report refund rate separately.
PrestaShop → TikTok · what breaks
Why this join usually fails — PrestaShop → TikTok
- 01
The ttclid never reaches PrestaShop
Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.
- 02
Module ecosystem interference
PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.
- 03
The ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
PrestaShop → TikTok · the fix
What working looks like — PrestaShop → TikTok
The ttclid on every order
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
PrestaShop → TikTok · architecture
How PrestaShop and TikTok actually connect
- 1
PrestaShop holds the truth
You own the data and can query it directly. Pin down which order states count as revenue, since PrestaShop's state machine is more granular than most.
- 2
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, captured at the visit and carried into the PrestaShop order.
- 4
The event source decides reliability
Fire server-side from the hook rather than the confirmation template.
- 5
Deduplication at the destination
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
PrestaShop → TikTok · normal or broken
Working vs. broken, side by side — PrestaShop → TikTok
Normal, not a fault
The ttclid present on the order
Sent from the PrestaShop order validation hook
Deduplicated correctly
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
Actually broken
The ttclid missing on most records
Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.
Sent from the browser
PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.
Counted twice, or not at all
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
PrestaShop → TikTok · diagnose
Diagnostic order — PrestaShop → TikTok
- 01
Count orders carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Check order metadata on ten recent orders
Partial coverage across orders points at a module conflict rather than a missing implementation.
- 04
Measure ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
PrestaShop → TikTok · prove
How it gets proven — PrestaShop → TikTok
Source of truth
PrestaShop's order records in your own database, for the same window and order state set.
- The ttclid confirmed present on a live order.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Order metadata confirmed present across ten consecutive orders rather than one.
PrestaShop → TikTok · free audit
What we check in the free audit
- Count orders carrying the ttclid
- Follow one real conversion end to end
- Check order metadata on ten recent orders
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
PrestaShop's order records in your own database, for the same window and order state set.
Free30 minutesNo obligation
PrestaShop → TikTok · when not to buy
When you don't need this — PrestaShop → TikTok
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the ttclid.
- If your PrestaShop install is heavily moduled and maintained by another party, scope their involvement before starting.
- If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
PrestaShop → TikTok · what we deliver
What gets built — PrestaShop → TikTok
Identifier capture into PrestaShop
Capture the identifier and write it to order metadata through a hook, server-side, so it does not depend on page execution.
Event source: the PrestaShop order validation hook
Fire server-side from the hook rather than the confirmation template.
Dispatch to TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
Reversals where they exist
Credit slips are recorded against the order.
Written guarantee
95%+ tracking accuracy
Measured against PrestaShop's order records in your own database, for the same window and order state set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
PrestaShop → TikTok questions, answered
Check PrestaShop Addons for a TikTok integration and confirm whether it sends server events or only the pixel before building your own.
A module conflict or cache change usually stops the ttclid being stored or the pixel firing. Check order metadata and the event in TikTok Events Manager.
Almost always because the ttclid never reached the PrestaShop order. Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to. Measure coverage before debugging the dispatch.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
The PrestaShop order validation hook. Fire server-side from the hook rather than the confirmation template.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on PrestaShop → TikTok
- TikTok · Lead → booked callHow to track lead to booked call for TikTok Ads
- TikTok · Booked call → closed wonHow to track booked call to closed won for TikTok Ads
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
RELATED GUIDES
Where PrestaShop → TikTok fits in the rest of your tracking
- TikTok · FashionTikTok Ads conversion tracking for fashion brands
- TikTok · Jewelry ecommerceTikTok Ads conversion tracking for jewelry ecommerce brands
- TikTok × Ecommerce OrdersHow to reconcile TikTok Ads against your store's order table
- TikTok · Add to cart → purchaseHow to track add to cart to purchase for TikTok Ads
- Gumroad → TikTokConnecting Gumroad to TikTok Events API
- PrestaShop → SnapchatConnecting PrestaShop to Snapchat
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- BigCommerce → TikTokConnecting BigCommerce to TikTok Events API
Free · 30 min
Get PrestaShop and TikTok joined properly
Free30 minutesNo obligation
