Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Without seeing any code I can only speculate, but my guess is the additional hit is from SiteCatalyst's auto-link tracking - either an exit link because the target URL is not listed in <code>linkInternalFilters</code>, or a download link because the target URL ends with something listed in <code>linkDownloadFileTypes</code>. </p> <p>I suspect, given the <code>'e'</code> argument of your <code>s.tl()</code> example, that the link is an exit link. So on that note.. perhaps the solution here is to piggyback off the auto-exit-link tracking, instead of making your own <code>s.tl()</code> call. Adobe has a plugin called <code>exitLinkHandler</code> that will let you trigger additional variables whenever the auto-exit-link tracking occurs.</p> <p>Here is the plugin:</p> <pre><code>/* * Plugin: exitLinkHandler 0.5 - identify and report exit links */ s.exitLinkHandler=new Function("p","" +"var s=this,h=s.p_gh(),n='linkInternalFilters',i,t;if(!h||(s.linkTyp" +"e&amp;&amp;(h||s.linkName)))return '';i=h.indexOf('?');t=s[n];s[n]=p?p:t;h=" +"s.linkLeaveQueryString||i&lt;0?h:h.substring(0,i);if(s.lt(h)=='e')s.li" +"nkType='e';else h='';s[n]=t;return h;"); </code></pre> <p>Within your <code>s_doPlugins</code> function, add the following:</p> <pre><code>s.url = s.exitLinkHandler(); if (s.url) { // pop your variables here. Don't forget to pop `linkTrackVars` and `linkTrackEvents`, same as you would have done before } </code></pre> <p>Now, this will make your additional variables pop on <em>any</em> exit link triggered. If you want it to only trigger on certain URL matches, or only on a specific match, you can do this several ways, depending on your needs: </p> <ul> <li><p>If you only need to do a general substring match, you can pass some or all of the target URL as the first argument for <code>s.exitLinkHandler()</code> and it will match the passed argument against the target URL.</p></li> <li><p>If this isn't good enough, within the <code>if(s.url)</code> condition, you can perform your own matching (e.g. regex matching) against the target URL using <code>s.url</code>.</p></li> <li>If you need to target by some DOM attribute of the link, within the condition, <code>s.eo</code> is an object reference to the link that was clicked, so you can write your own conditions around that.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload