Drupal Pitfalls

Forgetting to put

<?php print $closure; ?>

in your theme’s page.tpl.php.

Forgetting the closure prevents modules like Google Analytics from being able to put JavaScript at the end of the page body. Without that JavaScript, not much analytics…izing gets done.

This is a fairly common mistake, in my experience as a Drupal maintenance programmer.

Share and Enjoy:
  • Reddit
  • Digg
  • Twitter
  • Slashdot
  • StumbleUpon
  • Google Bookmarks
  • Facebook
  • E-mail this story to a friend!
  • Print this article!
Posted on Wednesday, November 4th, 2009 at 2:35 pm and is filed under drupal. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment