Google Analytics - Free Statistics

antic

Perch
Found this on another forum, thanks go to the original poster.

Google Analytics is now live - free stats by google and their Urchin subsidiary, just a create a free account or if you already use gmail then it takes a few minutes to sign up, just add your domain and then it gives you JavaScript code that you paste in the page and off you go.

http://www.google.com/analytics
 
Having a play with this but although the code is where it is supposed to be (and you can see it when you view source) google is still unable to confirm the code?

Has anyone actually managed to use it?
 
Tried it on one of my sites, same issue as Greggers.
Might have to wait for the googlebot to pass by to start working :(
 
How long does it take to see report data after adding the tracking code?

After you first install the tracking code, it may take several hours for report data to appear in your account. Google Analytics generally updates your reports every hour, but data can take up to 6 hours to appear in your account.
 
I've just had the following email from thier support:

"Thank you for your email. We have received your report regarding the problem with the "Check Status" alert update. Our engineers are currently working to solve the problem and hope to reach a resolution shortly. This will not affect data collection or report generation if you have already tagged your website with the Google Analytics Tracking Code."

That fixed the first problem. According to the site now:

"Analytics has been successfully installed and data is being gathered now. Your first reports will be ready within twelve hours. "
 
I saw the press release about it yesterday, and set it up... pretty awesome...

I also had issues with getting the code confirmed until i played around with it for a while.. got it to work finally.


Also, since the script source that they have you include is "http" you'll get a warning message on secure pages (https)
Anyone know of a workaround for that?
 
From the Analytics Settings page, viewed after login, click on the '+ Add Website Profile' link to add your secure page address. I found that I had to add it as a new domain, but it works.
 
manopb said:
From the Analytics Settings page, viewed after login, click on the '+ Add Website Profile' link to add your secure page address. I found that I had to add it as a new domain, but it works.

I was including the script via a server side include, so it was including the same script on http pages as well as https pages, but i came up with a good workaround using ASP. feel free to steal the idea :)

Code:
<%
If Request.ServerVariables("HTTPS") = "on" Then
	Response.Write("<script src=""https://ssl.google-analytics.com/urchin.js"" type=""text/javascript""></script>")
	Response.Write("<script type=""text/javascript"">_uacct = ""UA-XXXXX-X"";urchinTracker();</script>")
Else
	Response.Write("<script src=""http://www.google-analytics.com/urchin.js"" type=""text/javascript""></script>")
	Response.Write("<script type=""text/javascript"">_uacct = ""UA-XXXXX-X"";urchinTracker();</script>")
End If
%>
 
I am doing the same thing in Coldfusion with an included template that supplies all the meta data site wide.

Code:
<cfif #CGI.SERVER_PORT# eq 80>
	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
	<script type="text/javascript">_uacct = "UA-xxxxxx-1";urchinTracker();</script>
<cfelseif #CGI.SERVER_PORT# eq 443>
	<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
	<script type="text/javascript">_uacct = "UA-xxxxxx-2";urchinTracker();</script>
<cfelse>
</cfif>
 
Back
Top