Connect TikTok to your Shopify store with the Events API

By the HonestTag team ยท Published October 16, 2026

HonestTag sends each verified Shopify order to TikTok from its server through the TikTok Events API, so TikTok ads can be measured on real orders, with new and returning buyers labeled once confirmed. You connect it with the TikTok sign-in on the TikTok card, or with an access token from TikTok Events Manager. The sign-in also lets HonestTag read your TikTok spend. This page lists what you need, the steps, what is sent and read, and how to check it works.

What you need

Will HonestTag double count?

Keep the TikTok app if you use it. By default HonestTag sends TikTok only its own HonestTag_ events, which do not add to your TikTok Purchase count. Turning on the standard Purchase switch while the TikTok app or pixel still sends purchases counts every order twice.

Why use HonestTag instead of the TikTok app

The switch is for a store that wants HonestTag to be its only TikTok purchase source. What it gives you:

The switch

On the TikTok card, Use HonestTag instead of the TikTok app for purchases: send TikTok's standard Purchase event is off by default. The card warns: "Turn on only if HonestTag is your only TikTok purchase source. If the TikTok app or a TikTok pixel already sends purchases, this counts every order twice." To turn it on you also tick No TikTok app or TikTok pixel sends purchases for this store, and the save is refused without it.

Before you turn it on

Where to find what the card asks

Pixel code

The pixel code is TikTok's ID for your store's TikTok pixel, a string of letters and numbers.

  1. Sign in to TikTok Ads Manager.
  2. Go to Tools > Events > Data sources. Your pixel is listed there with its code.
  3. No pixel yet? Go to Tools > Events > Connect data source > Web and follow TikTok's steps to create one.

Events API access token

You need to be an Admin or Operator on the TikTok ad account. If you are not, ask your business admin to make the token or give you access.

  1. In TikTok Ads Manager, go to Tools > Events > Data sources and click your pixel.
  2. Click the Settings tab.
  3. Click Generate Access Token, then copy the token and paste it here.
  4. The token works only for pixels in the same TikTok ad account.

Advertiser ID

Signing in with TikTok fills this for you. TikTok's help names this number your ad account ID.

  1. In TikTok Ads Manager, click your account name at the top of the page.
  2. Click ID to see and copy it. It is also in the page's web address.
  3. Do not use the Business Center ID, which TikTok lists separately.

Connect TikTok, step by step

  1. Find your pixel code. In TikTok Ads Manager, go to Tools > Events and open your web pixel. Copy its pixel code. If you have no pixel yet, TikTok says to create one under Tools > Events > Connect data source > Web.
  2. Sign in to TikTok. In the HonestTag app, go to Setup and click Connect TikTok on the TikTok card. Approve HonestTag on TikTok's page and you return to the card.
  3. Enter the pixel code and advertiser. Under Step 1, Purchase delivery, paste the pixel code. Under Step 2, Spend reads, pick your advertiser from the list.
  4. Choose the standard Purchase setting and save. Leave Use HonestTag instead of the TikTok app for purchases: send TikTok's standard Purchase event off unless HonestTag is your only TikTok purchase source, then click Save settings. On a paid plan HonestTag sends TikTok one test event to confirm the pixel.
  5. Build custom conversions to optimize on. Once the HonestTag events appear, create a custom conversion from the one you want in TikTok Events Manager, mapped to the Purchase standard event, and pick it as the optimization goal of a Conversions campaign.

To use a token instead of the sign-in, open Use an Events Manager token instead on the card, paste the pixel code and the token, and save. HonestTag sends TikTok one test event with that pair first and saves nothing if TikTok refuses it. A pasted-token save also turns spend reads off for any advertiser saved before, and the card names it so you can turn them back on with the sign-in. The two authorizations are checked separately, and the card says which one needs attention.

The four purchase goals in TikTok

For each order it sends (see which orders are sent), HonestTag sends custom events to your pixel:

A purchase also carries TikTok's customer_type field, new or returning, when Shopify has confirmed the customer's history by the time it is sent. TikTok's help says custom events "are crucial for detailed reporting and audience creation, although they are not applicable for campaign optimization." To bid on a goal, make it a custom conversion. TikTok's steps: "In TikTok Ads Manager, go to Tools and click Events Manager. Click the Custom conversion tab on the left menu. Click Create custom conversion." Name it, choose your pixel as the data source and select the HonestTag event. TikTok then asks you to map a custom event to a standard event for optimization; choose Purchase. To use it, TikTok says to "Create a new campaign with the Conversions objective" and select the custom conversion "Under Optimization Goal".

HonestTag does not create these for you. TikTok's API creates a custom conversion from a custom event only when it is "configured for the App or Pixel", and TikTok does not say when an event sent from a server becomes configured. Which goal to bid on is explained in the HonestTag conversion actions.

What HonestTag sends to TikTok

For each eligible order HonestTag sends one request to TikTok's Events API for your pixel, with event source web. It holds:

An order with no TikTok click ID, no email and no phone is not sent. The value is the order total net of tax, and a bundle is sent as one product. Consent rules are the same as for every destination and are on the server-side delivery page. TikTok's response confirms the request was accepted, not that each event was processed. When TikTok answers with its "Partially successful" code, HonestTag records the delivery as a partial acceptance.

The card's optional switch Also send browse events (AddToCart, InitiateCheckout, AddPaymentInfo) is off by default. When on, HonestTag also sends those steps, with no order value, for visitors whose TikTok click ID (ttclid) it recorded. Each carries that click ID, a hash of the visitor ID, the IP address and the user agent. Email and phone are never sent with them. Leave it off if a pixel in your theme already sends them.

What HonestTag reads, and what it never touches

Avoid counting a purchase twice

TikTok's rule, from its deduplication page: "TikTok deduplicates events based on their event_source_id, event (for instance, Purchase, or AddToCart) and event_id." Its cookie-based method does not apply either: "Cookie deduplication will only drop Events API event when event_id is not set in the Events API payload", and HonestTag always sets one. HonestTag's event ID is computed on its server, so no browser pixel can send the same one.

So if the TikTok app, or a pixel in your theme, already sends Purchase to the same pixel, turning on HonestTag's standard Purchase would count every order twice. That is why it is off by default. Leave it off unless HonestTag is the only source of TikTok's standard Purchase for that pixel. The HonestTag_Purchase events are sent whichever you choose, and their names cannot collide with any other tool's. The duplicate purchase events guide shows how to find every purchase source on a store.

Refunds, edits and which orders are sent

How to check it works

  1. On the card. After you save, the TikTok card shows the pixel, the advertiser, and whether browse events and the standard Purchase are on.
  2. In HonestTag order proof. After the next online order, open it in the HonestTag app. The proof shows TikTok as the platform, the delivery status, the event ID and which events were sent, for example HonestTag_Purchase and HonestTag_Purchase_NC.
  3. In TikTok Events Manager. TikTok says to "navigate to your pixel's detail page", where the Server metric "shows the distinct events received only from the Events API."

Error messages and what to do

Disconnecting

Disconnect from the TikTok card, or uninstall the app. Delivery and spend reads stop shortly after, and the stored token is deleted. Everything already measured stays, per the published retention schedule. Moving from another tracking app is covered in switching apps.

Frequently asked questions

How do I connect the TikTok Events API to Shopify without code?

Install HonestTag, open the TikTok card on the Setup page and click Connect TikTok. After you approve HonestTag on TikTok, paste your pixel code, choose your advertiser and save. HonestTag then sends each eligible online store order to TikTok from its server. Nothing is added to your theme.

Do I need the TikTok sign-in, or is an access token enough?

A token generated in TikTok Events Manager is enough to send purchases. It is not authorized for TikTok's Reporting, so HonestTag cannot read your TikTok spend with it, and The Gap shows TikTok without a spend column. The Connect TikTok sign-in covers both.

Will TikTok count a purchase twice if Shopify's TikTok channel also sends Purchase?

Only if you turn on HonestTag's standard Purchase. By default HonestTag sends TikTok only its own HonestTag_ events, which do not add to your TikTok Purchase count. TikTok removes a duplicate only when both copies share the pixel, the event name and the event_id, and no browser pixel can send the event_id HonestTag uses. So that switch is off by default. HonestTag's own events have their own names and cannot collide with another tool's Purchase.

Can a TikTok campaign optimize on a HonestTag event directly?

Not directly. TikTok says custom events are for reporting and audiences and are not applicable for campaign optimization. Create a custom conversion from the HonestTag event in Events Manager, mapped to the Purchase standard event, and choose that custom conversion as the campaign's optimization goal.

Does HonestTag send refunds to TikTok?

No. HonestTag sends TikTok no refund or retraction event. The refund is recorded in the order's proof in the HonestTag app instead.

What does HonestTag read from TikTok?

With the TikTok sign-in and an advertiser chosen, it reads daily spend, clicks and impressions, and TikTok's own count and value of completed payments, for the advertiser and each campaign. It never changes a campaign, ad group, ad or budget.