SaTracking
PlatformsNEWIntermediate

Keep TikTok Pixel content IDs aligned with your catalog

Choose an ID convention, map product events, and diagnose catalog mismatches without exposing customer data.

Download for AI (.txt)

Measurement topic illustration · SaTracking

Audience, prerequisites, and outcome

Match the catalog field to content_ids and content_type, test variant and parent cases, and trace mismatches through Events Manager diagnostics. You need a TikTok catalog, web data source, and the product ID field used by your commerce system. The outcome is one documented identifier convention that lets the event content ID be compared with catalog items.

1. Identify the catalog's product identifier

Check the catalog feed or product source and find the identifier TikTok expects for the item. Do not assume the storefront SKU, variant ID, group ID, and internal database key are interchangeable. TikTok's parameter guidance says content_ids are product/content identifiers; the content_type should fit the ID type (for example, product versus product_group). Its catalog match-rate guidance says the event Content ID should be present and match the catalog format.

Expected result: the team records the exact feed field, example format, and any variant/group rule.

2. Map the same identifier into item events

For each relevant product event, use the identifier of the item actually viewed, added, or purchased. For a direct Pixel call after the item is rendered:

js
ttq.track('ViewContent', {
  content_type: 'product',
  content_ids: ['SKU_123']
});

SKU_123 is a safe sample value, not a real catalog item. Replace it with the exact product ID from the current product object. If your feed identifies groups rather than individual variants, follow the feed schema and set content_type accordingly. Don't send a generic site ID or user ID as a product content ID.

Expected result: one controlled event contains the same identifier value and type as the corresponding item in the catalog.

3. Map the value through GTM, not by guessing

In GTM, use a data-layer variable sourced from the product object and map it to TikTok's content_ids field in the TikTok Pixel tag. Test variant and parent-product cases separately. Avoid hard-coding one SKU into a tag that fires across every product page. Use the TikTok event-tag setup guide for tag/template steps.

A generic data-layer message can expose the current product ID to GTM:

js
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: 'product_detail_viewed', product_id: 'SKU_123' });

This is not a TikTok event. A configured GTM TikTok tag must listen for product_detail_viewed and map product_id to content_ids. Direct code instead calls ttq.track() after the Pixel base initializes. Do not send both routes for the same event unless you have deliberately controlled duplicates.

4. Compare event IDs with catalog diagnostics

Use GTM Preview or browser tools to inspect the ID actually resolved for each product. TikTok Pixel Helper can expose event parameters; Events Manager Diagnostics may report missing content IDs. TikTok's catalog match-rate views can help assess event-to-catalog matching, but a single successful browser event does not prove the feed is fully matched. Compare exact case, whitespace, prefixes, variant rules, and whether the current item exists in the correct catalog. Check TikTok's catalog match-rate explanation.

Fixes and privacy

If IDs mismatch, align the feed or mapping deliberately; avoid lossy string cleanup unless the feed contract requires it. If only some variants fail, trace the selected variant object and feed variant ID. If the value is stale, clear/reset state between route changes. Keep emails, phone numbers, account IDs, and personal data out of content_ids; it is intended for content/product identifiers. Respect consent before Pixel loads and minimize product metadata to what your use case requires.

Official references

EDITORIAL HISTORY

What changed

  1. v1.0.0
    New bilingual guide drafted from current official TikTok sources; editorial review required before publication.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.