ABFinal

Tracking

Snap Pixel and Conversion Tracking for Tests

If you advertise on Snapchat, the Snap Pixel is how purchases on your site get counted. Bad tracking makes every test result wrong in ways you can't see, so it's worth getting right.

Why tracking comes before testing

An ad A/B test compares conversions per version. If the pixel misses 20% of purchases evenly across both versions, the comparison still works, though it's noisier. If it misses purchases unevenly, for example because one landing page loads a script that delays the pixel, the comparison is biased and nothing in the ad dashboard will tell you.

What the pixel records

The Snap Pixel sends events when visitors do things on your site. Standard e-commerce events include viewing a page, viewing a product, adding to cart, starting checkout and purchasing, with details such as value and currency. Snapchat uses these for reporting and for optimizing campaigns toward the events you choose.

Setting it up

  1. Create a pixel in Snapchat's Ads Manager.
  2. Install it with one method only: the official Shopify sales channel app, a tag manager or manual code.
  3. Map events to your store's actions: product view, add to cart, checkout start, purchase.
  4. Pass purchase value and currency so you can judge return on ad spend.
  5. Consider adding the Conversions API with event deduplication.

Checking it works

  • Use Snapchat's pixel testing tools or a browser extension to watch events fire as you browse.
  • Place a test order and confirm exactly one purchase event arrives, with the correct value.
  • Compare a week of pixel purchases with your store's orders from Snapchat traffic. Look for a stable ratio, not a perfect match.
  • Re-check after theme changes, checkout changes or new apps.

Using the data in tests

When you compare two Snapchat ad variants, enter reach or swipe-ups as visitors and purchases as conversions in the significance calculator. Remember that each version's numbers depend on the same pixel, so a tracking fault affects the whole test.

ABFinal isn't affiliated with Snap Inc. Check Snap's business help pages for current setup steps, since interface names change.

Common questions

What is the Snap Pixel?

It's a piece of JavaScript from Snap that you add to your website. It records actions such as page views, add-to-carts and purchases and sends them to Snapchat's ad platform, which uses them to report conversions and optimize delivery.

How do I add the Snap Pixel to Shopify?

The usual route is Snapchat's official sales channel app for Shopify, which installs the pixel and sends standard e-commerce events for you. You can also add the code manually or through a tag manager, but avoid doing both, or purchases may be counted twice.

Do I need the Conversions API as well?

It's a good idea. Browser-based pixels miss some events because of ad blockers, browser privacy features and people leaving before the page finishes loading. Snap's Conversions API sends events from your server, and using both with deduplication gives a more complete count.

Why don't Snap's purchase numbers match my store's orders?

Some difference is normal: attribution windows, view-through conversions, missed browser events and time zones all play a part. A large or growing gap usually points to a setup problem such as duplicate events or a broken checkout tag.