SMF Support > SMF 2.0.x Support
Google Analytics for SMF 2.0.2
SoSad:
I tried to manually input this code into index.template.php but It should an error. :O
------------------------------------------------------------------
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
-------------------------------------------------------------
I know there's a Google Analytics Integration mod but its latest support is only for SMF 2.0.1 and i have the version 2.0.2. And I prefer not to do the emulation thingy. Is there any way that I can solve this problem?
Xenocidius:
Umm ... why do you prefer not to do the 'emulation thingy'? All you have to do is click the Advanced tab in the Package Manager, replace '2.0.2' with '2.0.1' and click 'Apply'. It makes no change to the forum whatsoever, affects no one but you, and is only temporary. I strongly recommend you do this - changing templates directly can cause all sorts of errors.
Arantor:
Personally I'd suggest not using Google Analytics at all, I mean, you're happy with letting your user data be shared with Google for the purposes of tracking (and advertising), right?
ApplianceJunk:
This mod?
http://custom.simplemachines.org/mods/index.php?mod=2210
Seems I added it to my 2.0.2 forum without having to do the 'emulation thingy'.
Did you try it?
Arantor didn't you make that Google Analytics mod?
Arantor:
I did, way way back, yes. That was mostly to make my life easier in terms of offering support.
But that was also almost 3 years ago and in the intervening time I realised how Google is using that data and just giving you the edited, sanitised version as payment. You're effectively trading your users' privacy for some stats about them.
Navigation
[0] Message Index
[#] Next page
Go to full version