Customizing $scripts output in Drupal
04:56 20 Jul 2010

I have a custom theme, and I need to use $scripts to call the analytics code at the top (the link tracking settings) however this also loads loads of other JavaScript files I don't need or want.

All I want is the analytics stuff the module places in $scripts.

So can I somehow either:

A) Load only the analytics code via $scripts (.info file?)
B) Create a new region in .info file (e.g. $analytics) and call that via the template. But then how do I get the analytics code to output to this new region instead of $scripts?

drupal analytics