All guides

Send GA4 events to TikTok Events API

Feed TikTok server-side events from the GA4 hits you already collect. No TikTok pixel changes.

Beginner 5 min GA4TikTok Events API
What you need
  • Your TikTok pixel code (pixel ID), from TikTok Events Manager
  • An Events API access token, generated in the settings of the same pixel
  1. 1

    Go to destinations and click on Add destination

    Open Routing in the console and click Add destination. Your GA4 tag must already send its hits through your Tagstack endpoint.

    The Routing page of the Tagstack console with the Add destination button
  2. 2

    Choose TikTok

    The catalogue opens. Type tiktok in the search, pick TikTok Pixel (it sends through the Events API), then continue.

    The Add a destination dialog filtered on tiktok, with TikTok Pixel selected
  3. 3

    Paste your pixel code and access token

    In TikTok Ads Manager, open Tools, then Events Manager, and select your web pixel. Copy its pixel ID into Pixel code. In the pixel's Settings, under Events API, click Generate access token and paste it into Access token.

    The token is encrypted as soon as you save, and the console only ever shows its last 4 characters.

    The Connect step with a TikTok pixel code and access token filled in
  4. 4

    Route it from GA4

    Pick your endpoint and keep Google Analytics 4 as the source. Every GA4 hit your site already sends is turned into a TikTok event server-side. Your GA4 setup is not touched: the same hits keep going to Google Analytics.

    The Route step with Google Analytics 4 selected as the source for TikTok
  5. 5

    Save it

    Click Add destination. The route is live for the next hit. Watch it arrive in Realtime, then in the Overview of your pixel in TikTok Events Manager.

    The confirmation that TikTok Pixel is routed
  6. 6

    Know what TikTok receives

    GA4 recommended events become TikTok standard events. Any other event name is sent as is, as a custom event.

    GA4 eventTikTok event
    page_viewPageview
    view_itemViewContent
    add_to_cartAddToCart
    begin_checkoutInitiateCheckout
    add_payment_infoAddPaymentInfo
    purchaseCompletePayment
    searchSearch
    generate_leadSubmitForm
    sign_upCompleteRegistration
    loginLogin

    value, currency, transaction_id, search_term and your ecommerce items carry over, so purchases arrive with their revenue and products. For matching, the gateway sends the TikTok click id (ttclid) from the landing URL, the _ttp cookie, the visitor's IP and user agent, and a stable visitor id. Email or phone sent as GA4 parameters (email, phone) are hashed with SHA-256 before they leave.

    Hits where ad consent was denied are never sent to TikTok. If you also run the TikTok pixel in the browser, add the same event_id parameter to the GA4 event and to the pixel event: TikTok then counts them once.