Product Page View (GTM)

If you offer different product variations (such as size, color, material, etc) than your integration will slightly be different, please follow the guidelines on the Product Variant page

When a product page is viewed, a custom HTML GTM tag with a content like below is need to be triggered.

<script>
 	function rdProductView(){
    	var vl = new Visilabs();
    	vl.AddParameter("OM.pv","Product Code");
    	vl.AddParameter("OM.pn","Product Name");
    	vl.AddParameter("OM.inv" , "Number of items in stock");
    	vl.AddParameter("OM.ppr", "Product Price");
    	vl.AddParameter("OM.pv.1", "Product Brand");
    	vl.Collect();
    	vl.SuggestActions();
  	}
  	rdProductView();
</script>

Important Notes

- This tag needs to be triggered after the event named visilabs_loaded.

- Product attributes that are taken as parameters for this event needs to be available on dataLayer array.

-SuggestActions() function must be called only once on every page. Otherwise recommendation won't work properly.


Parent Topic: Events Trigger when Page Loads

Copyright 2020 Related Digital