Tuesday, June 2, 2009

Drupal: Where to edit frontpage script

My case:

I want to add google analytic script in my main page in drupal.

Solution:
  1. Copy the google analytic script.
  2. Go to sites/all/theme/yourtheme/page-front.tpl.php
  3. Past the script before "close body" tag.
  4. Save and refresh the drupal main page.
  5. Right Click to see view source.
  6. Check that the google analytic script appear in the source page before "close body" tag.
  7. Finish.(Wait after 6 -24 hours to see the report)


0 comments:

Post a Comment