Cart Page View (GTM)

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

There are 2 methods to send Cart Page View event to RMC:

  1. Send all cart data in one time.

  2. Only send data of last item added or removed.

We recommend you to use method 1. Because it allows you use our tool much more effective.

If you are using method 2 we don't get Cart Page view data for this method. Use this event instead: Cart Update

You must send all cart content every time you execute the tag.

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

<script type="text/javascript">
	function rdCartView(){
    	var VL = new Visilabs();
    	VL.AddParameter("OM.pbid","Basket ID");
    	VL.AddParameter("OM.pb","Product Code1;Product Code2");
    	VL.AddParameter("OM.pu" ,"Product Quantity1;Product Quantity2")
    	VL.AddParameter("OM.ppr" ,"Product Price1*Product Quantity1;Product Price2*Product Quantity2");
    	VL.Collect();
    	VL.SuggestActions();
	}
	rdCartView();
</script>

As demonstrated in javascript code when there are multiple products in shopping cart product codes, quantities and prices must be seperated with ";".

Important Notes

- Do not use thousands separator when sending numbers. Wrong: 123.456,78 Correct: 123456,78

- You must pass the cart total value to OM.ppr parameter which is the number of items purchased multiplied by the price of a single item.

-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