To capture the first party cookie as another piece of data associated to the caller, you need to add the following code to the standard Delacon javascript.
var extTrkStr=(function(name)
{ var value = “; ” + document.cookie; var parts = value.split(“; ” + name + “=”); if (parts.length == 2) return parts.pop().split(“;”).shift();else return “”; }
(“foo”));
In this code “foo” is the name of the cookie – so you should change the name to the first party cookie that you want to track.
Below is an example when the extra tracking function is added to the standard tracking code:
<script src="//vxml4.plavxml.com/sited/ref/ctrk/MID-CID" async>
var extTrkStr=(function(name)
{ var value = “; ” + document.cookie; var parts = value.split(“; ” + name + “=”); if (parts.length == 2) return parts.pop().split(“;”).shift();else return “”; }
(“foo”));
</script>
Comments
0 comments
Please sign in to leave a comment.