- Published on
Set Up TikTok Events with GTM
Introduction
Introduction
Hey there, magic Geeks! Are you running TikTok ads? If so, it's crucial to measure your advertising efforts to identify which ads generate the most conversions. By analyzing this information, you can define your perfect audience and later show ads to them. Let's configure our TikTok event tracking together.
Prerequisites
To set up TikTok event tracking, you need:
- TikTok Ads Manager
- Your website with predefined events to track (e.g., Contact page)
- Google Tag Manager (GTM)
Ensure Google Tag Manager is implemented on your website. If unsure, consider taking a course like Julian's Tag Manager course available on YouTube.
Step-by-Step Setup
Step 1: Create a TikTok Pixel
Open TikTok Ads Manager:
- Go to
Assets
>Events
. - Select
Web Events
and clickManage
. - Follow the prompt to install a TikTok pixel.
- Go to
Create Pixel:
- Name your pixel (e.g., "Base Pixel").
- Choose
TikTok Pixel
and clickNext
.
Install Pixel:
- Choose between
Install code manually
orSet up via a partner platform
. - For manual installation, copy the pixel code.
- Choose between
Step 2: Set Up GTM with Base Pixel
- Google Tag Manager Setup:
- Open GTM and go to
Tags
. - Create a new tag:
- Tag Configuration: Choose
Custom HTML
, paste the copied pixel code. - Triggering: Select
All Pages
.
- Tag Configuration: Choose
- Name your tag (e.g., "TikTok Base Pixel") and save it.
- Open GTM and go to
Step 3: Create Event Triggers
Back to TikTok Event Manager:
- Complete initial pixel setup.
- Visit the documentation for event codes (if needed).
Configure Click Variables in GTM:
- Go to
Variables
, clickConfigure
. Enable all click-based variables.
- Go to
Define Triggers for Events:
- Create generic link trigger in
Triggers
(e.g., "All Links"). - Test clicks in
Preview Mode
to get actual link values. - Define triggers for specific actions (e.g., phone click, email click).
- Create generic link trigger in
Set Event Codes:
- Use GTM’s built-in templates to avoid manual coding.
- Go to
Templates
, addTikTok Pixel
. - Create event tags using the TikTok Pixel template:
- Paste your Pixel ID.
- Select the event to track (e.g., "Contact").
- Skip advanced configurations for now.
- Add triggers (phone and email clicks).
Step 4: Final Test and Publish
Testing:
- Use TikTok Pixel Helper for Chrome to verify events.
- Test events by clicking relevant links on your site.
- Check GTM’s Tag Assistant and TikTok Pixel Helper to ensure events are tracked.
Publish:
- Submit and publish changes in GTM.
Conclusion
You should now see data reflecting your events in TikTok's Event Manager. If events aren’t immediately visible, be patient, as it might take some time.
If you have successfully set up your TikTok event tracking, congratulations! Happy measuring.
Keywords
- TikTok Ads Manager
- Google Tag Manager (GTM)
- Event Tracking
- TikTok Pixel
- Tag Configuration
- Triggers
- TikTok Pixel Helper
FAQ
What is a TikTok Pixel?
A TikTok Pixel is a piece of code that tracks user interactions on your website and reports back to TikTok Ads Manager, allowing you to measure ad performance and track conversions.
How do I install a TikTok Pixel using Google Tag Manager?
You can manually install the TikTok Pixel code in Google Tag Manager or use the integration option available in GTM. Create a new tag in GTM, paste the pixel code, and set it to fire on all pages.
How can I track specific events on my website with TikTok Pixel?
After installing the base pixel, you define custom event triggers in GTM. For example, set up triggers for link clicks on phone numbers and email addresses, then configure these triggers to fire specific event tags in GTM.
Why is my TikTok event not showing up immediately in the Events Manager?
Event data can sometimes take a while to appear in the TikTok Events Manager. Make sure to check the setup, and be patient, as it may take some time for the data to reflect.
What tools can I use to test if my TikTok Pixel and events are working?
Use the TikTok Pixel Helper Chrome extension to test and verify if your pixel and configured events are firing correctly on your website. Also, use GTM’s Preview Mode to debug and test the implemented tags and triggers.