Created
September 15, 2011 17:03
-
-
Save araddon/1219820 to your computer and use it in GitHub Desktop.
Dual Track Webtrends Init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| // this function is called by webtrends.js after it has loaded, the track, init method are chained | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| var dcs2=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8}).track(); | |
| }; | |
| (function() { | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = 'http://s.webtrends.com/js/webtrends.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); | |
| }()); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are adding a plugin, you need to add that into the "var dcs..." line as well, correct?
For example, to add the Facebook plugin, you'd change:
to instead read: