Closed (fixed)
Project:
Omniture Integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2010 at 22:29 UTC
Updated:
19 Nov 2012 at 18:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
ultimateboy commentedIf I don't see any backlash soon.. I'm going to simply commit the removal of the description. In the end, I think it's probably best to just remove this field all together. I know I've never used it.
Comment #2
Race.it commentedno objection from me to remove the description.
Comment #3
gregglesThis was copy-paste from the google analytics module, I think.
Comment #4
greg.harveyWould be useful if the box *did* permit code snippets though (e.g. PHP) ... related: #186237: Sub-module to allow PHP so you can create dynamic Omniture JavaScript variables from the UI
Comment #5
gregglesI think PHP should live in files, not in the database. There is a hook for site specific modules to add PHP which is the "right" way to do that, IMO.
Comment #6
greg.harveyFair enough, will work on the sub-module, as discussed in #186237: Sub-module to allow PHP so you can create dynamic Omniture JavaScript variables from the UI
Comment #7
bleen commentedI agree that the description needs some serious help ... but I know that we have used the advanced js field from time to time (usually to calculate the value of some obscure var) ...
That said, I think that the patch here #1815866: Add token support for code snippets. would make this field much more useful and the examples in that issue would be much more practical as a description.
Thoughts?
Comment #8
bleen commentedOn second thought, I'm going to close the other issue as a duplicate and keep everything here...
This patch adds token support and give some examples in place of a description. Much more useful in my opinion.
Comment #9
bleen commentedDidn't get much feedback on this one, (I'm sure in part because I resurrected it from the dead) but it clearly makes the advanced javascript field quite a bit more useful as it allows users to add some basic logic directly in the GUI. It also makes the purpose of this field more clear by providing some concrete examples of how it can be used instead of some links that don't really explain anything.
So with that, I went ahead and committed the attached patch (the only difference from #8 was some formatting)
http://drupalcode.org/project/omniture.git/commit/9c19930