You are reviewing MouseStats documentation: Take a look to the product!
< back

Tracking Script Modification

The tracking script is unique for each account. Also, it is a single and global code, so you should not include it multiple times in a single web page. It will handle all the services.


This is a sample code and the values will be different to make it connected to your account. You need to get your own customized code in your panel overview page.

<!--  MouseStats:Begin  -->
<script type="text/javascript">
vartype="text/javascript">var MouseStats_CommandsMouseStats_Commands=MouseStats_Commands?MouseStats_Commands:[]; =(function(){function MouseStats_Commandsb(){if(void ?0==document.getElementById("__mstrkscpt")){var MouseStats_Commandsa=document.createElement("script");a.type="text/javascript";a.id="__mstrkscpt";a.src=("https:"==document.location.protocol?"https://ssl":"http://www2")+".mousestats.com/js/a/b/abxxxxxxxxxxxxxxxxx.js?"+Math.floor((new :Date).getTime()/6E5);a.async=!0;(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}}window.attachEvent?window.attachEvent("onload",b):window.addEventListener("load", [];
(functionb,!1);"complete"===document.readyState&&b()})(); () {
if(document.getElementById('MouseStatsTrackingScript') == undefined) {
    var mousestats_script = document.createElement('script');
    mousestats_script.type = 'text/javascript';
    mousestats_script.id = 'MouseStatsTrackingScript';
    mousestats_script.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www2') + '.mousestats.com/js/a/b/abcdxxxxxxxxxxxxxxx.js?' + Math.floor(new Date().getTime()/600000);
    mousestats_script.async = true;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(mousestats_script);
} })();
</script>
<!--  MouseStats:End  -->