Web beacons through javascript tags - Sending data to Omniture collection servers without refresh page

Hi all. I use javascript tags to transmit visitor data to Omniture collection servers and I include s_code.js in all tracking pages. I need to track some clicks without loading again the page from server (these clicks only execute javascript to changing some dom elements without server communication). After loading the page, every time that user does click, can I execute the below script to send click data tracking to Omniture collection servers without loading again the page? // set click data to be sended s.propN= ... s.events = ... s.eVar = ... s_code=s.t(); if(s_code)document.write(s_code); Thanks!
There's a whitepaper, "Implementing with AJAX" that deals with this subject. In a nutshell is says that you can either use the s.t() function to send macro-data, or s.tl() to send micro-data. Macro data would be like if you wanted to count a new page view, micro is if you just want to capture button clicks (it does not count a new page view). So you clear and set your variables (any variables you don't clear will send existing values) then call the t() or tl() function like this: // set click data to be sended s.propN= ... s.events = ... s.eVar = ... // send data void(s.t());
Reply
Hi, very new here, have specific issue: when user click link we use javascript to send to omniture. We wish to not represent that click as a page request but as the click (as in above). so, I started using s.tl instead of s.t as described. When I do so, I still see the v0,v4,v15 variables being passed to omniture. I have NO IDEA if using t() ot tl() will still pass these but the reporting on the back end is different for t vesus tl? Can someoner clear this up? I.e., I want the indicated s.tl behavior (not s.t()). But query params sent to omniture indicate that v0, v4 etc. are still being sent. Does this mean its still using s.t instead of s.tl? Mike
Reply
Can you comment more on what clear and set variables means? As mentioned in previous reply, I see v0 and v4 passed to Omniture. I tried to do s.v0='' but that had no effect. I have no idea what these variables are and how to effect them . I dont know about esrc etc. Any pointers to docs here? In fact I dont even know what API Im using, Im using some omniture-supplied javascript called s_code but dont know how to map that to the docs. Any ideas would be appreciated, Mike
Reply
You don't need to clear any variables. You need to use s.linkTrackEvents and s.linkTrackVars to indicate which variables you want to track. v0 refers to s.campaign, v4 refers to s.eVar4, etc. The best resource would be to log into SiteCatalyst and use the Custom Link Tracking whitepaper. That will tell you how to determine if an image request is a page view or not.
Reply

Must be logged in to comment. now to comment!