Without grouped products

Description

If the website does not contain grouped products, then you need to use tracking code rrApi.view, and pass the product ID of a product on which page the user is located to it.
This ID must match ID, which is passed in the product database.

Besides, this tracker should be called on the quick view window, in case the website has this functionality.

🚧

Region ID (stock ID)

<stock_id> - Identifier of the stock to which products belong, string. Must match identifier of stock, which is passed in the product database.

Example of a code for integration without stocks

<script type="text/javascript">
    (window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
        try{ rrApi.view(<product_id>); } catch(e) {}
    })
</script>

Example of a code for integration with stocks

<script type="text/javascript">
    (window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
        try{ rrApi.view(<product_id>,{"stockId": "<stock_id>"}); } catch(e) {}
    })
</script>