Adding Google Analytics on WebSite Tonight.

In the past I’ve covered the importance of site content and tracking web traffic to your site but I know a lot of you out there use Google to search so here is a different way of tracking traffic and site content via Google. 

You’re going to need a Google Analytics account so go to www.google.com/analytics and set that up when you can.  Once you set it up, you’ll get some script that you need to add to your WebSite Tonight project. 

The code will look similar to what I have below and click here if you need to know how to add a script.


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-861481-5";
urchinTracker();
</script>

The instructions say to put the code just before the </body> tag in your HTML but putting it into the footer of your project will do equally fine.



Once you've added the script, Google Analytics will start tracking your site but you will have to wait until the next day before you see the results in your Google Analytics control panel. 

 

What did you think of this article?




Trackbacks
  • Trackbacks are closed for this entry.
Comments

  • 1/5/2010 8:04 PM Robert wrote:
    Thanks for this information. Do I have to put the tracking code information in the footer of each page for Google to start tracking my site? Or, is putting the information in the footer of the home page sufficient.

    Robert
    businessconsultingsolutionsllc.com
    1. 1/6/2010 10:28 AM Gomathi wrote:
      Hello,

      The tracking script has to go on the bottom of every page on the website. That way all pages are tracked.
       
      The script should be installed as close to the the bottom of the page right before the </body> tag.

      You can add this by clicking Page - Properties - JavaScript. There is a place holder for this - "JavaScript placed before </body>"

      Hope this helps,

      Thanks,
      Gomathi

Leave a comment

Comments are closed.