FAQs - Website Tracking Troubleshooting
1 - Why is a GUID not being generated when the page is loaded?
Ensure that the <script>-tag is at the bottom of the page, right before the closing </body> tag. Lasso website tracking script must be called after the form is loaded rather than before.
2 - Why is the form not posting tracking data to Lasso?
Ensure the “guid” and GUID and "domainAccountId" are included on the form as hidden fields.
Example:
<input type="hidden" name="domainAccountId" value="LAS-123456-01" />
<input type="hidden" name="guid" value="" />
3 - How do I verify that a form is posting tracking data to Lasso?
- Right-click on a field in the form, e.g. Last Name
- Select Inspect element to bring up the Elements panel
- The input tag for the field you clicked on will be highlighted. Look up from there and find the enclosing <form…> element
- Inside the <form…> element, there will be an attribute called id which, if correct, will be set to the name of the form, e.g. contact_form.
- Click on the Console
- Type forms[0] into the console.
It will output a fragment of HTML that should match the form name, e.g. contact_form.
4 - Can data be tracked for a registration page that contains two forms (e.g. Contact Us and Newsletter)?
Yes. Add the highlighted code to the standard Lasso javascript as below:
<script type="text/javascript">
(function(i) {var u =navigator.userAgent;
var e=/*@cc_on!@*/false; var st = setTimeout;if(/webkit/i.test(u)){st(function(){var dr=document.readyState;
if(dr=="loaded"||dr=="complete"){i()}else{st(arguments.callee,10);}},10);}
else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){
document.addEventListener("DOMContentLoaded",i,false); } else if(e){ (
function(){var t=document.createElement("doc:rdy");try{t.doScroll("left");
i();t=null;}catch(e){st(arguments.callee,0);}})();}else{window.onload=i;}})
function() {document.forms[0].guid.value = LassoCRM.tracker.readCookie("ut");
document.forms[1].guid.value = LassoCRM.tracker.readCookie("ut");
});
</script>
5 - Do tracking scripts work in an iframe?
Yes, as long as the guid form element (document.forms[0].guid.value) is inside the iframe rather than outside.
6 - Is Lasso tracking script asynchronous? No.
Comments
0 comments
Please sign in to leave a comment.