Articles on: Product Recommendations (Not for Shopify App merchants)

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:



⚠️ 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.

Updated on: 21/07/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!