Platforms
Case studies
Resources
Merchants
About us
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:
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 |
Below is the dedicated code for your website’s pixel tracking.
Analytics script –
<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.
Platforms
About us