Warning |
---|
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 sign up is viewed, a custom HTML GTM tag with a content like below is need to be triggered.
Code Block | ||
---|---|---|
| ||
<script type="text/javascript"> function rdSignup(){ var VL = new Visilabs(); VL.AddParameter("OM.exVisitorID","User ID"); VL.AddParameter("OM.b_loginsgnp","1"); VL.Collect(); VL.SuggestActions(); } rdSignup(); </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
<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();
}
...