s.tl() call issue | Community
Skip to main content
Level 3
October 16, 2015
Solved

s.tl() call issue

  • October 16, 2015
  • 7 replies
  • 3707 views

Hi,

It is a MVC implementation. I am getting an error "Caution: Provisional Headers are shown" while sending image request.

The tags are not reaching the adobe servers.

Here is the code

                            
s.linkTrackVars = "eVar12,eVar8,events";
                        s.linkTrackEvents = "event2";
                        
                        s.eVar12 = 'AgentID|State|TestGroup|Agency manager code| agent type|PFR status';   
                        s.evar8 = 'Presentation' OR 'Magazine' OR 'Video';
                        s.events = "event2";
 
                        s.tl(true, 'o', LinkName);

 

Can anybody advise?

[img]Error.png[/img]

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sameer_Khaladka

devinderbanga wrote...

Hi

Sitecatalyst requires 500ms minimum to send/record image to the server. This might answer your query.

If this 500ms breaks than it result into an error in image or failure data transition to the server, where everything seems to be right (no js error) except your data doesn't recorded on the server.

I suggest to incorporate 500ms delay (refer to the http://microsite.omniture.com/t2/help/en_US/sc/implement/function_tl.html).

Sometimes click on the button(redirection) happened so quick that it breaks the data transmission to avoid this situation we place a delay.

 

Regards

Devinder

 

Thanks Devinder

I need to use "s.tl(this, 'o', link)" in lieu of "s.tl(true, 'o', link)”  to introduce the delay. I can not use "this" because my button does not have anchor or href tag.

So my option is to create anchor tag for the button on the fly before using "s.tl(this, 'o', link)" OR use 500ms external delay for the function that calls "s.tl(true, 'o', link)”.

Regards

7 replies

devinderbanga
Level 6
October 16, 2015

Hi

 

Please check for any javascript error on load of the page.

 

 

Regards

Devinder

daniela_garay
October 16, 2015

Hi Sameer, 

please try with this code:
(you had some issues)

s.linkTrackVars = "eVar12,eVar8,events";

s.linkTrackEvents = "event2";
s.eVar12 = 'AgentID|State|TestGroup|Agency manager code| agent type|PFR status';   
s.eVar8 = 'Presentation' || 'Magazine' || 'Video';
s.events = "event2";
s.tl(true, 'o', 'LinkName');

 

Regards

Dani

Level 3
October 16, 2015

Thanks Dani,

I already have a single quote before LinkName. Also the strings that I fill into evars and props are just examples. E.g. eVar8 could be 'Presensetation' If use clicks on Presentation Button.

There is nothing wrong with code.

This code executes on the click of the button. Also, if I put some delay, the error goes away.

I need to know if that is the legitimate solution.

Regards

devinderbanga
Level 6
October 16, 2015

Hi

Sitecatalyst requires 500ms minimum to send/record image to the server. This might answer your query.

If this 500ms breaks than it result into an error in image or failure data transition to the server, where everything seems to be right (no js error) except your data doesn't recorded on the server.

I suggest to incorporate 500ms delay (refer to the http://microsite.omniture.com/t2/help/en_US/sc/implement/function_tl.html).

Sometimes click on the button(redirection) happened so quick that it breaks the data transmission to avoid this situation we place a delay.

 

Regards

Devinder

Level 3
October 16, 2015

devinderbanga wrote...

Hi

Sitecatalyst requires 500ms minimum to send/record image to the server. This might answer your query.

If this 500ms breaks than it result into an error in image or failure data transition to the server, where everything seems to be right (no js error) except your data doesn't recorded on the server.

I suggest to incorporate 500ms delay (refer to the http://microsite.omniture.com/t2/help/en_US/sc/implement/function_tl.html).

Sometimes click on the button(redirection) happened so quick that it breaks the data transmission to avoid this situation we place a delay.

 

Regards

Devinder

 

Thanks Devinder

I need to use "s.tl(this, 'o', link)" in lieu of "s.tl(true, 'o', link)”  to introduce the delay. I can not use "this" because my button does not have anchor or href tag.

So my option is to create anchor tag for the button on the fly before using "s.tl(this, 'o', link)" OR use 500ms external delay for the function that calls "s.tl(true, 'o', link)”.

Regards

Sameer_KhaladkaAuthorAccepted solution
Level 3
October 16, 2015

devinderbanga wrote...

Hi

Sitecatalyst requires 500ms minimum to send/record image to the server. This might answer your query.

If this 500ms breaks than it result into an error in image or failure data transition to the server, where everything seems to be right (no js error) except your data doesn't recorded on the server.

I suggest to incorporate 500ms delay (refer to the http://microsite.omniture.com/t2/help/en_US/sc/implement/function_tl.html).

Sometimes click on the button(redirection) happened so quick that it breaks the data transmission to avoid this situation we place a delay.

 

Regards

Devinder

 

Thanks Devinder

I need to use "s.tl(this, 'o', link)" in lieu of "s.tl(true, 'o', link)”  to introduce the delay. I can not use "this" because my button does not have anchor or href tag.

So my option is to create anchor tag for the button on the fly before using "s.tl(this, 'o', link)" OR use 500ms external delay for the function that calls "s.tl(true, 'o', link)”.

Regards

devinderbanga
Level 6
October 16, 2015

Hi

Yes,you need to delay request by 500ms.

 

Regards

Devinder