If you don't have a specific welcome page after login on your site, don't use this method. Use this one instead: Successful Login
When welcome page after login is viewed, a custom HTML GTM tag with a content like below is need to be triggered.
<script type="text/javascript"> function OnVisilabsLoaded(){ var VL = new Visilabs(); VL.AddParameter("OM.exVisitorID","User ID"); VL.AddParameter("OM.b_login","1"); VL.Collect(); VL.SuggestActions(); } </script>
- 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.
Parent Topic: Events Trigger when Page Loads
<script type=
"text/javascript"
>
function
OnVisilabsLoaded(){
var
VL =
new
Visilabs();
VL.AddParameter(
"OM.exVisitorID"
,
"User ID"
);
VL.AddParameter(
"OM.b_sgnp"
,
"1"
);
VL.Collect();
VL.SuggestActions();
}
</script>