Hi,
This issue is regarding to s.tl() function of sitecatalyst. When I use s.tl() function and direct to different page, NS_BINDING_ABORTED error will occur on Omniture request.
Please see the below code.
<script type="text/javascript">
function trackLink(obj) {
s.forcedLinkTrackingTimeout = 3000;
s.linkTrackVars='eVar14,events';
s.linkTrackEvents='event15';
s.eVar14="SSR_OK";
s.events="event15";
s.tl(obj,'o','SSR_OK',null,'navigate');
}
function trackLinkError(obj) {
s.linkTrackVars='eVar14,events';
s.linkTrackEvents='event15';
s.eVar14="SSR_ERROR";
s.events="event15";
s.tl(obj,'o','SSR_ERROR');
}
</script>
<a id="link1" href="2.html" onclick="trackLink(this); return false;">Continue</a><br/>
<a id="link2" href="2.html" onclick="trackLinkError(this);">Continue with error</a>
I used two links (link1, link2) to directed to 2.html. When using link2, NS_BINDING_ABORTED error will occur on Omniture request. But according to link2, I used a delay using s.forcedLinkTrackingTimeout property and the Omniture request has been sent as expected without an error. But the problem is, if we define this delay how to define it and also it is not a good practice to use a defined delay on a commercial application.
Can anyone consult on this to resolve this issue.
--
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I will advise you to look at this example : http://microsite.omniture.com/t2/help/en_US/sc/implement/index.html#Using_Function_Calls_with_Custom...
I believe that with H.25 code and above a timeout is built in in the code and you should not have to specify s.forcedLinkTrackingTimeout = 3000;
It should by default wait 500ms for the image request to be sent.
Just put the following :
function trackLinkError(obj) {
s.linkTrackVars='eVar14,events';
s.linkTrackEvents='event15';
s.eVar14="SSR_ERROR";
s.events="event15";
s.tl(obj,'o','SSR_ERROR',null,'navigate');
}
And it should work
Best regards.
Alexis
Views
Replies
Total Likes
Hi Manoj,
I hope this will help you, otherwise please ignore.
You need to check the Forced link tracking is enabled. otherwise please use below:
useForcedLinkTracking:
This flag is used to disable forced link tracking for some browsers. Forced link tracking is enabled by default for FireFox 20+ and WebKit browsers.
Default Value
true
Example
Related to this issue some explanation below:
forcedLinkTrackingTimeout :
The maximum number of milliseconds to wait for tracking to finish before performing the doneAction that was passed into s.tl . This value specifies the maximum wait time. If the track link call completes before this timeout, the doneAction is executed immediately. If you notice that track link calls are not completing, you might need to increase this timeout.
Default Value
250
Example
Thanks,
Anbu
Views
Replies
Total Likes
Hi,
I will advise you to look at this example : http://microsite.omniture.com/t2/help/en_US/sc/implement/index.html#Using_Function_Calls_with_Custom...
I believe that with H.25 code and above a timeout is built in in the code and you should not have to specify s.forcedLinkTrackingTimeout = 3000;
It should by default wait 500ms for the image request to be sent.
Just put the following :
function trackLinkError(obj) {
s.linkTrackVars='eVar14,events';
s.linkTrackEvents='event15';
s.eVar14="SSR_ERROR";
s.events="event15";
s.tl(obj,'o','SSR_ERROR',null,'navigate');
}
And it should work
Best regards.
Alexis
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies