Implementing the Full Barion Pixel
Implementing the Full Barion Pixel
Prerequisites
Implementing the Full Barion Pixel first and foremost requires an implementation of the Base Barion Pixel on your webshop. It is not necessary that the Base implementation be accepted by Barion however before the start of the implementation, just be aware that only approved events will be sent towards Barion. As the Full Barion Pixel, with the Consent Management implementation in particular, requires that you send user data for marketing purposes towards us, it requires a separate agreement and approval from Barion.
Where to start?
The preferred starting point for implementing the Full Barion Pixel is the Content View event, for cases where the content type is 'Product' in particular. This event is a very often used one, since it should be implemented in every product page at least. This event is also easy to implement, since it should be triggered every page load.
The first step is to create a JS object that contains the event parameters, as detailed in the API reference. See below for an example.
Content View properties in JS object |
const contentViewProperties = { 'contentType': 'Product', 'currency': 'HUF', 'id': 'item_42', 'name': "Hitchhikers' Guide to the Galaxy, hardcover, ISBN: 9780575115347", 'quantity': 10.0, 'unit': 'pcs.', 'unitPrice': 4990.0, 'brand': 'Gollancz', 'category': 'books|hardcover|scifi, books|hardcover|comedy', 'customerValue': 150.0, 'ean': '9780575115347', 'imageUrl': 'https://images-na.ssl-images-amazon.com/images/I/51MzUz8rQcL._SX305_BO1,204,203,200_.jpg', 'list': 'ProductPage', 'variant': 'hardcover' } |