How to insert the Webtrends tag into Drupal sites
Following a Twitter conversation on how to implement the Webtrends tag into Drupal sites, I contacted their HelpLine and received the following (thanks Jon Bijak!), which I thought worth sharing as I could find nothing in their knowledgebase when searching for Drupal:
Webtrends On Demand
Webtrends Analytics 9.2
Webtrends Analytics 8.7
Webtrends Analytics 8.5
Webtrends Analytics 8.1
Webtrends Analytics 8.0
Drupal is a widely used theme-based content management system. While Drupal has the capability of putting footer code on every page, <SCRIPT> blocks are filtered out of the footer. While Drupal has contributed modules that may provide the ability to do this, Webtrends does not manage or support them, and therefore the Webtrends tag should be added to the theme itself (the HTML section of a PHP file). Since it is possible to apply a separate theme to the Administration section, this gives the customer the added bonus of not having to track the administrator. Keep in mind that if you use multiple themes, you will need to apply this to each. Since it is possible to apply a separate theme to the Administration section, this gives the customer the added bonus of not having to track the administrator.
3. Save the tag, then extract its contents.
4. Copy the webtrends.js file to the "/sites/all/libraries/webtrends/" of your site, creating it if it doesn't already exist.
5. Use a text editor to open the main template file for each theme ("page.tpl.php" by default) and webtrends.html (extracted from the Tag Builder archive).
6. Copy the contents of webtrends.html and paste it above the </html> tag in the theme's template file.
7. Save the template and close both files.
8. Repeat steps 6 and 7 for each theme.
The theme should now be functioning and you'll want to test it as you would any other site.
There is currently a Drupal module for Webtrends. Using this module hasn't been researched and this module is not supported or affiliated with Webtrends. Unfortunately, there does not appear to be anything that will handle commerce tagging. Any exploration into configuring Drupal, or any other CMS (beyond basic tagging) is strictly a Professional Services engagement.
N.B. There is an error in the renumbering, but I don't think it is important...
Please let us know how you get on!