There are times when one wants to make a call to omniture not just on page load. It would be nice if there were js function for making extra s.t() and s.tl() calls.

While it is possible to do this currently by calling s.t and s.tl it would be nice if this could be done in a more standard way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

e2thex’s picture

FileSize
2.25 KB

Attached is my first try at a patch to create am omniture_call and omniture_link_call function. This function will create a new s obj populate it and then submit it.

e2thex’s picture

FileSize
2.25 KB

attaching new version
there was a two typos in the last one

e2thex’s picture

If someone has a change it would be nice to know if you all are interesting in this being part of the omniture module. If not I could easily put this in is own module.

Thanks

e2thex’s picture

FileSize
2.28 KB

here is an update of the patch

emackn’s picture

FileSize
1.87 KB

Updated patch for D7. Not sure if it needs its own issue with the D7 version.

greggles’s picture

Status: Active » Needs review

Better status. I'm not really in a position to review this, personally.

sperks’s picture

This module doesn't currently make any assumptions on the JavaScript that a site uses and snippets of code like this are quite probably already in some people's js files.