Skip to main content
PrestaShop → TikTokIntegration guide

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

  1. 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.

  2. 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.

  3. 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.

  4. 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. 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. 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. 3

    The identifier is the bridge

    The ttclid, captured at the visit and carried into the PrestaShop order.

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the confirmation template.

  5. 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

  1. 01

    Count orders carrying the ttclid

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order metadata on ten recent orders

    Partial coverage across orders points at a module conflict rather than a missing implementation.

  4. 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.

  5. 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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get PrestaShop and TikTok joined properly

Free30 minutesNo obligation