10389 Posts in 2200 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1303 Views |
-
Google Analytics Module installed successfully but all I get is waiting for data???

23 April 2010 at 2:32pm
Hi all,
I have installed the google analytics module from silversluke but all I get from the google analytics control panel is:
Waiting for Data
Analytics has been successfully installed and data is being gathered now. ( I have waited a week but all I get is the little time icon and this message)When I click on check status it shows me the code that I need to paste into the pages. Paste this code on your site:
<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("UA-8888888-8");
pageTracker._trackPageview();
} catch(err) {}</script>So I pasted the above into your Google Analytics tab back in the SS admin and clicked save.
Paste Google's code below to collect statistics for this site Analytics Tracking etc.I also notice that when I reload the page the above code turns into:
<script type='text/javascript'>
var pageTracker = _gat._getTracker("UA-3473533-7");
pageTracker._trackPageview();
</script>Finally here is what my code looks like on the actual live website pages, any google related code:
<script src='http://www.google-analytics.com/ga.js' type='text/javascript'></script>
</head>script type="text/javascript">//<![CDATA[
<script type='text/javascript'>var pageTracker = _gat._getTracker("UA-8888888-8");
pageTracker._trackPageview();
</script>//]]></script></body>
</html>Just wondering if someone might have some ideas on what I am doing wrong, or what is going wrong.
Desperate to get this going, any help would be great. I'm on SS 2.4 btw.
-
Re: Google Analytics Module installed successfully but all I get is waiting for data???

23 April 2010 at 5:17pm
Hi there. I've made some updates to googleanalytics and the trunk version should work with 2.4.
Please make sure that you are seeing the "var pageTracker = _gat._getTracker(...);" line appearing in the source code of your pages (on the front-end), and that google's 'ga.js' file is included.
Please update, and let me know if there are still issues.
Cheers,
- Luke -
Re: Google Analytics Module installed successfully but all I get is waiting for data???

12 May 2010 at 10:14am Last edited: 12 May 2010 10:14am
1) With allow_call_time_pass_reference disabled I get the warning
Warning: Call-time pass-by-reference has been deprecated in ...\googleanalytics\code\AnalyticsSetupDecorator.php on line 38
I assume I can savely remove the & in?if (preg_match($pattern, $script, &$matches)) {
2) On the /admin/reports/ -> "Google Analytics" the links "View Google Analytics" and "Setup Google Analytics" do not work as the JS referenced in the onclick event is not loaded (from googleanalytics/code/AnalyticsReport.php line 36 to 45).
Using both Silverstripe and GoogleAnalytics trunk
-
Re: Google Analytics Module installed successfully but all I get is waiting for data???

16 May 2010 at 12:07am
Hello,
Like xeraa the 2 javascript functions are not loaded in the admin section of google analytics module so I can't put my code to track my visitors.
Any help would be appreciated.
Thanks
-
Re: Google Analytics Module installed successfully but all I get is waiting for data???

21 May 2010 at 11:04pm
I've created two tickets for this:
1) http://open.silverstripe.org/ticket/5630
2) http://open.silverstripe.org/ticket/5631
| 1303 Views | ||
|
Page:
1
|
Go to Top |


