While in certain circumstances it could be a security issue, it would be beneficial to be able to directly upload a new JS file from the admin rather than having to upload it & then change the variable; this would allow the task to be delegated to someone who was responsible for the Omniture configuration rather than the site developer.

Comments

greggles’s picture

As long as the ability to do so is controlled by a permission on http://drupal.org/node/475848 - like "administer site configuration" - I see no problem with it.

greg.harvey’s picture

This would've been useful for me too. I was supplied with a JS file to host on the site - ended up putting it in the 'js' directory of another module, but it's "out of position", so to speak.

greggles’s picture

Title: Ability to directly upload a new JS file » Include an extra js file from a good location

It makes sense to me for the module to offer this.

The standard place is becoming sites/all/libraries/omniture/

@greg.harvey or DamienMcKenna - What was the name of the file?

DamienMcKenna’s picture

The file is normally named s_code.js.

greggles’s picture

Title: Include an extra js file from a good location » Optionally include the s_code.js file from a good location
DamienMcKenna’s picture

The documentation might also want to be spruced up to explain how to use the s_account and s.dynamicAccountList variables in the s_code.js file in order to use one file for multiple sites:

egomac’s picture

just curious if s_code.js can be included using drupal_add_js() so that it becomes part of the aggregated js when the js aggregation is turned on.