TheProphet
New Member
For visitors who didn't understand what the hack does:
It creates a google analytics section in your vb options page and when you enter analytics ID there, it automatically puts analytics code into your footer.
If you don't install this hack, you can do the same by copy/pasting google analytics code in your footer template.
Now with the latest google code.
old
new:
It creates a google analytics section in your vb options page and when you enter analytics ID there, it automatically puts analytics code into your footer.
If you don't install this hack, you can do the same by copy/pasting google analytics code in your footer template.
Now with the latest google code.
old
PHP:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("{$vbulletin->options['uacode']}");
pageTracker._initData();
pageTracker._trackPageview();
</script>
new:
PHP:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{$vbulletin->options['uacode']}");
pageTracker._trackPageview();
} catch(err) {}
</script>