Alternative Event Tracking

Unlike option one, this implementation does not require any Javascript to be inserted onto your site, which makes it a bit less powerful, but can still meet your tracking needs if you have stricter privacy/security requirements.

Step 1

Snaps will provide you a custom pixel in a separate .txt file that you can paste directly into your HTML or tag manager. The code for the pixel will look like this:

<img src="https://snapsmedia.io/api/pixels/getPixel?code=rJHstDjkeG&eventName=viewProduct&eventProperties={"price":"1240","quoteId":"12345"}" />

🚧

NOTE: Pixel Tracking for Multiple Bots

If your pixel is tracking users for multiple bots (or the same bot on multiple platforms), you will a get a separate code for each bot or platform. You then must put both pixel codes into the snippet, in the following format.

/getPixel?code=MYCODE1,MYCODE2&eventName=

The query parameters are:
code = Your snaps pixel code
We'll generate one for you when you’re ready.

eventName = An event like completeOrder or addToCart

eventProperties = JSON-stringified metadata about your event (order price, etc.)
This is where you can add on anything you'd like to pass us that may be helpful for analytics or retargeting purposes.

See Standard events for a list of event types and event properties you can use.


What’s Next