> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.adoric.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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:

```html
<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:

```html
<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.