TikTok Pixel
Learn how to use TikTok Pixel with c15t.
On this page
Canary Feature
This feature is available in canary releases and may have breaking changes. Use with caution in production. Report issues on GitHub
TikTok Pixel is a popular tracking pixel for marketing purposes. By default c15t will load the script based on marketing
consent.
This script will also persist after consent is revoked. This is because the script has built-in functionality to opt into and out of tracking based on consent, which allows us to not need to load the script again when consent is revoked.
Implementation
Adding the script to c15t
import { configureConsentManager } from 'c15t';
import { tiktokPixel } from '@c15t/scripts/tiktok-pixel';
configureConsentManager({
// ...
scripts: [
tiktokPixel({
pixelId: '123456789012345',
}),
],
});
Types
TikTokPixelOptions
Property
Types
Script
Property
Types