How to Install TikTok Pixel via Google Tag Manager
If you’re not on Shopify or WooCommerce, or you want more granular control over exactly when and how TikTok Pixel events fire, Google Tag Manager (GTM) is the standard route.
Step 1: In TikTok Ads Manager, go to Assets > Events, create a new TikTok Pixel, and copy the base code (or note your Pixel ID for the GTM template approach).
Step 2: In GTM, create a new tag using the TikTok Pixel template (available in GTM’s Community Template Gallery, or add the base code as a Custom HTML tag if you prefer manual control).
Step 3: Set the trigger to All Pages for the TikTok Pixel base code, so it fires on every page load and captures the ttclid parameter reliably.
Step 4: Create separate tags for specific TikTok Pixel events (ViewContent, AddToCart, CompletePayment) triggered by the relevant page views or button clicks, referencing your Pixel ID in each.
Step 5: Use GTM’s Preview mode to test the full TikTok Pixel flow before publishing, confirming each tag fires at the right moment and the right data layer values are being passed through.
Step 6: Publish the container, then verify the TikTok Pixel is live using Pixel Helper and Test Events, exactly as with the platform-native installs above.
GTM is also the natural home for server-side GTM (sGTM), which is currently the most flexible way to run Events API alongside your TikTok Pixel with proper deduplication. If your site runs on a custom stack rather than Shopify or WooCommerce, sGTM gives you the most control over matching event IDs between the browser and server layers – which is the detail most TikTok Pixel setups get wrong. TikTok’s official Pixel documentation covers every parameter and event configuration option in full.