Wednesday 31 August 2011

Webtrends Tracking

1. Meta Data.


<meta name="WT.z_mktmsite" content="Facebook">
<meta name="DCSext.pCC" content="Global">
<meta name="DCSext.pLL" content="en">
<meta name="DCSext.pSA" content="TestTab">
<meta name="DCSext.pPID" content="Test_en_Global_Facebook_TestTab">

2. Add script into the top of body.



<script type="text/javascript"> 


var _tag1 = new WebTrends();
_tag1.dcsid = "ddwe343434434"; 
_tag1.domain = "statse.webtrendslive.com"; 
_tag1.dcsGetId();


var _tag2 = new WebTrends();
_tag2.dcsid = "der34343434"; 
_tag2.domain = "ssdc.test.com"; 
_tag2.fpcdom = _tag1.fpcdom; 
_tag2.onsitedoms = _tag1.onsitedoms;
_tag2.dcsGetId();


</script>



3.  add a tag.


<a href="mailto:facebook@test.com" onClick="dcsMultiTrack('DCS.dcsuri', '/Plastics_en_Global_Facebook_Test-clickEmailFBSupport','DCSext.pPID','Test_en_Global_Facebook_Test-clickEmailFBSupport');">


4. add the webtrends script in the head (note: should be provided by the client or find it).

<script type="text/javascript" src="http://test.com/assets/js/TBv3.08.6.2webtrends.js"></script>

No comments:

Post a Comment