tiktok/gtm-template-pixel ? reverse-engineered prompt

Reverse engineered prompt

Build me a Google Tag Manager template for TikTok Pixel that helps a website send event data to TikTok.

I want it to work with the TikTok Pixel base code already installed, and then take GA4 style data layer events from GTM, convert the common events into the matching TikTok pixel events, and fire them correctly. It should also let me manually map events and override specific parameters when needed, since some sites will want custom setup.

Please make the template easy to import into GTM, with the template files, config, and code needed for the pixel tag to work cleanly. It should support the standard ecommerce and site events people usually send from GA4, and it should be straightforward to verify that events are being sent properly. If you need to check the latest TikTok setup details, look up the current docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab