Admin Forum:Adding custom Javascript module for Webtrends reporting

Forums: Admin Central Index → Technical Help → Adding custom Javascript module for Webtrends reporting Wikia's forums are a place for the community to help other members. To contact staff directly or to report bugs, please use Special:Contact.

Hello,

I am looking to track certain Wiki pages under the WebTrends performance measurement framework instead of Quantcast.

To achieve this, I have custom JavaScript that I would like to apply to each page. I have added my JS code to the Common.js, this works as expected. However, in order to actually retrieve statistics on each specific page, I need to add the following tag to its HTML source. I would like to know how to add this tag to my wiki pages for reporting purposes. Kindly advise.

Thanks!





//<![CDATA[

var _tag=new WebTrends;

_tag.dcsGetId;

//]]>



//<![CDATA[

_tag.dcsCustom=function{

// Add custom parameters here.

//_tag.DCSext.param_name=param_value;

}

_tag.dcsCollect;

//]]>

