Read through the following section if you are encountering Web tracking code errors.
The following Web Tracking code for links does not work:
<script type='text/javascript'>
var customEventsOnLoad = window.onload;
window.onload = function()
{ customEventsOnLoad();
ewt.track({name:'page',type:'pagetype'});
ewt.track({name:'chapter',type:'pagetype'});
}
</script>
Resolution
Add Link
to ewt.track
Note: Case sensitivity is important in JavaScript, ensure that the resulting snippet reads as ewt.trackLink
.
The new code is displayed as follows:
<script type='text/javascript'>
var customEventsOnLoad = window.onload;
window.onload = function()
{ customEventsOnLoad();
ewt.trackLink({name:'page',type:'pagetype'});
ewt.trackLink({name:'chapter',type:'pagetype'});
}
</script>
Comments
0 comments
Article is closed for comments.