Elephants and Analytics

"Elephant in the corner" is an English idiom for an obvious truth that is being ignored or goes unaddressed.
  • RSS
  • Home
  • Posts
  • Archives
  • About me
  • Suggest a topic
  • Consulting

Time spent by Traffic Source

telleston | December 4, 2011

One of the things that’s not “native” to SiteCatalyst reporting is Time Spent by Referring Domain, which can be quite a useful segment to use.  So here’s a quick tip to get it working.

The report below shows the end result; Time Spent by Traffic Source (a new custom insight prop).  The entry marked as “direct” are visitors that had no referrer string.

time_by_referrer

Time Spent is enabled by pathing a traffic prop (custom insight).  So to get Time Spent by Traffic Source you need to do a couple of little things.

Step 1 – Create a Prop

In the admin, create a new traffic prop and an eVar (if you want conversions by this too).  I named mine Traffic Source (p) and Traffic Source (c) – just to not confuse them with the native Referring-based reports.

Then ask Client Care to enable pathing on the traffic prop.

Step 2 – Modify your s_code

The following snippet of code should be added into your s_code, along with all of your other rules.  I’ve used s.prop7 and s.eVar16 for my new Traffic Sources reports.

/* Set persisting referrer */
if(document.referrer){
s_trafficsource = document.referrer.split(‘/’)[2]; // get the host
    if(s_trafficsource != window.location.host){
        s.prop7=s.getAndPersistValue(s_trafficsource,’s_referrer’,7);
        s.eVar16 = s.prop7;
        }else{
        // same referrer as site
        s_prop7=s.getPreviousValue(s.prop7,’gpv_ref’);
        s.prop7=s.getAndPersistValue(s.eVar16,’s_referrer’,7);
        s.eVar16=s.prop7
        }
    }else{
    // no referrer – so direct
    s_trafficsource = "direct";
    s.prop7=s.getAndPersistValue(s_trafficsource,’s_referrer’,7);
    s.eVar16=s.prop7
    }
s.prop7=s.getAndPersistValue(s.eVar16,’s_referrer’,7);

You’ll see from the above that it also uses the getAndPersistValue and getPreviousValue plugins.  If you don’t have them they are available for download through the Help section of SiteCatalyst.

Basically, if there’s a referring domain, it’s initially set and persisted through the getAndPersistValue plugin.  Then it’s passed from page to page via the combination of getPreviousValue and getAndPersistValue.

For those that don’t have a referrer, then it’s just set as "direct” initially and then persisted.

And that’s all there is to it.  The pathing reports that this enables actually don’t show too much so you might want to disable them (they do show multi-traffic sources during the same visit though).

Related Posts

  • Flowplayer and SiteCatalyst v15
  • Success Event Pathing
  • Brightcove Video in SiteCatalyst 15
  • What are our members doing?
  • Hello 15!
  • Elusive engagement – Part II – Visitor scoring
  • Deeper internal search insights that’ll help with content needs
  • Moving beyond business-based segmentation
  • Migration frustration – SiteCatalyst 15
  • New products announced at Adobe Omniture Summit 2011
Tim Elleston is Director at Digital Balance. You can follow him on Twitter at http://twitter.com/timelleston. Please feel free to use the comment facility below.
Categories
SiteCatalyst
Tags
getAndPersistValue plugin, getPreviousValue plugin, Time spent by Traffic Source
Comments rss
Comments rss
Trackback
Trackback

« Flowplayer and SiteCatalyst v15 The Google sampling effect »

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Adobe Certified Expert - Omniture Implementation
Adobe Customer Advisory Board

Come and see us…

Come take a look at what we're up to at digital balance

Join the elephants email list

Sign up to receive emails about new posts



* = required field
unsubscribe from list

powered by MailChimp!

Suggest a topic

If you'd like me to write about something specific, let me know

Search

Analytics

  • Brightcove
  • Omniture
  • Omniture Blogs
  • The Omni Man Blog
  • WebAnalyticsLand

General Links

  • Murdoch University

Recent Posts

  • Discover v3 – it’s the new black
  • The Google sampling effect
  • Time spent by Traffic Source
  • Flowplayer and SiteCatalyst v15
  • Test&Target versus Google Website Optimizer

Categories

  • Basic metrics (3)
  • Discover (5)
  • SAINT (2)
  • Search&Promote (3)
  • SiteCatalyst (33)
  • Strategies (10)
  • Test&Target (3)

Tags

basic metrics behavioural targeting bounce rate Brightcove campaigns campaign stacking content relevance Conversions Data warehouse Discover engagement evars fundamental metrics getPreviousValue plugin implementation internal search keywords measurement strategy measuring engagement Omniture optimisation optimization page views pathing props saint Search Segmentation seo SiteCatalyst Strategies strategy targeting content Test&Target Testing time on site value video visitor engagement visitor ID visitor interaction visitors visitor scoring visits web analytics strategy

RSS Our thoughts at Digital Balance

  • Has Google shot themselves in the foot?
  • Action is the antidote to fear
  • What is it that makes a good digital team great?
  • What to do when inspiration doesn’t strike
  • Is your kitchen humming along?
  • I didn’t listen to my own advice
  • I didn’t mean to get distracted
  • 5 simple steps to make it count
  • how to make sure everyone is created equal in an agency relationship
  • It took a rush of Coldplay’s blood to the head get me started
rss