# TikTok Server-side Tracking: how to set up the TikTok Events API

Set up the TikTok Events API alongside the TikTok Pixel: deduplication, match keys, Event Match Quality and the right server-side route.

Source: https://taggrs.io/tiktok-server-side-tracking/
Author: Małgorzata Poddębniak, Content Marketer · [LinkedIn](https://www.linkedin.com/in/malgorzatapoddebniak/)
Updated: 2026-11-13

---

TikTok Server-side Tracking sends your conversion events to TikTok from a server you control, through the TikTok Events API, instead of relying only on the TikTok Pixel in the visitor's browser. TikTok recommends running both: the Pixel keeps reporting from the browser while your server sends a matching copy of each event, and a shared event ID tells TikTok the two describe the same purchase so it is counted once.

Most TikTok setups go wrong at this pairing. When the event IDs don't match, TikTok counts each purchase twice, and every report and optimization decision after that uses the inflated number.

This guide covers how to set up both sources, how deduplication works and what breaks it, how Event Match Quality is calculated, and which server-side route to TikTok fits your setup.

## What is TikTok Server-side Tracking?

The Events API is TikTok's server-to-server connection for website, app and offline events. Instead of only the visitor's browser sending an event to TikTok, your server sends a copy too, with the confirmed order data and hashed customer details attached. A shared event ID tells TikTok that both copies describe the same action.

Because the server copy does not depend on a script in the browser, ad blockers and browser privacy settings have less effect on it. Your server container can also receive events from other sources, such as your CRM, and forward them to TikTok with the same identifiers.

For the wider picture of why browser tracking loses conversions, see [tracking signal loss](/tracking-signal-loss/).

## Main benefits

### A higher Event Match Quality score

TikTok can only tie a conversion to a person when match keys travel with the event. Server-side, you take email, phone and your own customer ID from the order record rather than from whatever the browser happened to be holding, so more of your events carry the keys TikTok matches on.

### Conversions the Pixel misses

When an ad blocker or browser setting stops the Pixel from loading, the browser sends nothing. The Events API sends the conversion from your server, and it can also send conversions that never happen in a browser, such as orders confirmed in your CRM.

### Control over what TikTok receives

Events pass through a server container you control, so you decide which fields are forwarded, which are hashed and which are held back.

### Better optimization

TikTok's delivery system optimizes on the conversions it receives. When part of your purchases never reach it, it learns from a partial sample. Server-side events give it more conversions with more customer data attached, so optimization and audiences are built from more of your buyers.

Server-side Tracking can't recover an interaction your site never captured, but it stops the browser from deciding whether a conversion counts. Learn [how Server-side Tracking improves Smart Bidding and automated campaign performance](/improve-smart-bidding-with-server-side-tracking/).

**Browser-only and Server-side Tracking for TikTok**

|                                      | Browser only                       | Server-side with TAGGRS            |
| ------------------------------------ | ---------------------------------- | ---------------------------------- |
| Match keys                           | – What the browser happens to hold | ✓ From the order record            |
| Browser restrictions and ad blockers | ✗ Can stop the Pixel               | ✓ Event sent from your server      |
| Orders confirmed in your CRM         | ✗ Not tracked                      | ✓ Sent through the Events API      |
| Order value                          | – What the page shows              | ✓ The confirmed order value        |
| Control over what TikTok receives    | ✗ Limited                          | ✓ Filter, hash or hold back fields |

## Pixel, Events API or both?

Running the Events API does not mean switching the Pixel off. TikTok recommends using the Pixel and the Events API together, with event deduplication. The two sources see different things.

| The TikTok Pixel sees                    | The Events API sees                                |
| ---------------------------------------- | -------------------------------------------------- |
| The page URL and the referrer            | The confirmed order value                          |
| The \_ttp cookie and the ttclid click ID | Hashed email, phone and customer ID from the order |
| What happens during the session          | Conversions after the session has ended            |
| Only what the browser lets through       | Events the Pixel was blocked from sending          |

Server-only setups exist, usually where there is no website to tag, but they give up the browser context that improves matching. For most advertisers with a website, the answer is both sources sending the same events, deduplicated. Step 4 below explains how.

Pick TikTok in the checker below to see which container it goes in and how to configure it.

**Where does your platform belong?**

Select a platform to see which container it goes in, why, and how to configure it correctly.

**Google Analytics 4**: Both containers. Web container + server container.

Why: GA4 is the foundation of every server-side setup. The GA4 Config tag runs in the web container and sends data to the server container — feeding every downstream tag including Google Ads. Without server-side GA4 in place, no other platform in the server container receives data correctly.

Configuration steps:

1. **Add GA4 Config tag**: In your **web container**, add a GA4 Configuration tag. Set the Measurement ID and point the server container URL to your first-party tagging subdomain (e.g. `sst.yourdomain.com`).
2. **Deploy server container on TAGGRS**: Connect your GTM server container to TAGGRS. Your tagging subdomain must be a first-party subdomain of the tracked domain.
3. **Add GA4 server tag**: In your **server container**, add the GA4 tag. It will automatically receive events forwarded by the web GA4 Config tag.
4. **Verify data flow**: Use GTM Preview mode and GA4 DebugView to confirm events are arriving in the server container before going live.

[Switch to the server side (Google Analytics 4)](https://taggrs.io/docs/server-side-tracking/ga4/setup-in-gtm)

**Google Ads**: Server container only. All data flows from the server. No browser tag.

Why: Google Ads server-side measurement depends entirely on GA4 being configured in both containers first. Once GA4 is set up, all Google Ads tags — Conversion Tracking and Remarketing — run exclusively in the server container.

Configuration steps:

1. **Set up GA4 in both containers first**: Google Ads has a hard dependency on GA4. Complete the GA4 server-side setup before adding any Google Ads tags.
2. **Add Conversion Linker tag**: In your **server container**, add the Conversion Linker tag. This attaches click data to conversion events — the most commonly skipped step, and the one that breaks attribution when missing.
3. **Add Google Ads Conversion Tracking tag**: In your **server container**, add the Google Ads Conversion Tracking tag. Configure your Conversion ID and label from your Google Ads account.
4. **Add Google Ads Remarketing tag (optional)**: If you run remarketing campaigns, add the Google Ads Remarketing tag to the **server container**. Same dependency chain as Conversion Tracking.
5. **Test with Tag Assistant**: Verify the full chain: GA4 Config (web) → GA4 server tag → Conversion Linker → Google Ads tag. Confirm conversions appear in Google Ads → Measurement → Conversions.

[Switch to the server side (Google Ads)](https://taggrs.io/docs/server-side-tracking/google-ads/conversion-linker)

**Meta / Facebook**: Both containers. Web container + server container.

Why: Meta recommends running both the browser pixel and server CAPI simultaneously to maximise match rates and event coverage. Running both increases the chance that each conversion is attributed correctly — even when the browser signal is blocked or degraded.

Deduplication required. When both the browser pixel and server CAPI fire for the same event, Meta receives it twice. You must pass a matching `event_id` in both the browser and server events. Meta uses this ID to deduplicate and count the conversion once.

Configuration steps:

1. **Keep Meta Pixel in the web container**: Your existing Meta Pixel tag stays in the **web container**. Do not remove it — the browser signal improves match rates.
2. **Add Meta CAPI tag in the server container**: In your **server container**, add the Meta Conversions API tag. Configure your Pixel ID and Meta access token.
3. **Implement event\_id deduplication**: Generate a unique `event_id` for each event (e.g. a UUID or timestamp-based string). Pass the same `event_id` in both the browser pixel event and the server CAPI event. Meta matches them and counts once.
4. **Test in Meta Events Manager**: Go to Meta Events Manager → Test Events. Confirm events arrive from both browser and server, and that duplicate events are being deduplicated correctly.

[Switch to the server side (Meta / Facebook)](https://taggrs.io/docs/server-side-tracking/facebook/meta-pixel)

**TikTok**: Both containers. Web container + server container.

Why: TikTok recommends running the Pixel and the Events API together with event deduplication to maximise performance. The Pixel alone can miss conversions due to browser inconsistencies and connectivity issues. The Events API recovers those gaps. Run both in parallel and pass a matching `event_id` so TikTok merges duplicates.

Deduplication required. When both the Pixel and Events API fire for the same event, TikTok receives it twice. Pass a matching `event_id` in both the browser and server events. TikTok uses this ID to merge duplicates and count the conversion once.

Configuration steps:

1. **Keep TikTok Pixel in the web container**: Your existing TikTok Pixel tag stays in the **web container**. Do not remove it — TikTok recommends Pixel + Events API as a dual setup.
2. **Add TikTok Events API tag in the server container**: In your **server container**, add the TikTok Events API tag. Configure your Pixel ID and TikTok access token.
3. **Implement event\_id deduplication**: Generate a unique `event_id` for each event (e.g. a UUID or timestamp-based string). Pass the same `event_id` in both the browser Pixel event and the server Events API event. TikTok matches them and counts once.
4. **Confirm user data hashing**: The server tag automatically transforms user data (email, phone) to lowercase and hashes it using SHA256 before sending to TikTok. Verify this is active in the tag settings.
5. **Verify in TikTok Events Manager**: Go to TikTok Ads Manager → Assets → Events → Web Events (or Test Events). Confirm events arrive from both browser and server, and that matching events are deduplicated.

[Switch to the server side (TikTok)](https://taggrs.io/docs/server-side-tracking/tiktok/pixel)

**Pinterest**: Both containers. Web container + server container.

Why: Pinterest follows the same dual-signal logic as Meta: browser tag and Conversions API run in parallel. Both channels together give Pinterest the highest-fidelity view of conversion activity, improving attribution and campaign optimisation.

Deduplication required. With both the browser tag and Conversions API active, Pinterest receives each event from two sources. Pass a matching deduplication key in both the browser and server events so Pinterest counts each conversion once.

Configuration steps:

1. **Keep Pinterest Tag in the web container**: Your existing Pinterest Tag stays in the **web container**. It continues to fire on browser-level events.
2. **Add Pinterest Conversions API tag in the server container**: In your **server container**, add the Pinterest Conversions API tag. Configure your Tag ID and the access token you generate in Ads Manager.
3. **Set up event deduplication**: Pass a consistent deduplication key in both the browser and server events. Pinterest uses this to match and deduplicate conversion events.
4. **Test with Pinterest Tag Helper**: Use the Pinterest Tag Helper Chrome extension and Pinterest Events Manager to confirm events arrive from both channels and are deduplicated correctly.

[Switch to the server side (Pinterest)](https://taggrs.io/docs/server-side-tracking/pinterest/tag)

**LinkedIn**: Both containers. Web container + server container.

Why: The LinkedIn Insight Tag runs client-side in the web container for audience building and page view data. Conversion events are also sent server-side via LinkedIn CAPI. LinkedIn calls this a redundant setup: when both match, LinkedIn keeps the Insight Tag event and discards the CAPI copy. The server path still covers cases where the browser tag never fires.

Deduplication required. LinkedIn uses an `eventId` to match browser and server conversion events. Pass the same `eventId` in both. When both match, LinkedIn keeps the Insight Tag event and discards the Conversions API copy.

Configuration steps:

1. **Keep LinkedIn Insight Tag in the web container**: The Insight Tag stays in the **web container** for audience building and page view tracking.
2. **Add LinkedIn CAPI tag in the server container**: In your **server container**, add the LinkedIn Conversions API tag. Configure your LinkedIn Ad Account ID and access token.
3. **Configure eventId deduplication**: Pass a matching `eventId` in both the browser Insight Tag and the server CAPI event. LinkedIn uses this to deduplicate. Note: `conversion_id` identifies the conversion rule — it is not the deduplication key.
4. **Verify in LinkedIn Campaign Manager**: Go to LinkedIn Campaign Manager → Analyze → Conversion Tracking. Confirm both Insight Tag and CAPI events show, and that redundant matches are deducted from the CAPI count.

[Switch to the server side (LinkedIn)](https://taggrs.io/docs/server-side-tracking/linkedin/insights-tag)

**Snapchat**: Both containers. Web container + server container.

Why: Snap Pixel runs in the web container; Snap Conversions API runs in the server container. Both channels run in parallel. The server tag automatically normalises and hashes user parameters — including email, mobile identifier, IP address, and phone number — before sending to Snap.

Deduplication required. Set the same ID on both sides: `client_dedup_id` in the browser Snap Pixel and `event_id` in the server Conversions API events. Snapchat uses this to deduplicate and count each conversion once.

Configuration steps:

1. **Keep Snap Pixel in the web container**: Your existing Snap Pixel tag stays in the **web container**. It continues to fire browser-level events.
2. **Add Snapchat Conversions API tag in the server container**: In your **server container**, add the Snapchat CAPI tag. Configure your Snap Pixel ID and access token.
3. **Confirm user data normalisation**: The tag automatically normalises and hashes email, phone, IP address, and mobile identifier using SHA256. Verify this is enabled in the tag configuration.
4. **Implement deduplication**: Pass one ID as `client_dedup_id` in the Snap Pixel and as `event_id` in the Conversions API, so Snapchat deduplicates correctly.
5. **Test in Snap Events Manager**: Go to Snap Ads Manager → Events Manager. Confirm events arrive from both channels and are being deduplicated.

[Switch to the server side (Snapchat)](https://taggrs.io/docs/server-side-tracking/snapchat/snap-pixel)

**Klaviyo**: Server container only. All data flows from the server. No browser tag.

Why: Klaviyo does not support event deduplication. Running both browser and server tracking sends every event twice. Configure server-side only. The tag communicates directly with the Klaviyo API and supports adding contacts, tracking on-site activity, and sending event parameters.

Configuration steps:

1. **Remove any existing Klaviyo browser tag**: If you have a Klaviyo JavaScript snippet in your web container or site code, disable it before adding the server-side tag. Running both creates duplicate events.
2. **Add Klaviyo tag in the server container**: In your **server container**, add the Klaviyo tag. Configure your Klaviyo Public API Key and Private API Key.
3. **Configure supported actions**: The tag supports three action types: **track events**, **create or update a contact**, and **create or update a contact + track event simultaneously**. Configure the action type per trigger.
4. **Test via Klaviyo Activity Feed**: Go to your Klaviyo account → Profiles. Trigger a test event and confirm it appears in the profile activity feed without duplicates.

[Switch to the server side (Klaviyo)](https://taggrs.io/docs/server-side-tracking/config/klaviyo)

**ActiveCampaign**: Server container only. All data flows from the server. No browser tag.

Why: ActiveCampaign connects via API from the server container. The tag tracks events, creates or updates contacts, and can combine both actions in a single call. Configure server-side only for clean, deduplicated data into your CRM.

Configuration steps:

1. **Obtain your ActiveCampaign API credentials**: In your ActiveCampaign account, go to Settings → Developer to find your API URL and API Key.
2. **Add ActiveCampaign tag in the server container**: In your **server container**, add the ActiveCampaign tag. Enter your API URL and API Key in the tag configuration.
3. **Select the action type**: Choose from three action types: **Track event**, **Create or update contact**, or **Create or update contact + track event**. Set the appropriate trigger for each action.
4. **Map event and contact parameters**: Configure which data layer variables map to ActiveCampaign event names, contact email, and any custom fields you want to populate.
5. **Test in ActiveCampaign**: Trigger a test event and confirm it appears in ActiveCampaign under Contacts → Activity or Reports → Event Tracking.

[Switch to the server side (ActiveCampaign)](https://taggrs.io/docs/server-side-tracking/config/activecampaign)

**Hotjar**: Web container only. No server-side setup needed.

Why: Hotjar records sessions, heatmaps, and on-page user behaviour directly in the browser. It works by observing DOM interactions — mouse movements, scroll depth, and clicks — which only exist in the browser environment. There is no server-side equivalent, and none is needed: Hotjar does not send conversion signals to ad platforms, so there is no signal loss problem to solve here. Keep it in your web container and leave your server container untouched.

Configuration steps:

1. **Keep Hotjar in the web container**: Add the Hotjar tracking code via a Custom HTML tag in your **web container**, or install it directly in your site’s `<head>`. Either approach is correct.
2. **No server container changes needed**: Do not add Hotjar to your server container. It has no API equivalent and routing it server-side would break its functionality entirely.

**Microsoft Clarity**: Web container only. No server-side setup needed.

Why: Microsoft Clarity works the same way as Hotjar: session recordings and heatmaps captured directly in the browser. It relies on observing real DOM interactions and cannot function outside the browser context. It is free, integrates natively with GA4, and is widely used alongside server-side setups — just not as part of them.

Configuration steps:

1. **Add Clarity via GTM web container**: In your **web container**, add a Custom HTML tag with the Microsoft Clarity script. Set it to fire on All Pages.
2. **Connect to GA4 (optional)**: In the Clarity dashboard, link your GA4 property to see session recordings alongside GA4 segments. This connection is made inside Clarity — no GTM changes needed.
3. **No server container changes needed**: Clarity has no server-side API. Keep it client-side only.

**LiveChat**: Web container only. No server-side setup needed.

Why: LiveChat injects a chat widget into the browser DOM and detects page activity, user idle time, and scroll behaviour to trigger conversations at the right moment. All of this requires direct browser access. The widget cannot be loaded or managed from a server container.

Configuration steps:

1. **Add LiveChat via GTM web container**: In your **web container**, add a Custom HTML tag with the LiveChat tracking code snippet. Fire it on All Pages.
2. **No server container changes needed**: LiveChat has no server-side API for widget delivery. It is a browser-only tool by design.

**Zendesk Chat**: Web container only. No server-side setup needed.

Why: Zendesk Chat (Web Widget) renders a live chat interface directly in the browser. It uses client-side JavaScript to display the widget, detect visitor behaviour, and manage real-time conversations. Like all chat widgets of this type, it depends entirely on browser context and cannot be routed through a server container.

Configuration steps:

1. **Add Zendesk Web Widget via GTM web container**: In your **web container**, add a Custom HTML tag with the Zendesk Web Widget snippet from your Zendesk account (Admin Center → Channels → Messaging). Fire on All Pages.
2. **No server container changes needed**: The Zendesk Web Widget is browser-only. No server-side configuration is required or possible.

**Typeform**: Web container only. No server-side setup needed.

Why: Typeform embedded forms and popups run entirely in the browser. They rely on client-side JavaScript to render the form, respond to user input, and trigger display logic (scroll-based, time-based, or exit intent). Typeform does offer a Responses API for pulling submission data server-to-server, but the embed itself is browser-only and belongs in the web container.

Configuration steps:

1. **Embed Typeform via GTM web container**: In your **web container**, add a Custom HTML tag with the Typeform embed snippet or use the standard `<script>` + `<div>` embed method. Set the trigger based on your display logic (All Pages, specific page, or a custom event).
2. **No server container changes needed**: The Typeform embed is client-side only. If you need to push form submission data into your data layer for conversion tracking, use Typeform’s hidden fields or webhook → server integration — but the embed itself stays in the web container.

## Choose your server-side route

There are four ways to send server-side events to TikTok. Which one fits depends on how many platforms you track and how much control you need.

| Route                              | Best for                                                                       | What to know                                                                                                  |
| ---------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| Events API through server-side GTM | Sites that also send data to GA4, Google Ads or other platforms                | Full control over fields and consent. TikTok publishes an official server-side tag. Needs a server container. |
| TikTok Events API Gateway          | Agencies and retailers that run several TikTok ad accounts                     | A server-to-server connection set up through a Gateway host that can manage several accounts. TikTok only.    |
| Commerce platform integration      | Stores on a platform with a TikTok integration, such as Shopify or WooCommerce | Quick to switch on. Least control over what is sent.                                                          |
| Direct API integration             | Teams with developers who want to build the connection themselves              | Most flexible. Your developers maintain it.                                                                   |

## Server-side Tracking and GDPR

Server-side Tracking gives you one place to apply consent decisions and data minimization before anything reaches TikTok. With TAGGRS, you decide which information is collected and forwarded, and you can filter, hash or anonymize sensitive fields such as email addresses, phone numbers or IP addresses before they leave TAGGRS servers.

Processing data on TAGGRS infrastructure and keeping tracking IDs off the client side reduces the risk of data reaching destinations you did not choose. With server-side GTM hosting, you choose where your server processes data, including locations within the EU. If you use an Events API Gateway, check with its host where it processes data.

This supports GDPR principles such as data minimization and purpose limitation. It does not replace a lawful basis for processing. An event a visitor declined should not be sent at all, whether it comes from the browser or your server, and your consent management platform still has to set consent states before any tag processes advertising data. Read more in [Server-side Tracking and the GDPR](/server-side-tracking/gdpr/) and on our [security page](/security/).

> **Expert insight.** When someone clicks a TikTok ad, they land on a URL carrying ttclid. A cookie that stores it with JavaScript is capped at seven days in Safari, and at 24 hours when the visitor arrived from a domain Safari classifies as a cross-site tracker on a URL with parameters. A purchase a few days after the click then has no click ID to match on. TikTok's own server-side GTM tag reads ttclid from the URL and stores it in a first-party cookie set by your server for 30 days. That cookie is not subject to the JavaScript cap, as long as the server runs on your own domain (see step 1).

## Set up TikTok Server-side Tracking

Our documentation includes step-by-step guides for each part of the setup. Work through them in this order.

In the video below, Lowie Verschelden shows step by step how to set up TikTok Server-side Tracking.

[Tracking Session #5: TikTok Server-side Tracking](https://www.youtube.com/watch?v=plQTKDxhhFY)

### 1. Create a server container in Google Tag Manager

A server container is where your events arrive before they are forwarded to TikTok. It runs on a first-party tagging URL on your own domain, such as `sending.example.com`. Pointing a subdomain at an external service is not enough on its own, because Safari compares IP addresses before it decides whether to extend a cookie's lifetime.

[Docs: Set up Google Tag Manager](https://taggrs.io/docs/server-side-tracking/setup/gtm)

### 2. Install the TikTok Pixel

The Pixel stays in place. It captures browser context the server cannot see, and in a dual setup it supplies one half of each deduplicated pair. Create the Pixel in TikTok Events Manager and install it through your web container rather than hard-coding it, so the event ID in step 4 can be passed to both tags from one place.

[Docs: Set up TikTok Pixel](https://taggrs.io/docs/server-side-tracking/tiktok/pixel)

### 3. Install the TikTok Events API

The Events API tag lives in your server container and sends events to TikTok over a direct server-to-server connection. Use TikTok's official Events API template, with an access token generated in the Pixel's settings in Events Manager. Configure it with the same Pixel ID as your browser Pixel. Sending browser and server events to two different Pixels is a common early mistake, and it makes deduplication impossible.

TikTok matches an event to a person through match keys. Send as many as you have:

- **Email, phone number and external ID** (your own customer ID). Hashed with SHA-256 before they leave your server. TikTok's template hashes plain values for you.
- **ttclid and the \_ttp cookie.** TikTok's click ID and browser ID, sent as they are.
- **IP address and user agent.** Sent as they are. The browser adds these automatically, server events do not, so map them in your server container.

[Docs: Install TikTok Events API](https://taggrs.io/docs/server-side-tracking/tiktok/events-api)

### 4. Set up event deduplication

Running the Pixel and the Events API together means TikTok receives two copies of every purchase. Deduplication is what stops it counting them as two sales.

TikTok matches on the event name and the event ID. Both copies need the same `event_id` value and must be sent to the same Pixel. Generate the ID once, at the moment of the conversion, for example from your order ID, push it to the data layer and pass it to both tags. An ID generated separately inside each tag will never match, which is the most common reason a setup starts double counting.

Keep in mind:

- Deduplication applies only within 48 hours of the first event carrying a given ID. After that, the second copy counts as a separate conversion.
- TikTok keeps the first copy it receives for measurement and reporting.
- Duplicates from the same source are caught too: two Pixel events, or two Events API events, with the same ID within 48 hours count once.
- Use an ID that is unique per conversion, so two separate purchases are never merged.

[Docs: Prevent duplicate events in TikTok](https://taggrs.io/docs/server-side-tracking/tiktok/event-deduplication)

## Check your Event Match Quality score

Event Match Quality (EMQ) shows how well the events you send can be matched to TikTok users. You find the score on the Overview tab in TikTok Events Manager. TikTok calculates it as a weighted average of your match key coverage: how often each match key is present on your events.

Scores depend on the event. A purchase usually carries email and phone from the checkout, while a page view early in the journey has little identifying data to send, so it scores lower by design. Focus on the events you optimize for.

Because the score is based on coverage, it reflects which keys are present, not whether their values are correct. Well-formatted but wrong data can still score well, so use the score as a diagnostic rather than a target. The event details on the same tab show parameter, matching and deduplication information per event, and the Diagnostics tab lists issues with a suggested fix.

## Test your setup

Open Events Manager, select your Pixel and go to Test Events. Add the test event code to your Events API tag, trigger a purchase on your site and check what arrives. You can filter test events by browser and server, so you can see both copies.

Check that both copies carry the same event name and event ID, then look at the deduplication information in the event details on the Overview tab. If you see two separate purchases where you expected one, your event IDs are not matching and step 4 needs checking. Remove the test event code before you publish your server container, and do this before you rely on the numbers for bidding, because an inflated conversion count goes straight into TikTok's optimization.

## How TAGGRS helps

TAGGRS hosts your server container, so you can run the Events API without managing a server yourself.

- [Server-side GTM hosting](/gtm-server-side-tagging-hosting/) on your own subdomain, for first-party requests and longer cookie lifetimes.
- [Cookie Recovery](/cookie-recovery-ios/) restores TikTok's \_ttp cookie when Safari removes it, so it stays available across long purchase journeys.
- Data Enricher adds non-sensitive context such as city, region and device to events.
- Ready-made templates and a GTM copy-paste option to speed up the setup.

The TAGGRS dashboard shows how many of your events browser tracking prevention and ad blockers would otherwise have stopped.

![The TAGGRS analytics dashboard: total GA4 events, the tracking prevention impact, and a chart of the share of events recovered from browser tracking prevention and from ad blockers per day](https://taggrs.io/_astro/dashboard-analytics-focus.DsKMqKF8_Z1BxApa.webp)

**Not sure where else your setup is losing data?**

Our free website Tracking Checker scans your site and shows which pixels, server-side connections, cookies and consent settings work, each with a recommended fix.

- [Check your tracking](/website-tracking-checker/)

## Frequently asked questions

**Do I need both the TikTok Pixel and the Events API?**

Yes. TikTok recommends using both together with event deduplication. The Pixel captures browser context such as the ttclid click ID and the \_ttp cookie, and the server sends confirmed order data and conversions the Pixel misses.

**Why does TikTok count my conversions twice?**

The most common cause is that the event IDs from the Pixel and the Events API don’t match. Generate one event\_id from your order ID and pass it to both tags. Also check that both send events to the same Pixel.

**What is Event Match Quality on TikTok?**

It shows how well your events can be matched to TikTok users, calculated as a weighted average of how often each match key is present. Sending hashed email, phone and external ID with ttclid, the \_ttp cookie, IP address and user agent raises it.

**What is the difference between the TikTok Events API Gateway and the Events API through server-side GTM?**

The Gateway is a server-to-server connection for TikTok only, run by a Gateway host that can manage several ad accounts. Server-side GTM supports multiple platforms and gives more control over data and where it is processed, but needs more configuration.

**Is TikTok Server-side Tracking GDPR compliant?**

It supports GDPR by letting you control and minimize what reaches TikTok, but it does not replace a lawful basis or consent. Events a visitor declined should not be sent from the browser or the server. Read more in [our guide to Server-side Tracking and the GDPR](/server-side-tracking/gdpr/).

- Blog: [Which platforms support server-side Google Tag Manager?](/which-platforms-support-server-side-gtm/)
