Base Installation
Prerequisites
HandL JS library must be loaded on your page
You must have a TikTok Pixel ID from your TikTok Ads Manager
Step 1: Get Your TikTok Pixel ID
Log in to your TikTok Ads Manager
Navigate to Assets → Events
Create a new Pixel or select an existing one
Copy your Pixel ID (format: C5A9CTNGE0M9N03H4840 )
Step 2: Initialize TikTok Pixel
Add the following script to your HTML page before the HandL script tag:
Make sure to change your license key
Example:
Step 3: Verify Installation
After the page loads, the TikTok Pixel will automatically:
Load the TikTok Pixel script
Fire a PageView event
Initialize advanced matching (if enabled)
You can verify the installation by:
Opening browser DevTools (F12)
Going to the Network tab
Filtering for analytics.tiktok.com
You should see requests to TikTok's analytics endpoint