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: ['[product_ID-1]', '[product_ID-2]', '[product_ID-N]']
});
</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:

<script>
adoric.trigger('pageview', {
type: 'product',
ids: ['1000263', '1001810', '1002022', '1002721', '1003197']
});
</script>

⚠️ The ID that you send via event needs to be the same as the ID in your product catalog (the same one you shared with Adoric).

💡 Adoric will store the last 32 product IDs that you sent by event

We recommend to implement this event into each product page, before <body> tag.