Work Around for Using Google Analytics
You are not logged in. Access is limited. Login or see membership information. • FreeToastHost 1.0
Home » Member Forum » Improvement Suggestions » Post

 

As of August 17, 2011, we are no longer providing support for FreeToastHost 1.0.

 

  All clubs are asked to upgrade to
FreeToastHost 2.0! 

 

For instructions on how to signup and move to a FreeToastHost 2.0 site for your Toastmasters club please go to
http://support.toastmastersclubs.org.



Author Message

Subject: Work Around for Using Google Analytics
Improvement Suggestions
posted by GerrySchenk on Wednesday, February 10th 2010 @ 7:41 PM

I found a way to implement Google Analytics. It's a bit cludgy, but it does appear to work. Since FTH doesn't allow javascript, what you need to do is execute script outside of their servers. I found this site:

http://nojsstats.blogspot.com/

which provides a service for executing that code. What you do is sign up for Google Analytics, get your account code and then insert an image source on your web page pointing to this service with your account code.

What happens is that when someone loads your page, the person's browser will automatically point to this service which then acts as a proxy back to Google Analytics.

I've had it up for well over a month and it seems to work great. I'm able to see geographical location, bandwidth speeds, search terms, hits, etc. I haven't completely figured it out yet and I need to spend more time on it.

This will help you with Google Analytics, but it still won't allow you to access Google's Webmaster Tools. That requires validation, which in turn requires access to our web page's header information.

I did describe how FTH could provide that ability in an earlier post, but considering how often this feature has been requested over the last couple of years I don't think it's going to happen anytime soon. As a result, we have this partial work around.

I'd be interested in hearing other people's success with using the above method. I'd also encourage each one of you to write often and LOUDLY to FTH to implement this feature. It's not complicated and I cannot understand why they haven't done it yet. I'll also post my original note within this same topic as a reference.

regards,

->Gerry Schenk

VP PR - Richmond Toastmasters

Club Coach - Deltones Toastmasters

Subject: Templates Changes to Allow Google Analytics and Webmaster Tools
Improvement Suggestions
posted by GerrySchenk on Wednesday, February 10th 2010 @ 7:44 PM

This is my original post to FTH with suggestions on what changes they would need to their templates in order to allow members to utilize Google's Webmaster Tools and Google Analytics.

--------------------------------------------------------------------------------------------

Recently I opened a similar thread, not realizing that there was already one here attempting to address this issue. As I read more about this in the forums, this thread highlights the fact that this particular feature request is almost three years old now. Perhaps if we can get more people adding their comments, it'll provide some momentum for Bo and the crew to actually implement.

For my contribution, I'd like to describe what is required by Google in order to utilize their tools and then make recommendations on how it could be implemented by FTH without compromising their need to maintain security.

To start, I would hope that there are no arguments about the value of the Google suite of tools. Having some access to the tools myself, I found a couple of the features that are particularly useful are the ability to understand where the search requests originated and the other is the search terms that are being used to find us. As I've just gotten into Google Analytics, it would appear that I am just starting to scratch the surface of what it's capabilities are.

In order to use Google tools & Analytics, Google requires validation that you're the domain owner and they need installation of java script on the pages that you want to track.

There are two validation techniques that Google allows, the first is a meta tag which needs to be installed in the header section of your home page. Below is an example of a header tag:

<meta name="google-site-verification" content="W2M3d3Pv6XlXgXau4DYDZ5MSaOvNDQUgQproEV8i3TY" />

We're unable to implement this validation method due to FTH security policy which prohibits any modifications to the header.

Recommendation: include a field under website settings called "Google Validation Code" where the validation code can be entered. Then FTH could include this meta tag as a standard part of the template which they populate using the information that is provided in the user supplied "Google Validation Code" field. Utilizing the method means that no direct access to the headers would need to be provided.

The other validation method is the existence of 0 byte file with a unique filename in the root directory. I'd recommend against this as it's simple enough to enable the meta tag. For those interested, the file name looks like this googlebde8dz81bu9859w7.html and it needs to be accessible via the root of your domain name.

For Google Analytics, they require the implementation of a java script, with your domain's Web Property ID. The Web Property ID consists of a 9 digit number. An example of a Web Property ID is UA-132679393-1. Other than the unique identifier, it's implemented through a standard java script. Here is what the Google supplied java script looks like:

<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-132679393-1");
pageTracker._trackPageview();
} catch(err) {}</script>

For each domain, the only difference is the unique identifier bolded above.

Recommendation: similar to the recommendation above, include a field under website settings called "Google Analytics Web Property ID" where the identifier can be entered. Then FTH could include the java script listed above as part of the standard template and then simply insert the unique identifier into the appropriate part of the script.

I can't see how adding these mechanisms for validation and tracking can be that complicated considering that FTH is already doing something similar today with the "Custom Domain Name", "Page Title", etc. In addition, making the meta tag and java script part of the standard template should alleviate any security concerns that FTH has.

Seeing how often this feature has been requested, it would be appreciated if Bo and the FTH crew could weigh in on whether this feature is even being considered. If not, then these posts will be considered noise and we can all move on and work on other things that will hopefully improve our clubs.

regards,

->Gerry Schenk

VP PR - Richmond Toastmasters

Club Coach - Deltones Toastmasters

Subject: RE: Work Around for Using Google Analytics
Improvement Suggestions
posted by GerrySchenk on Saturday, February 20th 2010 @ 2:02 PM

One thing that I'd like to mention is that if you use the workaround that when you check the status in Google Analytics that it may give you a message saying that "Tracking Not Installed". It will still work and I think the reason that it gives the error is because it only checks the root page of the domain URL.

The reason why it still works is that when a person visits your page, they will call the image source with the "Web Property ID" from Google. The proxy will then send that information to Google as if it was coming from your page. The "Web Property ID" is what Google records, along with the originating IP address and the called page.

Using this technique, I've been able to use it on my district club page as well as our website. The information that provides is really interesting. So far, I've been able to see visits from not only Canada, but about 4 different US states, China, Philippines and the UK. I'm pretty sure that the one from China is from a former member of ours. I'll make another post about the information that I'm seeing and some of the benefits.

Regards,

->Gerry