Snapchat Pixel Tags
Use a Snapchat Pixel tag to tell Snapchat what visitors do on your site.
Snapchat uses these events to measure which ads led to conversions, to show
ads to the people most likely to convert, and to build retargeting audiences.
Nitoriq loads Snap’s library and initializes your pixel once per page.
Snap sends every event to every Snap pixel on the page. Use one Snap pixel per page, or each pixel counts the other’s events.
Before you start
- you have the pixel ID from Snap Events Manager. It looks like
1a2b3c4d-5e6f-4a1b-8c9d-0e1f2a3b4c5d - the container has triggers for the page views and actions you want to send
- variables exist for values such as order ID and order value
- if you also send conversions server-side, the Snapchat integration is set up in Nitoriq
Configure a Snapchat Pixel tag
Create the tag
Open the container, choose Tags, choose New Tag, then choose
Snapchat Pixel under Advertising.
Enter the pixel ID
Paste the pixel ID from Snap Events Manager, or enter a single variable that
holds it, such as {{snap_pixel_id}}.
Choose the event
New tags start on PAGE_VIEW. For conversions, pick a standard event such as
PURCHASE, ADD_CART, or SIGN_UP. Snap only accepts its own event names,
so there’s no free-form custom event. For your own events, use
CUSTOM_EVENT_1 to CUSTOM_EVENT_5.
Fill in parameters
Map each parameter to a fixed value or a variable:
Price: the value, as a number. Snap calls it price.Currency: pick it from the list, or choose+to use a variable if you sell in several currenciesItem IDs: a list variable, or comma-separated IDsNumber of Items: a whole number
Use Additional Parameters for anything else.
Turn on deduplication for conversions
For conversion events, Deduplication defaults to Match server-side. Set
Transaction ID to the same variable your Report Conversion tag uses, and
Conversion Type to the same conversion type.
On a PURCHASE, the transaction ID is also sent as Snap’s transaction_id.
Snap matches it with the order ID your server side sends for 30 days, in
addition to the event ID match. See
Browser pixels alongside the Conversions API.
Select triggers, save, and publish
Choose the triggers, save the tag, and publish the container.
Snapchat Pixel fields
Pixel ID
The Snap pixel to send to, or a single variable that holds it.
A value that isn't a valid pixel ID is refused on save; a variable is checked again when the tag fires.Event
A Snap standard event, in Snap's uppercase names.
Snap ignores event names it doesn't know.Parameters
The parameters Snap documents for the chosen event.
Values are sent with the types Snap expects; unusable values are left out and noted in the debug overlay.Deduplication
Sends a dedupe ID (client_dedup_id) so Snap counts a browser event and the same server-side event once.
Without it, a conversion sent by both the pixel and the Snapchat integration is counted twice.Fire once per page
Sends the event at most once per page load.
Useful for events whose trigger can match more than once.Allow Snap in a Content Security Policy
If your site sets a Content Security Policy, allow:
script-src:https://sc-static.netandhttps://tr.snapchat.comconnect-srcandimg-src:https://tr.snapchat.comandhttps://tr6.snapchat.com
Snap can change the hosts it sends to. If events stop after a Snap update, check the browser console for blocked requests.
Check that it works
Open your page with ?niq_debug=1 to see the debug overlay. Each Snap call
appears as snap · track PURCHASE along with the values sent.
In Snap Events Manager, open the pixel and check its recent events, or install the Snap Pixel Helper browser extension.
A Snapchat Pixel tag is set up when
- the tag type is
Snapchat Pixeland the pixel ID is valid - only one Snap pixel runs on each page
- page-view tags fire on DOM Ready, plus Route Change on single-page apps
- conversion tags have deduplication set to match your server-side integration
- the container is published
Was this page helpful?