Creating a single page responsive site in drupal 7.While trying to enable google analytics module,came through certain doubts. While registering our site with google analytics they gave us a tracking id (a js snippet) Can anyone tell me after enabling module is it necessary to add the snippet ? If its necessary ,then where to add the snippet in which .tpl file in drupal?

1 Answer 1


Easiest and most admin-friendly way is to use Google Analytics module:

Adds the Google Analytics web statistics tracking system to your website.

Just install it, turn it on and configure.

(source: drupal.org)

  • Thanks Molot for your response .After enabling and configuring the google analytics module ,and signing up with google analytics,showing an message as tracking not installed. Hoping we don't need to paste the snippet code in any of .tpl files!! Apr 1, 2014 at 10:50
  • @NijiMonachan give Google couple of hours. It's servers are busy, they don't keep a real-time eye on your site to know if you did it or not. Next time they'll have a glance, they'll tell.
    – Mołot
    Apr 1, 2014 at 10:56
  • 1
    @NijiMonachan also, and I know how it sounds, be sure to clear caches. If Drupal has page without GA in cache, GA will not work, simple as this.
    – Mołot
    Apr 1, 2014 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.