Web Site Statistics:
using Google Analytics with the Western Template

If your department is interested in tracking visits to your site then the most powerful tool to use is Google Analytics. This solution does involve embedding some codes on each page of your site that you wish Google to track, so you will need to be using the Western template, or other templating system on your site. By using a template you can put the embed codes in the template and thus readily update all the existing pages on your site as well as automatically add the codes to new pages that are created in the future.

Set up an email account with Google Analytics

  1. Go to http://www.google.com/analytics/ and click Create an Account.
  2. Create a Google Account by using your wwu email address and a password just for this site (do not use your universal password).
    1. For personal use tracking your own sites we recommend using a pre-established gmail account, but for university sites we recommend you use your wwu account
  3. Fill in the rest of the form, including accepting the Terms of Service (purchasing has approved this contract)

Tell Google about your site

  1. Enter your site's url in Website URL.
    1. For deparment sites: www.wwu.edu/sharename and for
    2. myweb sites faculty.wwu.edu/username orstaff.wwu.edu/username
  2. Fill in and accept all the rest of the information
  3. Use the default tab which says New Tracking Code (ga.js) NOT the Legacy Tracking code tab.
  4. Click in the window with the code and when it is all highlighted select Ctrl-C to copy the code.
  5. Select Finish

Put the embed codes in the template for your web site

These instructions are for the university template. If you are using a different templating system you will need to take equivalent action.

Note that the codes need to be embedded as close to the end of the source files as possible, ideally just before the </body> code.

Open the footer.html under the Includes folder
When using the university template we insert these codes in the footer include file which is at the very end of every file on the site.
  1. Open your site in Dreamweaver (see Dreamweaver Site Setup information)
  2. Under Local Files expand the Include folder and open the footer.html files
  3. In Code View, paste (Ctrl-V) the embed codes at the end of the file.
  4. Save the file and push it to your production server (unless you're already working on the production server).

Verify your Google Analytics site setup

Google Analytics is waiting for data
  1. Wait 24 hours and log back into Google Analytics.
  2. On the Website Profiles list, check the Statuscolumn. In the first 24 hours you'll see a greyed circle like at right indicating that Google is waiting for data. After that the status changes to a green check mark if data has been successfully gathered or a yellow warning triangle if there is a problem.
Green check mark in status means you have data

View your site statistics

  1. Once you've achieved a green check mark, then your report is ready to view. Select View Report and you'll be presented with the Google Dashboard. The default view is theContent Report.
  2. At bottom right is Content Overview. SelectView Report at the bottom of this panel
  3. Select View full Report at the bottom of thePages panel.
  4. At the bottom right of the Content Performance Panel you will see Show Rows where you can select how many items you can see at once.
    Show Rows determines how many items you see at once
  5. Select About this Report at left under Help Resources to get more understanding of the table data.
  6. Select other types of reports such as Visitors and Traffic Sources from the menu on the left side of the page.
  7. Use the Date Range and day week month selectors to further refine your view
    Notice that you have the choice ofDayWeek, and Month views from the selector top right, and Date Rangechoices from the Date at top right.
  8. Google frequently adds features and capabilities to its tools, so poke around and see what you can learn about how people use your site.
Page Updated 03.24.2014