web analytics - SiteCatalyst : Tracking Custom links on Webkit browsers -


my query have link redirects page. in webkit browsers, how force sitecatalyst server call (script execution) finish before redirect happens?

i using sitecatalyst portal. have configured custom link call include doneaction parameter successful call completion on webkit browsers (as mentioned in adobe guide).

the custom link code onclick event of button below:

<script language="javascript" > function search(keyword) { var s=s_gi('testing'); s.linktrackvars="prop11,events"; s.linktrackevents="event6"; s.prop11=keyword; s.events="event6"; s.tl(this,'o','search',navigate());  window.location=searchresults.html; } </script>  <script language="javascript" > function navigate() { return false;  /*to induce delay ensure image request sent adobe before user leaves page.(as given in adobe guide - code release h.25)) code version h.25 (released july 2012) includes overloaded track link method ( s.tl ) forces webkit browsers wait track link call complete.)*/ } </script> 

however, after this, getting error in custom link tracking. redirect happens before call can complete.

please on same. in advance.

regards, harshil

okay firstly there number of issues how implemented it. here example of how should like:

<a href="searchresults.html" onclick="search('somekeyword');return false;">search</a>   <script type='text/javascript'> function search(keyword) {   var s=s_gi('testing');   s.linktrackvars="prop11,events";   s.linktrackevents="event6";   s.prop11=keyword;   s.events="event6";   s.tl(this,'o','search',null,navigate);   return false; }  function navigate(){   window.location="searchresults.html"; } </script> 

some points

  • you didn't post link or whatever using calls search function have link shown example.
  • you passed navigate function 4th argument when should 5th (with null or blank string placeholder 4th)
  • it should navigate not navigate(). way did it, making call function , passing result of function argument. s.tl requires actual function or reference function, , make call function. in fairness, adobe document typoed: shows example wrapped in quotes doesn't work.
  • the redirect should placed in navigate, not in search.

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -