title: Is there a way to make Omniture capture the url/page loaded via ajax as a "Load" event and not a "Click" event?
body: <p>I am currently working on a Ajax based mobile website project and am not able to get Omniture to work correctly. Here is a brief detail of the problem.</p>
  
  <ul>
  <li>Assume a mobile site which has multiple pages, like example.com/a, example.com/b, example.com/c, example.com/d, example.com/e, example.com/f, etc.</li>
  <li><p>Each page of the site, has Omniture's code, like:</p>
  
  <pre>&lt;html>&lt;head>&lt;/head>&lt;body>
  &lt;script type="text/javascript" src="//domain-and-path-to-omniture-code-files/s_code.js">
  &lt;script type="text/javascript">
  s.pageName = "blah";
  // some other ... s.blahBlah ... properties here...
  /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
  var s_code=s.t();if(s_code)document.write(s_code);
  &lt;/script>
  &lt;div id="content">SOME CONTENT&lt;/div>
  &lt;/body></pre></li>
  <li><p>User opens the browser and opens one url/page, like example.com/a</p></li>
  <li><p>The page (example.com/a) has multiple links to the content on the same page, like #topic1, #topic2, #topic3, etc. and also has links to other static pages of the site, like example.com/b, example.com/c, example.com/d, etc.</p></li>
  <li><p>I use jQuery to control click events on these links.</p>
  
  <ul>
  <li><p>When user clicks on a named link, like #topic1, #topic2, etc., the page is animated/smooth-scrolled to the target element/content-section; and Omniture's "s.tl()" function is triggered, to track/capture the click event with relevant/required details.</p></li>
  <li><p><strong>## THIS IS THE PROBLEM AREA ##</strong> When user clicks on a link to a different static page, like example.com/b, example.com/c, etc., instead of allowing the browser to do a full page-load, the Ajax version of the target page is loaded into the content holder <em>(by Ajax version, I mean to say that the page only has bare-minimum markup/content and not the entire html/head/common-css/js includes/etc)</em>.</p></li>
  </ul></li>
  </ul>
  
  <p>Now the problem is that, when the page is loaded normally, Omniture captures it correctly as a "Load" event, but when it's loaded via JavaScript/Ajax, Omniture captures it as a "Click" event!</p>
  
  <p>The Ajax/version of the page, does not include Omniture library "s_code.js" JS again (for obvious reasons, its already there on the parent/main page). Along with the required content, this page only has a script-tag, which sets required "s.blahBlah" values for the new page and the call to "s.t();".</p>
  
  <p>I also tried to keep the Omniture code separate, in a common JS file, which is already loaded with the parent page, and only set the required "s.blahBlah" values in the Ajax call/function (which is also in a global/already loaded JS file), but still Omniture captures it as a "Click" event.</p>
  
  <pre>
  // s.tl(); ... gets captured as a click event
  // s.t(); ... on normal page load... gets captured as a load event
  // s.t(); ... after DOM-ready/page loaded via Ajax... gets captures as a click event
  </pre>
  
  <p>Any ideas! How can I make Omniture capture a load event? Is there a function like "s.l()" or something to trigger Omniture's "Load" event on demand.</p>