TikTok Pixel Tracking Setup for BigCommerce
Quick answer: Use the free container builder wizard to select TikTok Pixel and your events, enter your tracking ID, then import the generated file into Google Tag Manager - no manual tag setup needed for any of the 23 events below.
TikTok Pixel base code and standard events, generated as Custom HTML. This platform does not have a native GTM tag type, so the container wraps its base code in a Custom HTML tag.
Build my TikTok Pixel container →
Events you can track
ecommerce events
- TikTok Pixel Page View event setup
- TikTok Pixel View Item event setup
- TikTok Pixel View Item List event setup
- TikTok Pixel Add to Cart event setup
- TikTok Pixel Remove from Cart event setup
- TikTok Pixel Begin Checkout event setup
- TikTok Pixel Add Shipping Info event setup
- TikTok Pixel Add Payment Info event setup
- TikTok Pixel Purchase event setup
- TikTok Pixel Refund event setup
- TikTok Pixel Add to Wishlist event setup
- TikTok Pixel Coupon Applied event setup
- TikTok Pixel Search event setup
- TikTok Pixel Login event setup
- TikTok Pixel Sign Up event setup
engagement events
- TikTok Pixel Form Submission event setup
- TikTok Pixel Lead event setup
- TikTok Pixel Phone Click event setup
- TikTok Pixel WhatsApp Click event setup
- TikTok Pixel Email Click event setup
- TikTok Pixel Outbound Click event setup
- TikTok Pixel Scroll event setup
- TikTok Pixel File Download event setup
By Humayun Kabir Naim β Last updated: 9 November 2026
Quick answer
To track a BigCommerce store in TikTok through Google Tag Manager, first decide who sends β because the BigCommerce TikTok channel integration already installs a Pixel and syncs your catalog by itself. If you keep the integration as your measured core, GTM adds only what it misses (refunds, coupon use, engagement events) and never re-sends the standard funnel. If you replace it, disconnect the integration first, then run TikTok from GTM: a base pixel tag on every page (it captures the ttclid click ID into the _ttp cookie), one event tag per TikTok event reading the same GA4-format data layer as your GA4 setup, a contents array built from the data layer items using the same product identifier your catalog sync carries, and the order ID as the Purchase tag's event_id β set in the tag's Event ID field, not in the parameters β so the Events API copy merges with the browser copy instead of counting twice.
What gets tracked
The translation table, with the column that matters on BigCommerce: who already sends it. The "integration sends it?" column reflects the standard ecommerce set a TikTok partner connection of this kind installs; because TikTok does not publish a per-event list for its BigCommerce connection, verify your own connection's events in Events Manager (the testing section shows how) before relying on any single row.
| Data layer event | TikTok event | Channel integration sends it? |
|---|---|---|
page_view | Pageview | Yes β the base pixel, on every page |
view_item | ViewContent | Yes |
view_item_list | ViewItemList | Partly β category coverage varies; verify in Test Events |
add_to_cart | AddToCart | Yes |
remove_from_cart | RemoveFromCart | Unverified β check your connection in Test Events |
begin_checkout | InitiateCheckout | Yes |
add_shipping_info | AddShippingInfo | Unverified β and the first casualty of the checkout-domain gap |
add_payment_info | AddPaymentInfo | Unverified β same checkout caveat |
purchase | Purchase | Yes β the connection's core conversion |
add_to_wishlist | AddToWishlist | Unverified β depends on the store's wishlist flow |
search | Search | Unverified β commonly a GTM-only event |
sign_up | CompleteRegistration | Unverified |
form_submission / lead forms | Lead | No β GTM custom build for B2B/lead channels |
| Order refunded | β (no page exists) | No β server-side only, no standard event |
One name change runs through this table. In May 2025 TikTok renamed its two most important events: CompletePayment became Purchase, and SubmitForm became Lead. The old names still work β TikTok converts them automatically in reporting β but deduplication keys on the event name, so a pixel sending Purchase and a server (or an older integration) sending CompletePayment for the same order are two different names and will not merge. Whatever sender you keep, every copy of an event must carry the same, current name.
Every money event carries the parameters TikTok matches and optimises on: a contents array β each item's content_id, content_type (product), quantity and price β plus value and currency. Purchase also carries the order ID as its event_id, which is not a reporting parameter but the deduplication key explained below.
Deep dives: Purchase, Add to Cart, Begin Checkout, View Item, Refund. Running GA4 too? Build the shared layer first: BigCommerce + GA4. See all options on the BigCommerce hub.
Before you start
- Choose the architecture β before touching any setting. Option A (keep the integration): the TikTok channel connection stays as the sender for the standard events and keeps its catalog sync; GTM is used only for what it misses. Option B (replace it): disconnect the channel's pixel connection, and GTM (browser) plus your Events API route (server) send everything, while the catalog is fed by a feed or an app instead. Both are legitimate. The illegitimate setup is the accidental third option β integration on, GTM sending the same standard events on top β because the two senders'
event_ids never match, so even TikTok's forgiving deduplication cannot save the overlap. - A TikTok pixel and its ID β the same one in every sender. In TikTok Ads Manager: Tools β Events β Web Events. If the channel integration created its own pixel and your GTM work points at another, Events Manager will look broken while both setups "work" β reconcile the pixel first. Dummy ID used in this guide's screenshots:
CEXAMPLE1234567890. - GTM installed through Script Manager, and the data layer working (Option B; Option A needs GTM only for its extra events). One web container, installed per channel β Script Manager belongs to each storefront, and the BigCommerce + GA4 hub covers the install. The data layer app pushes from that setup β GA4-schema events such as
purchasewith anecommerceobject β are the raw material for the TikTok tags. Mind decorated event names: if the app suffixes its pushes (for examplepurchase_stape), a trigger listening forpurchasenever fires. - Your catalog's ID convention, confirmed in TikTok, not assumed. The catalog the integration syncs identifies each product by one identifier β open the catalog in TikTok Ads Manager / Business Center and check whether
content_idthere is the BigCommerce product ID (for example88) or the SKU (for exampleSKU-123). Everycontentsarray you send must use that exact identifier, or TikTok receives healthy events it cannot match to products and catalog ads quietly stop learning. This is the same discipline as the BigCommerce + Meta hub, with TikTok's own identifier. - Do not confuse the TikTok Shop connectors with this connection. Third-party TikTok Shop integrations sync catalog, inventory and orders so you can sell inside TikTok Shop; they are not the ads pixel connection and send no measurement events for your campaigns. Having one installed neither helps nor harms this setup β just do not mistake its presence for tracking.
- Consent. The channel integration and your GTM tags must honour the same consent choice. A store where one sender respects a refusal and the other ignores it has inconsistent data and a compliance problem, not just a measurement problem.
Route 1: Use the free TagManagerBuilder container
Open the GTM Container Builder, choose BigCommerce, then TikTok Pixel, and tick the events you want. Enter your Pixel ID, download the JSON, then in GTM go to Admin β Import Container and choose Merge β Overwrite conflicting tags, triggers, and variables. This container is the Option B build (full standard set from GTM) β if you chose Option A, import it only for the extra events you actually need, and delete or pause the standard-event tags before publishing. If a GA4 container from this site is already in the workspace, import into the same workspace so TikTok shares the data layer variables. Test with the testing section below before publishing.
Route 2: Build it manually in GTM
Step 1 β Settle the channel integration
For Option A, leave the TikTok channel connection as it is and skip to Step 5 β your GTM work is only the events it misses. For Option B, disconnect the integration's pixel connection in the channel settings before the GTM tags go live, not after: every day of overlap is a day of doubled purchases that deduplication cannot repair. Decide separately what happens to the catalog: if the integration was your only catalog sync, replace it with a feed or catalog app before disconnecting, or your Dynamic Showcase and Collection ads lose their products the day the connection goes. Also sweep for the other quiet sender: a ttq base snippet pasted into Script Manager by an earlier setup.
Step 2 β The base pixel tag
Tags β New, choose the TikTok Pixel template from the Community Template Gallery (or a Custom HTML tag wrapping TikTok's base code β this site's container builds it as Custom HTML), enter your Pixel ID, and set the trigger to All Pages. This tag loads the pixel, sends Pageview, and β the part people undervalue β captures the ttclid click ID from TikTok ad clicks into the _ttp cookie from the very first landing page. That cookie is TikTok's fallback matching key for server events; a base pixel that only exists on product pages weakens every Events API event you send later. Under Option B this is now the only base pixel on the store.
Step 3 β Variables that translate the data layer into TikTok parameters
TikTok wants a contents array; the data layer holds ecommerce.items with item_id, price and quantity. Create in Variables β New:
- Data Layer Variables (Version 2) for
ecommerce.value,ecommerce.currencyandecommerce.transaction_id. - A Custom JavaScript Variable called
TikTok Contentsthat builds the array:
function() {
var items = {{DLV - ecommerce.items}} || [];
return items.map(function(item) {
return {
content_id: item.item_id,
content_type: 'product',
quantity: item.quantity || 1,
price: item.price
};
});
}
The mapping only works if item_id in the push is the identifier your TikTok catalog carries β BigCommerce product ID or SKU, whichever the sync uses (Before you start, item 4). If the push's item_id and the catalog disagree, fix the mapping here; do not leave two ID systems running across the catalog and the events.
Step 4 β One event tag per TikTok event
Create a tag of the TikTok Pixel template type (or the Custom HTML equivalent) for each standard event you are responsible for, with the TikTok event name, the parameters from Step 3, and a trigger on the matching data layer event (view_item β ViewContent, add_to_cart β AddToCart, begin_checkout β InitiateCheckout, purchase β Purchase). For Purchase, three fields carry the whole setup: value and currency from the push, contents from the Custom JS variable, and the Event ID field set to the transaction ID variable β in a raw ttq call that is the third argument, { event_id: '1042' }, not a property inside the parameters object. An event_id buried in parameters is ignored for deduplication, which is the single most common reason a careful-looking build still doubles:
ttq.track('Purchase', {
contents: [{ content_id: '88', content_type: 'product', quantity: 1, price: 129.99 }],
value: 129.99,
currency: 'USD'
}, { event_id: '1042' });
Step 5 β The events the integration misses (both options)
- Refund: refunds happen in the admin, after the session ends. Send it server-side from the order-refunded webhook (data layer apps with webhook support can forward refund events to a server container), referencing the original order ID. TikTok has no standard refund event in this setup β send a clearly named custom event server-side, or record refunds in your own reporting; never send a negative-value Purchase.
- Coupon applied: a custom event from the
apply_couponpush at checkout, with the coupon code as a parameter, if coupon campaigns matter. - Lead and form events for lead-gen channels: B2B or lead storefronts fire
Lead(the current name β not the pre-2025 SubmitForm) from the form push, with anevent_idgenerated once per submission so its server copy can merge.
Multi-storefront: reconcile per channel
The channel integration connects per storefront (each channel has its own connection state in Channel Manager), and GTM installs per channel through each storefront's Script Manager. A two-storefront store can therefore end up with the integration sending on both channels, GTM sending on one, and the catalog synced from only one β three facts nobody chose. Audit it as a table, one row per channel: which pixel, sent by whom, catalog synced from where β and make every row match your architecture decision. Channels separated by market often want a different pixel per channel; that is fine, as long as it is deliberate and the integration, the GTM install and the catalog all agree per channel.
Test it: GTM Preview, Pixel Helper and TikTok Test Events
- Click Preview in GTM and open the storefront in Tag Assistant. Shop like a customer: product page, add to cart, checkout, test order.
- In the Preview timeline, click
view_item,add_to_cart, thenpurchase. Under Option B, your TikTok tags sit under Tags Fired each time with the right parameters. Under Option A, confirm the opposite for the standard events: they do not fire from GTM. - Install the TikTok Pixel Helper extension and repeat the flow on the live (or previewed) site: it lists the pixel and the events on each page with their parameters β check the Purchase
contentscarry the samecontent_idyour catalog uses, and that only one pixel loads per page. - In TikTok Events Manager, open Test Events and repeat the flow. Events should arrive within seconds, each once. When a browser and a server copy of Purchase both arrive with the same
event_id, TikTok shows them merged/deduplicated rather than as two purchases. Two browser copies means a second browser sender (the integration is still on, or a stray Script Manager snippet) β remove it; deduplication will not rescue a same-key mismatch, and it never merges copies whoseevent_ids differ. - Check the confirmation gap and the checkout boundary: note which mid-checkout events you can actually see. If the checkout runs on its own domain outside the container's coverage,
add_shipping_infoandadd_payment_infogo missing whilepurchasesurvives through the confirmation page β record the gap rather than discovering it in reports. - Only when the funnel is clean end to end, click Submit in GTM to publish. For the first days, watch Events Manager's event counts against BigCommerce orders: a stable, explainable gap is attribution; a sudden 2Γ is a sender you forgot.
Events API and deduplication β TikTok's rules, exactly
The Events API sends the same events from a server, recovering what the browser loses to blockers, privacy settings and dropped connections. TikTok's deduplication is more forgiving than Meta's β it can even merge same-channel repeats β but it only works around one shared key:
The key is three parts: the same pixel ID, the same event name, and the same event_id, on every copy of the event. On this platform the ready-made event_id is the order ID: the GTM Purchase tag sends it (Step 4, in the Event ID field), and whichever server route you use β an Events API tag in server GTM fed by the purchase webhook β must carry event_id set to that same order ID. For non-purchase events, generate the ID once where the action happens and pass that single value down both paths; IDs generated independently per path never match.
The timing rules: copies that arrive within about 5 minutes of each other merge into one event, the later copy filling in parameters the first lacked. Copies that arrive later β up to 48 hours after the first β are deduplicated: counted once, with the first copy received being the one kept. The same rules apply to pixel-only and API-only repeats when the event_id matches. And the fallback: a server event that arrives without an event_id but with the shopper's _ttp cookie value gets an attempted browserβserver match β a safety net, not a design; events built on it match worse and merge less reliably than events carrying a proper shared ID.
What this means for the architecture: if you run Option A, do not add a server-side Events API tag for the standard events on top of whatever the integration already sends β you would be stacking senders whose IDs you do not control. If you run Option B, the webhook-fed server copy is the route that also closes the confirmation gap: the order-created webhook reaches the server container even when the shopper never lands on the confirmation page. Either way, verify in Test Events that each doubly-sent event shows as one event, deduplicated β not two events with similar names. And keep the names current and identical on both paths: Purchase with Purchase, Lead with Lead. The full server-side build lives in the Server-Side Tracking guide.
BigCommerce-specific troubleshooting
Every purchase counts twice in TikTok. The channel integration is still sending and GTM sends too β the accidental third architecture. Their event_ids never match (the integration's are internal; yours is the order ID), so deduplication cannot merge them. Disconnect one sender; the doubled history stays doubled, the fix applies from today.
Events arrive and look healthy, but catalog ads do not learn. The contents identifier disagrees with the catalog. Events built from the data layer's item_id may carry the SKU while the synced catalog carries the BigCommerce product ID (or the reverse). Open the catalog, read its actual identifier, and align the contents variable to it β TikTok never warns you about this mismatch; the events just never match a product.
Half the estate says CompletePayment, half says Purchase. A pre-rename integration or an older tag still sends the legacy name while the newer sender uses Purchase. Reporting converts both, so dashboards look calm β but deduplication keys on the name, so cross-channel copies never merge. Standardise on Purchase (and Lead, not SubmitForm) in every sender you control.
Mid-checkout events are missing; Purchase is fine. The checkout runs on its own domain outside the container's coverage β the standard BigCommerce gap. Either the checkout needs the container too, or you accept begin_checkout β purchase as your funnel and stop expecting add_shipping_info and add_payment_info.
Pixel Helper shows the pixel, but Events Manager shows nothing β or a different pixel's data. The integration created (or connected) a different pixel from the one your GTM tag carries, or you are looking at the wrong ad account's Events Manager. Reconcile the pixel ID across the channel connection, the GTM tag and Events Manager before debugging anything else β a pixel mismatch looks exactly like a tracking outage.
The second storefront sells but TikTok sees nothing from it. Script Manager and the channel connection are both per-channel; the second storefront has one or both missing, or points at the first channel's pixel. Run the per-channel audit from the storefront section and reconcile orders per channel for a week.
Next steps: the same data layer feeds BigCommerce + Meta and BigCommerce + Google Ads with no new pushes; Consent Mode v2 keeps the whole layer consent-aware.
Frequently asked questions
Should I keep BigCommerce's TikTok channel integration or replace it with GTM?
Either can be right; running both for the same events is always wrong. Keep the integration if its standard events and catalog sync are all you need. Replace it when you need events it does not send, your own deduplication keys, custom parameters, or one data layer feeding GA4, Meta, Google Ads and TikTok identically. What you cannot do is overlap first and decide later β the integration's event IDs are internal, your GTM tag's is the order ID, and copies with different keys never merge.
Does TikTok's deduplication fix it if the integration and GTM both send Purchase?
No. Deduplication merges copies that share the pixel ID, the event name and the event_id. The channel integration generates its own event IDs, which are not the order ID your GTM Purchase tag sends β so the two Purchases are strangers to each other and both count. TikTok's rules are forgiving about timing and even merge same-channel repeats, but only around a shared key. Remove one sender.
Which identifier should my contents array use β product ID or SKU?
Whichever one your TikTok catalog carries. The catalog synced by the channel integration (or your feed) is the source of truth: open it in TikTok's catalog tools and read the actual content_id values, then make the GTM contents variable emit exactly those β BigCommerce product ID (like 88) or SKU (like SKU-123). A mismatch never triggers an error; the events simply never match products, and catalog ads underperform for reasons nobody can see in Events Manager.
Why does the base pixel need to be on every page, including landing pages with no products?
Because of the click ID. When a shopper arrives from a TikTok ad, the base pixel captures the ttclid into the _ttp cookie on that first page. A server-side Events API event for that shopper later uses _ttp as its fallback matching key when no shared event_id is available. A base pixel installed only on product and checkout pages misses the landings that matter most β the ones the ads actually drove.
The integration already syncs my catalog. If I move events to GTM, do I lose it?
Only if you disconnect without replacing the sync. The catalog connection and the pixel connection are separable concerns: before choosing Option B, line up a feed or catalog app to keep the products flowing, or disconnect only the pixel side if your channel settings allow it. Events and catalog are two pipelines β plan both, or the ads lose their products the day the tracking improves.
What is the difference between the TikTok channel integration and TikTok Shop connectors?
They solve different problems that share a name. The channel integration is TikTok's own ads connection: it installs the pixel, syncs the catalog for catalog ad formats, and lets you create a limited set of campaigns from inside BigCommerce. TikTok Shop connectors (third-party apps) sync catalog, inventory and orders so you can sell products inside TikTok Shop itself. Only the first one is a measurement sender β and it is the one this hub's Option A/B decision is about.