Why for Christ's sake does Drupal filter whatever I enter in the footer section (Administration - Site section)? I want to add a Javascript tracking code (HTML tag SCRIPT) and it gets stripped. The thing is - only the admin (ie me) can edit the footer. So why, why?

It makes no sense and is just annoying.

Comments

teshager’s picture

Just add the script inside the template, much easier. I have done this successfully for google analytics

gLuck

Retal’s picture

Thanks for the advice, c4rider. Yes, this is a solution I had to use, but I don't like it. More complex websites can have more than one page template (eg for the home page etc.). If you have more of them - which is my case - you have to edit them all. With the footer feature you could add the code only once.

Rowanw’s picture

Why not use a block?

The default footer is really only meant for simple text.

tyates’s picture

Sure there are work arounds - like editing templates or adding blocks. For unusual situations, that might make sense, but having tracking or other code in the footer has become common practice. It appears to be more of an oversite by the hard-working folks who wrote Drupal than a considered decision.

It's hard to complain about such a great and free product, but script in the footer would be nice.