Snapchat Pixel
Last updated May 10, 2026
Snapchat Pixel is Snapchat's website conversion tracking and audience-building tool. The snapchatPixel() helper seeds the snaptr queue, initializes your pixel, and by default tracks a PAGE_VIEW event as soon as marketing consent is available.
Integrate with c15t
How c15t loads it
- Category:
marketing(Ads & Pixels) - Loads when: marketing consent is granted
- On revocation: unloaded - c15t removes the script from the DOM, so app code should guard
snaptr(...)calls until consent is granted again.
You can pass extra init payload and disable the default page-view event when you need finer control:
Tracking events in your app
c15t gates the Snapchat Pixel script from loading until marketing consent is granted. Your application code that calls Snapchat's runtime API (window.snaptr(...)) is not automatically gated - window.snaptr does not exist until the script is loaded, so unguarded calls before consent throw.
Use snapchatPixelEvent() for typed standard and custom event tracking. Guard
event calls by checking consent state. From React:
From plain JavaScript: