Fandom

Community Central

Admin Forum:Adding custom Javascript module for Webtrends reporting

19,012pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This Forum has been archived

Forums: Admin Central Index Technical Help Adding custom Javascript module for Webtrends reporting
Central's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1363 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


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!




<script src="/scripts/webtrends.js" type="text/javascript"></script>



<script type="text/javascript">

//<![CDATA[

var _tag=new WebTrends();

_tag.dcsGetId();

//]]>

</script>

<script type="text/javascript">

//<![CDATA[

_tag.dcsCustom=function(){

// Add custom parameters here.

//_tag.DCSext.param_name=param_value;

}

_tag.dcsCollect();

//]]>

</script>

<noscript>

<img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="//rabbit.pch.gc.ca/dcsqmt6sq10000w84urdgl0g3_7p5e/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=www.acadien.wikia.com"/>

</noscript>


Also on Fandom

Random Wiki