<img alt="" src="https://secure.gift2pair.com/211594.png" style="display:none;">
Download free guide | Navigating customer acquisition challenges in 2024 🛍

1. Overview of pixel tracking

The purpose of this guide is to walk you through the correct way to implement the Preezie Analytics Pixel code on your website. To accomplish that there are two necessary steps to take:

  • Plug in the initialisation code
  • Generate the properly formatted transaction tracking code

Field definitions:

Property

Type

Description

productId

String

The unique identifier of the product. Must be equal to the id sent to preezie via the import API

productName

String

Name of the purchased product

quantity

Integer

Quantity of the purchased product

price

Decimal

Single item price

 

2. Neto

Below is the dedicated code for your website’s pixel tracking.

Analytics script – 

  1. In the menu on the left “Settings & tools”, select “All settings & tools”.
  2. Scroll down to Analytics & 3rd Party Scripts and select “Custom Scripts”.
  3. Create a new script by selecting “Add New” in to top right corner.
  4. Add the name “Preezie-Pixel” in the first box, make sure it is set to active.
  5. In the “Scripts” section further down, you will need to selectPurchase Confirmation (Thank You Page)”.
  6. Paste the below code in the Script section. Replacing YOUR_PREEZIE_ID with your preezie ID
<script>
   !function (e, t, n, p, r, s) { e.prz || ((p = e.prz = function () { p.process ? p.process.apply(p, arguments) : p.queue.push(arguments) }).queue = [], p.t = +new Date, (r = t.createElement(n)).async = 1, r.src = "https://preeziecdn.azureedge.net/production/prz_pixel.min.js?t=" + 864e5 * Math.ceil(new Date / 864e5), (s = t.getElementsByTagName(n)[0]).parentNode.insertBefore(r, s)) }(window, document, "script"), prz("init", "YOUR_PREEZIE_ID");
</script>
<script>
   prz("event", "transaction", '{"products": [[%show_order id:'[@order_id@]'%][%param *body%]{"productId": "[@SKU@]", "productName":"[@model@]", "quantity":"[@qty@]", "price":"[%format type:'number' dp:'2'%][@price@][%/format%]"},[%/param%][%/show_order%] ]}');
</script>

Once the code has be implemented there must be a test transaction made through the Preezie widget to check the Preezie Dashboard is reading transactions from the test. Please provide a date and $ value of transaction made.