Enable Google Analytics for your Drupal Site

Google analytics logo

Finding options on how to track your Drupal site with Google Analytics is way too convoluted. Here is my quick list of options:

  1. Add Google's Javascript to the footer of each page of your site using these succinct instructions from Mike Hommé: http://www.mikehomme.com/add-google-analytics-to-drupal-site
  2. Modify individual Theme templates to include the Google Javascript as demonstrated in this video at http://www.5min.com/Video/How-to-Install-Google-Analytics-in-Drupal-60520580. For the impatient, the instructions start at 2min 30sec.
  3. Install a module that integrates Google Analytics into Drupal. Installer and instructions are found at http://drupal.org/project/google_analytics

For now, I went with the first option of embedding into the page footer ala Mike's instructions. Modifying each template looks like it invites mistakes and adding another module seems like overkill, at least for now.