Impression and View Events

Recording a Page or Product View

This event is a structured event well suited to track engagements with "products" or individual items on your site.

// Wait for page load event
window.addEventListener('load', function(e) {

 bttnio('reportProductView', {
   categories: ['Technology', 'Mobile Phones', 'Samsung', 'Galaxy'] // see Subscriber Categorizing



Button's campaign targeting capabilities are best in class, giving you the power to "bucket" your Users based on their behavior on your website. To do this you can explicitly call the reportProductView action, along with a categories array. This will apply interest targeting capabilities to your subscribers.

Multiple category values are interpreted as a hierarchy, assigning several category interest groupings to the User. In the above example, the User is now eligible for any engagement campaigns targeting an audience interested in any of the following groups:

Technology > Mobile Phones
Technology > Mobile Phones > Samsung
Technology > Mobile Phones > Samsung > Galaxy
You can cross-reference this when setting up your campaigns in the Button SMS Dashboard.