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:



⚠️ 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.
Was this article helpful?
Cancel
Thank you!