Before you start
Place the Snap base once, send PURCHASE with the real value and transaction ID, and prove that a receipt reload does not duplicate it.
1. Add the Snap Pixel base
This is Snap's browser loader pattern. Replace the UUID with the Pixel ID from your Ads Manager account. Install the base only once on eligible pages. Copy the full personalized snippet from Ads Manager for a live setup.
<!-- Snap Pixel base example; replace the ID with your account Pixel ID -->
<script>
(function(e,t,n){
if(e.snaptr)return;
var a=e.snaptr=function(){
a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)
};
a.queue=[];
var s='script',r=t.createElement(s);
r.async=!0;
r.src=n;
var u=t.getElementsByTagName(s)[0];
u.parentNode.insertBefore(r,u);
})(window,document,'https://sc-static.net/scevent.min.js');
snaptr('init','xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
snaptr('track','PAGE_VIEW');
</script>The placeholder is not an active Pixel ID. Avoid adding another base via GTM if a plugin already loads it. See Snap's website pixel setup.
2. Fire a purchase after confirmation
Use the event on the completed order state, after payment succeeds. Replace the sample amount, currency, and order ID with values from the transaction:
snaptr('track','PURCHASE',{
price: 79.99,
currency: 'USD',
transaction_id: 'ORDER_ID_EXAMPLE'
});In GTM, create a Snap event tag and map the confirmed values. A generic data-layer message reaches Snap only if a configured tag forwards it.
3. Verify the test
Use Snap Pixel Helper and Test Events in Ads Manager. Check the Pixel ID and confirm the purchase appears once. Refreshing the receipt or retrying a failed payment should not create another Purchase.
Load the Pixel only when consent rules allow it. A helper verifies browser behavior, not provider reporting. Use the dashboard to inspect browser evidence, then check event diagnostics in Snapchat Ads Manager.
Official references
- Install the Snap Pixel on a website Checked November 10, 2026
- Snap Pixel Purchase event example Checked November 10, 2026
- Snap Pixel with Google Tag Manager Checked November 10, 2026
- Snap Pixel overview Checked November 10, 2026
What changed
- v1.0Initial bilingual guide; provider setup and validation steps checked against official documentation.
- v1.1Revised both language versions with verified provider code and clearer data-layer-to-tag mapping; checked official setup and validation references.