How to Add a Website / Blog to Existing Google Analytics Account

If you have previously established a Google Analytics account for one or more blogs or websites and want to add another, it can be difficult because Google continues to change the interface and "hide" this option.


The instructions below assume that you have already established a Google Analytics account for one or more websites or blogs and now wish to ADD another website or blog in order to track its performance. HINT: Before proceeding, first add and verify the website or blog in your Google Webmaster Tools account before proceeding!

Also, if this website has an old Google Analytics snippet in the code, i.e. urchin, remove it first.

To add a new property:
  • Log into your Google account and select Google Analytics from the list of products. The Account Home page will display. Now click the gear icon in the upper right corner. The Account Administration page will display.
  • All of your accounts will be listed on the Account Administration page. Click the account to which you want to add a new website or blog to track. The next window will display a list of websites for that account.
  • To add a new website, from the Properties tab (which should display first by default), click "+ New Property" and the Create New Property window will display.
  • Enter a name for the website and select the appropriate http setting from the dropdown menu under Website's URL. Then, when the new box appears, enter the complete URL or domain name for the website. Select your time zone and click "Create property."
  • Google Analytics will return to the page that lists the properties for your account. The new property you just created is displayed at the bottom. Click on it.
  • If you have already verified the website in Webmaster Tools, before getting the tracking code, first click the "Property Settings" tab. At the bottom of the window under Webmaster Tools Settings, click "Apply. If successful, at the top of the window you will see a small, bright green "Success" flash for a moment or two.
  • Now click the Tracking Code tab. Select what you are tracking and then copy the code provided. Google says to paste the code in the head of your code. (See note below). Leave this window open and go paste the code in your website code. When you have done this, return to this window and click "Save" at the bottom of the window. If Google Analytics is happy, another little bring green "Success" will flash at the top of the window.

If this post has been helpful, please consider linking to our blog or sharing!
Bookmark and Share


Receiving 403 Forbidden - No Permission Error Message with INDEX.SHTML


If you create websites using server side includes (SSI), you may run into this problem some day. Scenario: You've tested for weeks on your local server and now you're ready to upload the website files to the server.

You're using the same robots.txt file template and .htaccess file template you've used without fail for many other websites, so you know that they're OK.


So the moment has come. After uploading the files, you carefully type in the website URL and ... you receive a ""You don't have permission to access / on this server" error message and a large error code 403 with the word "Forbidden" shouting at you intimidatingly. Sigh.

I tried to find the answer on the Internet, and found suggestions such as changing file permissions (didn't work) and temporarily removing the .htaccess file (didn't work), so I had to call my web host company.

So if you're in this boat and should be lucky enough to find this post, here is the answer. Place the following line of code as the FIRST line in the .htaccess file:

DirectoryIndex index.shtml

That's all. This tells the server that not only does index.htm and index.html work as the default home page, but that the server should also recognize index.shtml - an indication of the use of server side includes - as well.

I'd never had to use this line of code before after all these years, but now it is the first line of code in all of my .htaccess files!

Cheers!


If this post has been helpful, please consider linking to our blog or sharing!
Bookmark and Share

How to Insert the AddThis Button after Each WordPress Blog Post


Would you your WordPress blog visitors to be able to Like, Bookmark, Tweet, Digg, Email, and share in many other ways your blog posts? Then use the AddThis button or widget found at www.addthis.com. You probably already have acquired the code one or you wouldn't be here, but check their site often as they do come up with new designs.

Before providing the instructions, we assume that you are experienced in manually editing your WordPress php files, understand the importance of keeping track of all changes should you need to restore your blog or update your blog theme, OR - better yet - that you are using the Child Theme method for manually customizing your WordPress Blog. (WordPress has several great tutorials on using Child Themes).

Also, this method works on the themes we work with, but with so many themes out there, yours may be completely different..

So ... to add the code for your AddThis Share button to appear after each WordPress blog post, follow these steps.

After logging in to WordPress admininstration, click "Editor" under "Appearance." Find the section that begins with <div class="postentry"> and find the ending </div>. (The div after the insertion area is <div class="postmetadata"> for most WordPress themes.)

Insert the AddThis code as shown below in red. Naturally, the commends are not part of the actual code, but AddThis usually adds them for you automatically, so we recommend you keep them.

Also, make sure you substitute your AddThis pubid name or number where, in the code, it reads: YOUR-ID-GOES-HERE. You will see this twice as the code below includes the clickback option.

Also, we added the break <br /> at the very end because it looked nicer, but it is not required, of course.

<div class="addthis_toolbox addthis_default_style""><!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=YOUR-ID-GOES-HERE"
addthis:url="<?php the_permalink(); ?>"
addthis:title="<?php the_title(); ?>">
<img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a></div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d9a0d1d5db3b34f"></script><!-- AddThis Button END -->
<br />

If you would like to have the AddThis Share (or Bookmark) Button display on the WordPress blog post when someone clicks on the post title (permalink), follow the same steps above regarding adding the code but edit the file single.php instead.

If you would like to have the AddThis Share (or Bookmark) Button display on the WordPress blog post when someone is viewing the post from the archive as well, follow the same steps above regarding adding the code but edit the file archive.php instead.

Hope this works for you as it does for us. Cheers!

If this post has been helpful, please consider linking to our blog or sharing!
Bookmark and Share