Skip to content

tiktok/gtm-template-pixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

TikTok Pixel Template

About TikTok Pixel

TikTok Pixel is a piece of javascript code that you can place on your website that allows you to share website events with TikTok. The Pixel can be used with any TikTok for Business tools to measure traffic on your website, measure ad campaign performance, optimize your campaigns and find new customers.

About TikTok Pixel x GTM Integration

You can use Google Tag Manger (GTM) to manage TikTok Pixel code installation and use this template to help configure pixel events to trigger on your website events. Learn more

  • You need to first install the TikTok Base Code before using this template. See Base Code and Template Installation.
  • This template parses Google Analytics 4 (GA4) events received by GTM web container, converts them to TikTok events and fires the Pixel events. The template also allows you to manually configure events and parameters to send to TikTok.
    • If you use TikTok Event Builder (Recommended) to configure Pixel events firing, then you don't need to use this template. Learn more about Event Builder.

Base Code and Template Installation

(Recommended) Install using Events Manager interactive setup flow

We recommend setting up Pixel x GTM Integration using TikTok Events Manager's interactive setup flow. The interactive flow guides you in configuring the integration and automatically installs this template and also the Pixel Base Code tag in a few clicks.

Install manually

  1. Install Pixel Base Code tag
  • Create a Custom HTML tag in your GTM Web container.

  • Copy the Pixel Base Code from TikTok Events Manager and paste it in the HTML field, and set the trigger to All Pages.

    image

  1. Install TikTok Pixel Template tag
  • You can find this template in GTM Template Gallery and add it into your GTM Web container workspace.

    image

Set up TikTok Events

(Recommended) Using TikTok Event Builder

For TikTok Pixel x GTM Integration, we recommend setting up events using TikTok Event Builder. Learn more about Event Builder.

  • You don't need to install this template if you uses Event Builder.

Using GTM data layer or manually configure events

Use this template if you plan to use GTM data layer or want to manually configure events

Verify Pixel x GTM Integration

See Verify TikTok Pixel Setup section in this developer document.
If you have any feature requests or issues, please file a request in GitHub here.

Change Logs

  • V0.1.14
    • Initial Release
  • V0.2.01
    • Support parsing data layer GA4 recommended events

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published