How would I add a script to the bottom of every page in Drupal

Whats the quickest way to add Google analytics to every page in my Drupal site. There are quite a few template files I don't want to add to every one of them.

Is there a way to add them to the footer of all of them?

Thanks, Charlie

No votes yet

Replies

Create a block

Create a block and past in your javascript / (google analytics code) and make sure your input format is full html and then place in your footer or any other region and it will load on every page unless you set it otherwise.

Your rating: None

Post new comment

 
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><code>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.