HI,
I have a problem with the custom link tracking in omniture. I worte a method to be called when any link is clicked which is below:
function OmitureLinkClick() {
try {
var s = s_gi(OmnitureEnvironment);
s.linkTrackVars = 'eVar7,prop16';
var pageLink = s_eVar7 = s_prop16 = "Description of Link";
s.tl(this, 'o', pageLink);
}
catch (expMsg) { }
}
In the omniture debugger I can successfully see these variables populated in the link click.
But the problem is that once these are populated, when I move to next page still i see these variables(evar7 and prop16) though there are no links on the page and I did not click on any thing . Just these values are getting passed on.
Can anyone help please . I am unable to figure out.
Thanks
KM
Hi KM,
You should clear out the variables after the call.
//clear out events/props/eVars
s.prop16 = "";
s.eVar7 = "";
s.linkTrackVars = 'None';
s.linkTrackEvents = 'None';
Try it out.
Michael
HI,
I have a problem with the custom link tracking in omniture. I worte a method to be called when any link is clicked which is below:
In the omniture debugger I can successfully see these variables populated in the link click.
But the problem is that once these are populated, when I move to next page still i see these variables(evar7 and prop16) though there are no links on the page and I did not click on any thing . Just these values are getting passed on.
Can anyone help please . I am unable to figure out.
Thanks
KM