How to check Google Analytics on a site?

By tiju.thomas | 01st February 2013 | 2 min read

Google Analytics is a service offered by google which is mainly used to analyze the traffic of drupal/non drupal websites. This module gives statistical information such as

  • number of people who viewed a drupal page.
  • average time visitors stayed on a drupal website.
  • average number of pages viewed per visit etc.

Thus, to watch over the statistical growth of a website, this module is a must. To ensure the working, the module must be tested after configuring it with the drupal/non-drupal site. Here I have documented on how to test a Google Analytics module configured on a website.

Test cases/ Checklists against Google Analytics module

  1. Open the pages you want to check Google Analytics
  2. Take the source code by pressing Ctrl + u
  3. Search Google Analytics by pressing Ctrl + f
  4. Enter 'googleanlaytics' in the search form
  5. Verify whether the Google Analytics details is displayed in the source code.


For example; if Google Analytics is enabled you will see the following code

code.jpg

We can test this as both anonymous and logged in user.

For admin users, follow the steps below:

  1. Login as admin into the site.
  2. Click on 'Modules' dispayed in the admin menu bar

    adminmenu.jpg
     
  3. Enter 'Modules' page and Search google analytics by pressing Ctrl + f
  4. Enter google anlaytics in the search form
  5. Verify whether the google analytics module is enabled for the site.

    image2.jpg


If the developers give the credentials of google analytics account, then we can simply check the traffic of our site. For that,

  1. Open the site http://www.google.co.in/analytics/
  2. Login to the site by using the credentials of google analytics account
  3. Enter the home page and check the traffic of our site


From this page the number of Visits, Unique Visitors, Average Visit Duration, Bounce Rate, % of New Visits etc can be viewed. These ways help a user to check Google Analytics on a site.