Viewed products tracking
This guide explains how to set up "Recently viewed" and "Bought together" recommendation types.
Overview
Having "Recently viewed" and "Bought together" recommendation campaigns on Adoric requires you to send information on specific products (where the user is located on).
Implementation
Product ID can be sent by using an event with a 'pageview' command. Make sure you are specifying the event type and its products IDs:
<script>
adoric.trigger('pageview', {
type: 'product',
ids: '1000263'
});
</script>
Examples
The following command sends an event to Adoric indicating that the page includes one product with ID 1000263:
<script>
adoric.trigger('pageview', {
type: 'product',
ids: '1000263'
});
</script>
The following command sends an event to Adoric indicating that the page includes 5 different products:
undefined
We recommend to implement this event into each product page, before <body> tag.
Updated on: 25/06/2024
Thank you!