44
Multi-Channel Data Collection John Clark Principal Consultant, Webtrends

Engage 2013 - Multi Channel Data Collection

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Engage 2013 - Multi Channel Data Collection

Multi-Channel Data Collection John Clark

Principal Consultant, Webtrends

Page 2: Engage 2013 - Multi Channel Data Collection

Agenda

•  Multi-Channel Data Collection •  X-Domain sites •  X-Domain – iFrame •  Event Data Collection •  Video Data Collection

Page 3: Engage 2013 - Multi Channel Data Collection

COLLECTING DATA FROM MULTIPLE CHANNELS

Multi-Channel Data Collection

Page 4: Engage 2013 - Multi Channel Data Collection

There’s No Magic Bullet Data Collection

Page 5: Engage 2013 - Multi Channel Data Collection

But There Are Creative Solutions

Page 6: Engage 2013 - Multi Channel Data Collection

CROSS-DOMAIN DATA COLLECTION Multi-Channel Data Collection

Page 7: Engage 2013 - Multi Channel Data Collection

How cross domain tracking works

•  The sites create a shared cookie •  Webtrends analysis engine glues the data

together

Page 8: Engage 2013 - Multi Channel Data Collection

Cookies

SiteA.com SiteB.com

Cookie store for siteA.com on your computer Cookie store for siteB.com

on your computer

SiteB.com CANNOT read the data from the cookies set in SiteA.com and vice-versa, Thus SiteB.com does not know if you ever visited SiteA.com or what you did there

Page 9: Engage 2013 - Multi Channel Data Collection

Cookies

SiteA.com SiteB.com

Cookie store for siteA.com on your computer Cookie store for siteB.com

on your computer

If SiteA.com and SiteB.com load Webtrends, a third-party cookie (Webtrends) can be generated that allows data to be passed (visitor id) between the sites. This allows cross-domain reporting.

Webtrends.com Webtrends.com

Page 10: Engage 2013 - Multi Channel Data Collection

Cookies SiteA.com

Cookie store for siteA.com on your computer AND webtrends.com

Webtrends.com

SiteB.com

Cookie store for siteB.com on your computer AND webtrends.com

Webtrends.com

Both can read the same 3rd party cookie set at webtrends.com

Webtrends cross-domain report

Page 11: Engage 2013 - Multi Channel Data Collection

Cross-domain limitations

•  If third-party cookies are disabled or blocked, cross-domain reporting will not function.

Page 12: Engage 2013 - Multi Channel Data Collection

X-CROSS-DOMAIN IFRAME DATA COLLECTION

Multi-Channel Data Collection

Page 13: Engage 2013 - Multi Channel Data Collection

Data Collection from iFrames

•  iFrame Tracking – Requires adding some code to the iFrame

•  Method 1: Add full Webtrends code to iFrame •  Method 2: Add postMessage to iFrame

Page 14: Engage 2013 - Multi Channel Data Collection

Method 1: Add full Webtrends code to iFrame

•  Requires code be added to the iFrame •  Larger foot print •  Acts as second page load when iFrame loads •  Needs to utilize 3rd party cookie for x-domain

Page 15: Engage 2013 - Multi Channel Data Collection

Method 2: Add postMessage to iFrame

•  Requires code to be added to the iFrame •  Very small foot print •  Sends tracking message to parent window

so all tracking comes from the home domain

Page 16: Engage 2013 - Multi Channel Data Collection

Data Collection from iFrames

•  Cross-domain iFrame pulls content from one domain into another

SiteA.com

SiteB.com

<iframe id="myiframe" src="http://www.sweetspottaxidermy.com/testiframe.html" width="420" height="380"></iframe>

Page 17: Engage 2013 - Multi Channel Data Collection

Data Collection from iFrames

•  If the third party can add some code to the iFrame we can still track the visitor behaviors.

•  HTML5 provide us a mechanism for the iframe to communicate with the parent window with an event listener

Page 18: Engage 2013 - Multi Channel Data Collection

Site B sends the tracking message to Site A

<script> window.addEventListener("message", function(e) { Webtrends.multiTrack({argsa: e.data.split(",")}) } ,false); </script>

<input type="Button" value="Test" name="Test" onClick="dcsMultiTrack('DCS.dcssip',window.location.hostname,

'DCS.dcsuri',window.location.pathname, 'WT.ti',document.title, 'WT.event','Test Button', 'WT.dl','99')">

<script> dcsMultiTrack = function() {

var m = Array(); // stringify the arguments for (obj in arguments) m.push(arguments[obj]); // send to the listner in the parent window window.parent.postMessage([m], "*");

} </script>

SiteA.com

SiteB.com

Page 19: Engage 2013 - Multi Channel Data Collection

Cross-Domain iFrame Demo Code in IFrame

Code in parent window

Page 20: Engage 2013 - Multi Channel Data Collection

EVENT COLLECTION Multi-Channel Data Collection

Page 21: Engage 2013 - Multi Channel Data Collection

Event Data Collection

•  Its becoming ever more popular to collect not only page load data, but event based data to understand how visitor are interacting with objects on pages

Page 22: Engage 2013 - Multi Channel Data Collection

Selectors •  Markup

<input type="checkbox" class=“filterOption”> Option 1</input> <input type="checkbox" class=“filterOption”> Option 2</input> <input type="checkbox" class=“filterOption”> Option 3</input>

Page 23: Engage 2013 - Multi Channel Data Collection

Event Data Collection •  Collecting event based data is easy with Webtrends!

–  Track when a visitor clicks a checkbox in a filter object jQuery Selector

jQuery('.filterOption').live('click', function (evt) { var e = evt.target || evt.srcElement; Webtrends.multiTrack({ element: this, argsa: ["DCS.dcssip", window.location.hostname,

"DCS.dcsuri", window.location.pathname, "WT.ti", document.title, "WT.dl", "31", "WT.e_nam", jQuery(e).text(), "WT.e_typ", 'filter', "WT.e_state", e.checked?’true’:’false’]

}) });

Webtrends Selector dcs.addSelector(‘.filterOption'’, transform: function (dcsObject, o) {

var e = o[‘element’]; o.argsa.push ("DCS.dcssip", window.location.hostname,

"DCS.dcsuri", window.location.pathname, "WT.ti", document.title, "WT.dl", "31", "WT.e_nam", jQuery(e).text(), "WT.e_typ", 'filter', "WT.e_state", ", e.checked?’true’:’false’);

} });

•  Using this technique you can track almost any page event on any object. (hoverovers, focus, clicks, tap, swipe, …)

Page 24: Engage 2013 - Multi Channel Data Collection

Keys For Event Data Collection

•  Set the page determination level! – WT.dl defines if the hit is counted as a page

view or an event. •  0 = page view •  Non-zero = event

–  If you forget to set the dl value, your page

view will be inflated

Page 25: Engage 2013 - Multi Channel Data Collection

WHAT ABOUT VIDEO EVENTS?

Multi-Channel Data Collection

Page 26: Engage 2013 - Multi Channel Data Collection

Geek alert

! There are 10 kinds of people, those that will understand this section and those that won’t

Page 27: Engage 2013 - Multi Channel Data Collection

HTML5 Event Listeners To The Rescue

e.addEventListener('play', function () {h5v_tracking('play', e, states)})

Key HTML5 Video events •  Play •  Pause •  Error •  Timeupdate •  Seeking •  Seeked •  Ended

Page 28: Engage 2013 - Multi Channel Data Collection

Bind to all the events e.addEventListener('play', function () {multitrack(…)}); e.addEventListener('pause', function () {multitrack(…)}); e.addEventListener('ended', function () {multitrack(…)}); e.addEventListener('error', function () {multitrack(…)}); e.addEventListener('timeupdate', function () {multitrack(…)}); e.addEventListener('seeking', function () {multitrack(…)});

e.addEventListener('seeked‘, function () {multitrack(…)});

Page 29: Engage 2013 - Multi Channel Data Collection

Not All Players Behave Are The Same

State:  PLAY State:  READY

State:  PAUSE

State:  END

State:  SEEK

State:  SEEK

State:  SEEK

State:  SEEK Ac(on:  Pause  Event:  Pause Ac(on:  Play

Event:  Resume

Ac(on:  Seek Event:  Seek

Ac(on:  Pause Event:  Null

Ac(on:  Stop Event:  Stop

Ac(on:  Play Event:  Play

Ac(on:  Seek Event:  Seek

Ac(on:  END Event:  Null Ac(on:  Play

Event:  Play

Ac(on:  Complete Event:  Complete

Ac(on:  Seek Event:  Seek

Ac(on:  Ready Event:  Null

Ac(on:  Seek Event:  Seek Ac(on:  Play

Event:  Null

Ac(on:  Progress Event:    Beacon  or  Event:    Quar(le  or  Event:  Null

Page 30: Engage 2013 - Multi Channel Data Collection

State Machine For Event Tracking

Page 31: Engage 2013 - Multi Channel Data Collection

HTML5 Video Data Collection

Page 32: Engage 2013 - Multi Channel Data Collection

Measurement

Page 33: Engage 2013 - Multi Channel Data Collection

No Clear Standards - Yet […] standard metrics have yet to be established. One-third said their clients considered unique viewers to be the best way to measure audience. Another one-quarter said it was target impressions. […]

Source: http://www.emarketer.com/Articles/Print.aspx?R=1009195

Page 34: Engage 2013 - Multi Channel Data Collection

Action Script (flash) •  Requires developers

integrate code into the flash objects

•  Use JavaScript

•  Use Webtrends data insertion API

•  Use Hybrid model

Page 35: Engage 2013 - Multi Channel Data Collection

Action Script Events (flash)

Page 36: Engage 2013 - Multi Channel Data Collection

Data Collection with Data Insertion

•  Data collection with mobile apps is done the same way as with Flash

•  Collect data from almost ANYTHING using the data collection API

Page 37: Engage 2013 - Multi Channel Data Collection

Collect Data From Almost Anything

•  This Power Point presetation is being tracked with a simple macro and the data insertion API

Page 38: Engage 2013 - Multi Channel Data Collection

Webtrends Streams

Page 39: Engage 2013 - Multi Channel Data Collection

Top Take-Aways

•  Cross-domain tracking requires 3rvd party cookies

•  iFrame tracking appears complicated, but its not •  Event level tracking is becoming more popular,

and it easy to implement •  Use the DC API for site assets that don’t support

JavaScript •  Video tracking is rapidly expanding

Page 40: Engage 2013 - Multi Channel Data Collection

How Can We Help?

•  Contract Webtrends Consulting Services to assist with your data collection needs!

Page 41: Engage 2013 - Multi Channel Data Collection

Rate Session

& Speakers/ Panelists

Page 42: Engage 2013 - Multi Channel Data Collection

Sessions You Must See

•  Wed @ 11:10am : Why Upgrade to Webtrends 10.2 Tag

•  Tues @ 2:10pm: APIs: An Abundance of Flexible Options

Page 43: Engage 2013 - Multi Channel Data Collection

Thank You

John Clark, Principal Consultant Webtrends

[email protected]

Page 44: Engage 2013 - Multi Channel Data Collection