Scroll Depth Tracking

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

18-07-2019

I am trying to track percent page viewed on all pages using Adobe Launch. I am new to Adobe so could any one help me on how we have to implement this using Launch.Please help me with the steps on how to achieve this.

View Entire Topic

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

23-07-2019

Hi Kumararaja,

Thanks for sending additional info regarding the % pageviewed, To capture the page load time can u give an expression how to capture the values in and evar or an event.

How do we declare the values that need to be captured in an eVar or would it be an event. (please provide an example)

****This is the custom script*****

function getPageLoadTime() {

if (typeof(performance) !== 'undefined' && typeof(performance.timing) == 'object') {

var timing = performance.timing;

// fall back to less accurate milestones

var startTime = performance.timing.redirectStart ||

performance.timing.fetchStart ||

performance.timing.requestStart;

var endTime = performance.timing.domContentLoadedEventEnd ||

performance.timing.domInteractive ||

performance.timing.domComplete ||

performance.timing.loadEventEnd;

if (startTime && endTime && (startTime < endTime)) {

return (endTime - startTime);

}

}

return 'data not available';

}