Insert this HTML snippet into <body> tag inside your website replacing [ADVERTISER_ID], [PRODUCTFEED_ID], and [AUDIENCE_ID] with the values provided by Rontar.

<script>
    window.rnt=window.rnt||function(){(rnt.q=rnt.q||[]).push(arguments)};
    rnt('add_event', {advId: [ADVERTISER_ID]});
    //<!-- EVENTS START -->
    //<!-- EVENTS FINISH -->
</script>
<script async src='//uaadcodedsp.rontar.com/rontar_aud_async.js'></script>

Events

On different pages insert different events (insert after "EVENTS START" comment).

On Product page

rnt('add_audience', {audienceId: '[AUDIENCE_ID]', priceId: '[PRODUCTFEED_ID]', productId: 'PRODUCT_ID'});
rnt('add_product_event', {advId: '[ADVERTISER_ID]', priceId: '[PRODUCTFEED_ID]', productId: 'PRODUCT_ID'})

Replace PRODUCT_ID with a product identifier in the product feed.

On Main page

rnt('add_event', {advId: '[ADVERTISER_ID]', pageType:'home'});
rnt('add_audience', {audienceId: '[AUDIENCE_ID]'});

On Category page

rnt('add_category_event', {advId: '[ADVERTISER_ID]', priceId: '[PRODUCTFEED_ID]', categoryId: 'CATEGORY_ID', productIds: 'PRODUCT_IDS'});
rnt('add_audience', {audienceId: '[AUDIENCE_ID]'});

Replace CATEGORY_ID with a category identifier. Replace PRODUCT_IDS with products identifiers shown on this category page. Sample: '1,5,33,2', where 1, 5, 33 and 2 are products identifiers shown on this page.

When a product has been added to shopping cart

rnt('add_shopping_cart_event', {advId: '[ADVERTISER_ID]', priceId: '[PRODUCTFEED_ID]', productIds: 'PRODUCT_IDS'});

Replace PRODUCT_IDS with products identifiers added to cart. Sample: '1,5,33,2', where 1, 5, 33 and 2 are products identifiers added to cart.

On "Thank you for your order" page

rnt('add_order_event', {advId: '[ADVERTISER_ID]', priceId: '[PRODUCTFEED_ID]', productIds: 'PRODUCT_IDS'});

Replace PRODUCT_IDS with ordered products identifiers. Sample: '1,5,33,2', where 1, 5, 33 and 2 are ordered products identifiers.

On any other pages

rnt('add_audience', {audienceId: '[AUDIENCE_ID]'});
Did this answer your question?