Tuesday, March 30, 2010

Exit Link Tracking in Omniture SiteCatalyst

Exit link tracking is very important for most sites more so if you are an affiliate site (if you send traffic to other site through your review links or product links) since your revenue stream is directly related to the amount of traffic you send. It is also helpful in understanding which links are browsers taking as they exit your site. Omniture SiteCatalyst provides out of the box exit link tracking functionality.


SiteCatalyst will automatically track exit links based on parameters set in the JavaScript file.If needed, these types of links can be manually tracked using custom link code

Because clicking a link often takes a visitor off the current page, a 500 ms delay is used to ensure that an image request is sent to Omniture before the user leaves the page. This delay is only necessary when leaving the page, but is typically present when the tl() function is called. If you want to disable the delay, pass the keyword 'true' as the first parameter when calling the tl() function. The first parameter is typically the object being clicked on, but if true is used, there will be no delay. e.g.

Use a 500 ms delay to insure data is collected before leaving the page.
s.tl(this,'o','link name')

Disable the 500 ms delay when the user is not going to leave the page.
s.tl(true,'o','link name')

The JavaScript file can be configured to automatically track exit links based on parameters that define exit links. The parameters that control automatic tracking are as follows.

s.trackExternalLinks=true
s.linkInternalFilters="javascript:,testsite.com,....."
s.linkLeaveQueryString=false

The parameter trackExternalLinks determines if automatic exit links tracking is enabled. When enabled,any link with a URL that does not contain one of the values in linkInternalFilters will be automatically tracked as an exit link.

The parameter linkLeaveQueryString modifies the logic used to determine exit links. When
linkLeaveQueryString=false, exit links are determined using only the domain, path and file portion of the link URL. When linkLeaveQueryString=true, the query string portion of the link URL is also used to determine an exit link.


Eg. Exit Link

Custom link code allows exit links and custom links to be tracked in situations where automatic tracking is not sufficient or applicable. Custom link code is typically implemented by adding an onClick event handler to a link, or adding code to an existing routine; however it can be implemented from essentially any JavaScript event handler or function.

The basic code to track a link using custom link code is shown in the following example.
Exit Link

Two SiteCatalyst parameters (linkTrackVars and linkTrackEvents) control which SiteCatalyst variables are set for  exit links and custom links, and are, by default, set within the JS file as follows.

For example to track "prop1", "eVar1", and "event1" with exit link, and custom link,use the following settings within the global JS file:

s.linkTrackVars="prop1,eVar1,events"
s.linkTrackEvents="event1"


Report Location:
Paths > Entries & Exits > Exit Links

14 comments:

  1. Hi Paul,

    I am using custom link tracking for internal search related requirements. I have
    configured the custom link call to include the doneAction parameter for
    successful call completion on webkit browsers.

    The custom link code for onClick event of search button is as below:

    function search(keyword)
    {
    var s=s_gi('testing');
    s.linkTrackVars="prop11,prop13,events";
    s.linkTrackEvents="event6";
    s.prop11=keyword;
    s.prop11=s.prop11.toLowerCase();
    s.prop13=s.pageName;
    s.events="event6";
    s.tl(true,'o','Enterprise Search',navigate());

    var dest="Search Results.html?srq=" +keyword;
    window.location=dest;

    }



    function navigate()
    {
    return false;

    /*To induce a delay to ensure that image request is sent to Adobe before the
    user leaves the page.
    (WebKit browsers might cancel execution of the track link call when the new page
    opens. This often prevents track link calls from completing when using WebKit
    browsers.
    To work around this behavior, H.25 (released July 2012) includes an overloaded
    track link method ( s.tl ) that forces WebKit
    browsers to wait for the track link call to complete.)*/

    }


    In body tag:
    In the form button click event:

    onclick="search(Search_form.search_keyword.value)"

    However, even after this, I am getting error in custom link tracking. The custom
    link tracking and defined variable setting is not happening consistently.

    Please help on the same. Thanks in Advance.

    ReplyDelete
  2. anyone know how to track SEO clicks, by their locations?

    ReplyDelete
  3. This is one of the most important blogs that I have seen, keep it up!www.incredibledreammachinesbonus.net

    ReplyDelete
  4. Your website is terribly informative and your articles are wonderful. Great review of the rich jerk

    ReplyDelete
  5. This article is actually remarkable one it helps many new users that desire to read always the best stuff. Entrepreneur

    ReplyDelete
  6. I’m eager to find the valuable information and for me this is the right place to get the good stuff.Website maker

    ReplyDelete
  7. It’s really such nice information to get advantage from.
    Review

    ReplyDelete
  8. How does site catalyst or google analytics capture data of devices where Java script is not applied?
    If one right clicks on an exit link and opens tab in new window the exit site opens without leaving the current page or site. How does that get tracked?
    If one goes to a exit site link and uses back button to come back to the original site does it start new session?

    ReplyDelete
  9. Very nice post with amazing content visit for more info..:) Buzz App

    ReplyDelete
  10. I am just pretty happy to sign up ones own guestbook these days,Your own feedback and listed below are excellent in my opinion,incidentally I should say also definitely will teach some great supplements for your needs every.
    suppliers of Granite Stone india

    ReplyDelete
  11. I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!!!! affordable luxury holidays europe

    ReplyDelete
  12. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    Fundraising platform in India

    ReplyDelete
  13. Good info here. Thank you. BTW, are you guys still using spreadsheets for creating tracking codes? We started using Taglynx since it works with Omniture/Adobe Analytics and enforces a naming convention: http://ta.gl/daQiqW

    ReplyDelete

Feeds