Elxis CMS Forum

Extensions => Modules => Topic started by: rentasite on September 18, 2009, 10:14:58

Title: Google Analytics module: Not working
Post by: rentasite on September 18, 2009, 10:14:58

Hi, has anyone installed the "Google Analytics" module?

http://www.elxis-downloads.com/com_downloads/miscellaneous/201.html

Well i did on my (Elxis 2009.0) site and it's not working. BLANK module in the front-end! I have insert the right "AnalyticsCode". You can see it not working in www.connection.gr  (right column) under the RSS module.

I know it's BETA but from the moment it's published in "Elxis Downloads Center" it should work.
Title: Re: Google Analytics module: Not working
Post by: ks-net on September 18, 2009, 15:05:40
Code: [Select]
<div class="moduletable">

<script type="text/javascript">
/* <![CDATA[ */
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 src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
<script type="text/javascript">
/* <![CDATA[ */
var pageTracker = _gat._getTracker("UA-3198956-1");
pageTracker._trackPageview();
/* ]]> */
</script>

<!-- il portale italiano di elxis cms  http://www.elxisitalia.it -->
</div>

first of all you have to see nothing at fronted
make a css suffix with display:none to hide module's white box

second
this position is not good( delay to load) for analytics
best position is just before </body>
make there a simple position with css display:none in order to not have those blank spaces

third and faster with no fixes or suffixes
 put the code from analytics in your tpl
just before </body>
Title: Re: Google Analytics module: Not working
Post by: rentasite on September 18, 2009, 15:39:36
third and faster with no fixes or suffixes
 put the code from analytics in your tpl
just before </body>

That's what im doing. Just wanted to test it

uninstalled