Blog Anchor Point

Image Links

The images above, are actual Image Links, and are click-able. Use them to navigate to the sites indicated in the mouse-over pop-ups!

Sometimes, a mouse-click on images will enlarge them

Wednesday, 20 April 2011

Google Analytics - Installation of the code

If you choose to use Google Analytics to review, or display Statistics of site visitors to your blog, as opposed to Statcounter, or Sitemeter, you still have to put a code on your blog. The question is; "Where do you put it?"

The simplest way to explain it, is that the code, or token, is written in Javascript. As you can see in the following image, the first line of the code says; <script type="text/javascript">. All New Blogger blogs have HTML/Javascript gadgets, into which you add Javascript code! Why add code to your blog template if you don't have to?

Either, select the gadget from the 'add a gadget' option/Page Element, at the bottom of your Design screen, or paste the code into one of the other 'add a gadget' options on the screen, and DRAG it to the bottom of the page. You don't even have to give it a title, if you don't want to. It has no function which can be clicked on.

Bear in mind that there is a huge possibility you won't see any results for, maybe, 24-48 hours, either. You have to wait for the Search Engines to evaluate visits/gather data. Also, much of the Google Analytics Help information is designed for Website developers, and is tailored for them - not necessarily for bloggers! If you see anything written expressly for Blogger, it is either old, or describes a 'phased-out' version of Blogger - like classic blogs!

If code is written in Javascript, and you want to add it to your blog, whack it in a Javascript gadget! Adding script to your Template is a scary thing for most bloggers - and opens you up to major problems. Don't risk it unless you know what you are doing - even then, there's NO need to!

See: The Google Analytics blog for some 'light' reading!



Hilary Melton-Butcher said...

Hi Roberto .. I've just come from Sue (Aus .. Jumping Around) and have subscribed - I'll have to go back to Follow .. forgot that part!

Thanks for this post - I need to add G A to my blog .. so I'll be back to check how I go about it ..

Cheers Hilary

Roberto said...

Hi Hilary, and welcome.
Hope I have answers for your questions!

Donna P. said...

Hi Roberto,

Thank you for the tips! I had tried to edit my html using firebug but I couldn't enter the code in the right place. I chose 'new attribute' but it added it at the top of the "head" code. Drove me crazy until I found your post. GA has properly been installed and already waiting for data.

I will most likely be checking your blog again for some great information. In the meantime, feel free to check out mine.

Thank you!
Donna P

Lisa Ellis said...

Thanks for this very helpful post!

Karen said...

Thanks for the advice. I had been struggling with another designers explanation of how to add the Analytics code, but yours worked first time.

Bob said...

Glad to hear you're set up, Karen.

Karen said...

One more question please Roberto, is there any code that I can generate to link my e-blogger to my own website. I was going to create a blog page on my site but thought that eblogger is probably more creative.
Thank again Karen

Bob said...

Hi Karen - by 'e-blogger', I guess you mean your blog?

If so, I'd just use a Text gadget, available from your Design screen. Add some text, and the hyperlink - telling your readers about your site.

Then, drag and drop it where you want it to display...somewhere prominent, perhaps, like at the top of your main page, below the Header - like I have done with my little image icon.

Karen said...

Sorry Bob, me again. I didn't explain myself very well. I meant that i wanted to put a link/button on my own website that can be used by visitors to view/link with my blog on e-blogger.

Bob said...

That's ok, Karen - do you already have the button designed? if so, all you have to do is upload it to your html Editor, and substitute your website URL into the code, like I talk about in this post ...
see: this post

It looks entailed, but isn't difficult.
If you need more help, email me rather than post a comment here. See my blog for the address.

mary dixon said...

Thanks very much for your time and smarts - you answered a bunch of questions and you are much valued and appreciated.

Chelle said...

I am glad I came across your post. I was sooooo lost trying to figure out how to install GA.

It's installed and collecting data now as I type.

Andi said...

Thank you so much! Saved me from a big headache with such an easy tip!


Tami Curtis said...

Great info! Thanks!