Trade Visitors Registration
Trade Visitor Registration
// This function will get called each time a user performs an action on the registration form bindCTL(function(e) { /* The action is a colon (:) separated string We split the string next to obtain the action and it's data */ var n = e.data.split(':'); // First part of the action switch (n[0]) { // Our form was correctly loaded, the user has accessed it case 'ctl-loaded': // We use dataLayer.push to register an event in GTM, this is a milestone - Mohandas can advise. dataLayer.push({ event: 'Form loaded' }); break; // The user has filled the form and registered case 'ctl-registered': dataLayer.push({ event: 'User registered' }); break; // The user has updated his/ her existing registration case 'ctl-updated': dataLayer.push({ event: 'User updated' }); break; // The user has reached the confirmation page case 'ctl-confirmed': dataLayer.push({ event: 'User confirmed' }); break; // The user has been issued a badge case 'ctl-badge-issued': dataLayer.push({ VisitorID: n[1] }); var VisitorID = document.getElementById('VisitorID'); VisitorID.value = n[1]; default: break; } }); Trade Visitor Registration
Read more: Trade Visitors Registration
- Hits: 78642