allow admin to type in a _udn value on settings page and use that in the tracking code. see http://www.google.com/support/analytics/bin/answer.py?answer=27268&topic....

perhaps just add a textarea where admin can enter arbitrary javascript to be inserted.

Comments

budda’s picture

The textarea in an advanced section might be the way to go - if a little more prone to allowing users to bugger up their site javascript :)

I'm still not clear after reading Googles help on what this function is doing - or how it should be called, if i was adding a specific field for it in the settings form.

Multiple subdomains doesn't quite explain it.

moshe weitzman’s picture

Title: multiple subdomains » add textarea for users to enter raw javascript

well, i would prefer the textarea for raw javascript anyway. For the help text, say something like "For ideas on javascript to use here, see http://cutroni.com/blog/"

i think of this module as a quick way to add analytics to your site *without having to touch the theme*. we don't walk our users through the intricacies of __utmSetVar() and filters.

moshe weitzman’s picture

We could encourage users to share their javascript at http://drupal.org/node/39282

budda’s picture

Assigned: Unassigned » budda

__utmSetVar() support was recently added to the 4-7 version of the module.

budda’s picture

Status: Active » Fixed

Advanced code snippet textarea added to the 4-7 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)