SaTracking
PlatformsUPDATEDIntermediate

Install Snap Pixel and send one purchase event

Add the Snap Pixel base code sitewide, fire Purchase after confirmation, and validate with provider test tools.

Download for AI (.txt)

Measurement topic illustration · SaTracking

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.

html
<!-- 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:

js
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

EDITORIAL HISTORY

What changed

  1. v1.0
    Initial bilingual guide; provider setup and validation steps checked against official documentation.
  2. v1.1
    Revised both language versions with verified provider code and clearer data-layer-to-tag mapping; checked official setup and validation references.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.