When a search result page is viewed, a custom HTML GTM tag with a content like below is need to be triggered.
Code Block |
---|
<script type="text/javascript">
function rdSearch(){
var VL = new Visilabs();
VL.AddParameter("OM.OSS","Search Keyword");
VL.AddParameter("OM.OSSR","Number of search results");
VL.Collect();
VL.SuggestActions();
}
rdSearch();
</script> |
Note | ||
---|---|---|
| ||
- 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