Google Analytics

Task Progress:

Setting up Google Analytics is the most basic step for any marketing plan. If your account is already setup, feel free to mark this task as complete and move on.

  1. If you don’t have your Google Analytics account, sign up using a new or existing email address . If your email address is not associated with a Google account, you will be prompted to create one.
  2. Copy your Website Tracking code. It is always available in the top menu under Admin -> Tracking Info -> Tracking Code.
  3. Depending on your website type, the code must be placed in an element that is repeated on each page. It is recommended not to use the plugins to avoid conflicts and latency.

WordPress
There are three ways to set up Google Analytics inside WordPress.

If your theme allows it, inside your admin panel you can find Appearance -> Your Theme Options -> SEO or Tracking and directly enter your code there.

Google Analytics code in WordPress

If your theme doesn’t allow it or you cannot find it, you will have to edit WordPress files.

From your web files directory, access wp-content\themes\YOURTHEME\header.php and paste your code directly under the body tag .

Google Analytics code in code

You can also use the WordPress Google Analytics plugin with default options using your tracking ID (UA-XXXXXXXX-X).

Joomla

From your Joomla admin section, access Extensions (top menu) -> Template Manager -> Templates (side menu) -> YOUR TEMPLATE -> Edit Main Page Template OR Index.php -> paste your code under the body tag .

Google Analytics code in WordPress

You can also use the Joomla Google Analytics plugin with default options using your tracking ID (UA-XXXXXXXX-X).

Drupal

From your web files directory, access themes\YOURTHEME\templates\page.tpl.php and paste your code directly under the div id=”header” .

Google Analytics code in code

You can also use the Drupal Google Analytics plugin with default options using your tracking ID (UA-XXXXXXXX-X).

Other

The tracking code must be found in the body of each page you wish to track.

It can easily be implemented using a PHP page. Simply create “analyticstracking.php” in your web directory and paste your Google Analytics script in it. Include “<?php include_once(“analyticstracking.php”) ?>” in the body of all the pages you wish to keep track of. Pay a special attention to your file path if analyticstracking.php is not in the same directory as your web page.

If you cannot have access to your web files, contact your web administrator so he can add the code for you.


 

  1. Test your traffic from your analytics panel (Admin -> Tracking Info -> Tracking Code -> Send Test Traffic (button). If 1 active users show up, you have successfully setup your code.
  2. Go to Reporting (top menu), this will be one of your most important tool for the next 48 weeks. You can explore options in the left menu, they will be addressed in upcoming weeks.