installing Google Analytics in gk_Party

GK User
Sat Jul 23, 2011 12:32 pm
Hi,

i want to install the analytics code on gk_Party through the backend, but it doesnt work. Google says it is installed, but there is no data. The copied code always missed the <script> at the begin and the end.

var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18732387-9']); _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); })();

Is there another way to install it?

Thnx Basti
User avatar
Fresh Boarder

GK User
Sun Jul 24, 2011 8:00 pm
We've tested this feature many times and it works properly, you need to remember that first tracks are usually detected by google after few hours (sometimes even a day) so this could be the problem. If the code is detected by google it is added properly, anyway you can try to put this code to default.php file in proper place and delete google id in template settings (to avoid duplication).
User avatar
Platinum Boarder

GK User
Sun Jul 24, 2011 8:04 pm
I put the Code now in a php module, and it works fine. So, it doesnt matter ;-)

Thnx
User avatar
Fresh Boarder


cron