Advertising integration
TikTok Pixel on Shopify, made compliant
TikTok's conversion-tracking pixel for TikTok Ads — increasingly common for Shopify stores targeting Gen Z.
Why consent applies to TikTok Pixel
TikTok Pixel sets cross-site advertising identifiers — same regulatory category as Meta Pixel under GDPR (consent required) and CCPA (sharing, not service-provider). TikTok's compliance posture has tightened since 2024 after multiple EU enforcement actions; the pixel must not fire before consent.
Cookies / scripts TikTok Pixel sets
_ttpttwid (set by tiktok.com)
Step-by-step compliance setup
- 1
Block the TikTok pixel script until marketing consent
Pixel loads via `<script src="https://analytics.tiktok.com/i18n/pixel/events.js">`. Block this script until the visitor accepts the marketing category — same as Meta Pixel.
- 2
Send consent signals via the TikTok Pixel API
TikTok introduced a Consent Mode-style API in late 2024. Call `ttq.consent('grant')` on accept and `ttq.consent('revoke')` on decline so events are gated server-side.
- 3
Stop pixel firing for CCPA opt-outs
Like Meta, TikTok is not a service provider under CPRA — they use received data for their own ad-targeting models. CCPA opt-out must stop the pixel client-side and stop any server-side Events API calls.
How Consentico handles TikTok Pixel
Consentico catches TikTok Pixel's script load alongside Meta Pixel and Google Ads. Merchants who want a Gen-Z-heavy banner UX can also enable the 'minimal banner' variant which has been A/B-tested to convert better with younger audiences.
- Default-deny before any tag fires
- Three-layer script blocking (createElement + MutationObserver + content-type)
- Audit-ready consent log
Related concepts
- Google Consent Mode v2Google's framework for sending consent signals to GA4 and Google Ads. Mandatory for EU/EEA traffic since March 2024.
- Do Not Sell or ShareRequired CCPA/CPRA opt-out link visible on every page of a California-targeting site. Renamed from 'Do Not Sell' in 2023.
- CCPACalifornia's privacy law, expanded in 2023 by the CPRA. Requires a 'Do Not Sell or Share' link and honouring of GPC for California residents.
Related integrations
Block TikTok Pixel until consent — in five minutes.
Free for stores under 5,000 banner views per month. No code, no theme edits.