Skip to content

Instantly share code, notes, and snippets.

@oalders
Created December 14, 2010 21:19
Show Gist options
  • Save oalders/741113 to your computer and use it in GitHub Desktop.
Save oalders/741113 to your computer and use it in GitHub Desktop.
<!-- replace "username" with your username -->
<!-- replace "my_default_page_name" (in the noscript section) with the fallback page name for your counters -->
<!-- begin wundercounter.com code http://www.wundercounter.com/?refID=username -->
<script type="text/javascript">
(function() {
var lang = ( typeof( navigator.browserLanguage ) == 'undefined' ) ? navigator.language : navigator.browserLanguage;
var referrer = ( document.referrer === '' ) ? parent.document.referrer : document.referrer;
var url = 'http://www.wundercounter.com/cgi-bin/stats/image.cgi?' +
'WUNVERSION=2.0' +
'&amp;user=username' +
'&amp;page=' + location.host + location.pathname.replace(/\/$/, "") +
'&amp;wS=' + screen.width +
'&amp;hS=' + screen.height +
'&amp;cS=' + screen.colorDepth +
'&amp;hisl=' + history.length +
'&amp;WUNL=' + lang +
'&amp;WUNC=' + navigator.cookieEnabled +
'&amp;WUNJ=' + navigator.javaEnabled() +
'&amp;WUNR=' + Math.random() +
'&amp;reF=' + referrer;
/* <![CDATA[ */
document.write('<img src="' + url + '" alt=" " width="1" height="1" />');
/* ]]> */
})();
</script>
<noscript><div><img src="http://www.wundercounter.com/cgi-bin/stats/image.cgi?WUNVERSION=2.0&amp;user=username&amp;page=my_default_page_name&amp;digits=0" width="1" height="1" alt=" " /></div>
</noscript>
<!-- end wundercounter.com code http://www.wundercounter.com/?refID=username -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment