Pick our brains...

Adding KissMetrics or other Analytics Tracking Codes to Drupal 6

Most Analytics Apps do not have official modules/plugins for Drupal.

Thus, this requires us to implement a backend code insert into the theme to ensure the JS Codes we need appear on each and every page of the Drupal Theme installation.

Example : MaryMorrissey.com

Drupal 6 Theme : marymm

Analytics code MUST be inserted into the page.tpl.php file within the active theme, in this case “marymm“.

Location of file :

/public_html/sites/all/themes/marymm/page.tpl.php

Look for the existing KissMetrics Code there and Insert any new codes directly below that code to ensure it gets pulled into all pages.