Created
July 6, 2011 17:49
-
-
Save araddon/1067864 to your computer and use it in GitHub Desktop.
Webtrends.js Async Script init block
This file contains 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(); | |
}; | |
(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