Support for OnSugar

Adding Google Analytics To Your Blog

Mon, 02/09/2009 - 5:44PM by sabs 11 Comments - 1,736 Views

How do I add Google Analytics to my blog?
To add Google Analytics to your blog, you must first create your own theme. You can do this by creating your own from scratch, or you can copy one of ours. Then be sure to “Set” it so that your blog is using it (you may need to go to the "Yours" tab). Next click the “Edit” link.

Once you're in edit mode, you will see a list of tabs on the top left column. Click on the “Page” tab. This is the template that control how your page is displayed.

Scroll down to the bottom of the  code and locate the </body> line.

Next, paste the entire chunk of Google Analytics code directly above that line. Click “Save."

In about 24 hours (this is how long Google says it takes), your information should start tracking.

Will this put analytics on every page?
By adding the code to your page template, the google analytic code will be accessed on every single page on your blog.

Will domain mapping affect my analytics?

No, as long as you are using the same code the entire time, domain mapping should not affect your Google Analytics.

How do I get the Google Analytics code?
You will need to sign up for a Google Analytics account in order to get the analytics code. If you need more help obtaining your code, please contact Google via their help center.


1

I did this a couple weeks ago and it did not affect my site's image or functionality at all! Now I have the added bonus of seeing where my traffic comes from, key words used to get there, and all sorts of other goodies! I highly recommend it!!!!!

Mon, 02/09/2009 - 8:22pm

2

Thanks Sabs, Worked perfectly this time.

Mon, 02/09/2009 - 8:58pm

3

okay, i'm trying it. thanks!

Tue, 02/10/2009 - 4:47am

4

what is google analytics?

Wed, 02/11/2009 - 2:19pm

msTampa
5

Google Analytics is a free tool that shows you statistics on your site. It tells you how many visitors, where they came from, what keywords they typed in to get there, How many people filled out your contact us form, and much much more. You can sign up here http://www.google.com/analytics/ . Also, if you want to offer ads from google on your site and get paid for it you can sign up for Google Adsense which can be found here https://www.google.com/adsense/login/en_US/?gsessionid=zFue41oKUGsWYMb8W... . Finally, if you want to advertise on Google you can sign up for Google Adwords here https://adwords.google.com/select/starter/signup/ForkAuth

Google has a lot of great tools! Thanks for the post.

Fri, 02/20/2009 - 6:21am

6

I can't figure this out.. OMG, I have the info from google but I can't find the place to insert.. Please help me?? Thanks

Mon, 06/01/2009 - 3:24pm

7

hi there, before you can add this, you need to own your theme. You can either create your own, or make a copy of the one you're using. To make a copy, click on "Themes" in the dropdown menu and then click "Copy" - Next "Set" your new copy (the new copy appears in the "Yours" tab). Now you can click "Edit" and make edits as listed above. hope that helps!

Mon, 06/01/2009 - 3:46pm

8

OMG!! sabs, your advice worked, I got it! Thanks so much!! Smiling

Wed, 06/03/2009 - 4:12pm

9

hi sabs
how do I add google adsense to my site, I try using the html widget, but the add doesnt show. Pls help. Thanks

Sat, 07/25/2009 - 7:21pm

10

hi karina - did you switch to "Raw HTML" mode first? if you're using html code in a widget or post, you need to make sure you switch to html mode, otherwise it won't work correctly. hope that helps! drop a line to help@onsugar.com if you need more assistance!

Tue, 07/28/2009 - 11:17am

Post New Comment

If you are already an OnSugar member, or would like to receive email alerts as new comments are made, please login or register for OnSugar. Or connect with your Facebook account: .
The content of this field is kept private and will not be shown publicly.