Right now, I put the Piwik code at the end of html.tpl.php
.
How I can integrate it in a Drupal site, so that this JavaScript can be aggregated? Or better loaded and keep my template clean?
Can I put this code to an external JavaScript file (+ how?) and then just declare it at theme.info
?