Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

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.

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

Code Block
languagejs
linenumberstrue
<script type="text/javascript">
function OnVisilabsLoaded(){
    	var VL = new Visilabs();
	VL.AddParameter("OM.tid","TransactionID"); 
  	VL.AddParameter("OM.exVisitorIDpp","User IDProduct Code1;Product Code2"); 
	VL.AddParameter("OM.pu","product Quantity 1;product Quantity 2"); 
	VL.AddParameter("OM.b_loginppr","Product Price1*Product Quantity 1;Product Price2*Product Quantity2");
	VL.AddParameter("OM.exVisitorID","User    ID");
	VL.Collect();
    	VL.SuggestActions();
}
</script>
Note
titleImportant 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.


- Do not forget to use a universaID/customerID as the userID which you also share with other parties such as your ESP. If you are using a GSM number or an email address instead of a userID please send that info as the userID. Make sure that you share the same ID with all other parties.

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


...

Parent Topic: Events that Trigger on Page Loads