Skip to main content

Without grouped products

Description

If the online store does not contain group products, then on the product card pages you need to call the rrApi.view tracking code, and pass to it the ID of the product whose page the user is on. This ID must match the ID that is passed in the product database.

It should also be called when the quick view window is opened, if such functionality is available on the site.

<script type="text/javascript">
(window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
try{ rrApi.view(<product_id>); } catch(e) {}
})
</script>
ID региона

<stock_id> - region identifier, can be a string. Must match the region identifier passed in the product database.

Support for string identifiers

If the product identifiers in the product database have string identifiers, an object with the isProductIdString parameter must also be passed to the tracking code, an example is shown below.

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