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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

12-08-2019

Hi Srjith,

First, Update Your AppMeasurement (Javascript) Code to v1.6 (or higher) then

  1. Log in to Adobe Analytics and navigate to Analytics > [Admin > Report Suites > # > Edit Settings > Activity Map] > Activity Map Reporting .
  2. Activity Map collects the link data in Activity Map reports. For the activation to happen, you must first activate the variables by clicking Enable Activity Map Reports.This step adds all the Analytics dimensions that you need to collect data.
  3. After about an hour, check the Activity Map Page report, which shows all the pages where users clicked on a link.

1812156_pastedImage_0.png

1812157_pastedImage_1.png

1812191_pastedImage_2.png

Answers (21)

Answers (21)

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

01-08-2019

Dear Srijith,

Confiugre Last touch marketing channel,

Also, Try Adverstising analytics.

1805237_pastedImage_0.png

Regards,

Kumararaja K

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

23-07-2019

Hi Srijith,

Custom code

Refer the below thread:

What parameter captures Page Load Time in Adobe Analytics ?

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';

}

Let me know if you need additional details

Regards,

Kumararaja K

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

22-07-2019

Dear Srijith,

Please find the details here

How to configure % of Page viewed in Launch

Regards,

Kumararaja K

Avatar

Avatar

Balaji_V

Avatar

Balaji_V

Balaji_V

22-07-2019

Yes, through the custom code in Launch analytics extension (Ref; Screenshot)

1796444_pastedImage_0.png

It should be in do plugin function (Ref; Screenshot)

1796445_pastedImage_3.png

Please try the above and let me know

Thanks,

Balaji

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

24-07-2019

Dear Srijith,

Please mark correct if you got the information you needed to close out from unanswered.

Regards,

Kumararaja K

Avatar

Avatar

vinayp20414773

Avatar

vinayp20414773

vinayp20414773

24-07-2019

Hi,

Thanks for explaining it. I have implemented the same with Adobe Analytic Extension in Launch. Do I need to create a separate Rule after this or this will work globally with all the pages?

Regards,

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

23-07-2019

Hi Just need one more help from you regarding Page load time tracking.

Can u guide me on how to achieve this using launch. I am new to launch any help would be appreciated.

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

22-07-2019

Cheers @srijithkumarkb

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

22-07-2019

Thank U so much

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

22-07-2019

Thanks Very much will try and let u know if I get stuck somewhere.

Avatar

Avatar

vinayp20414773

Avatar

vinayp20414773

vinayp20414773

22-07-2019

Hi Balaji_V,

Have  you implemented via Adobe Launch. I noticed that "Common Analytics Plugin" extension still does not have "getPercentPageViewed" plugin listed there. Are you using it via custom code in Analytics extension?

Avatar

Avatar

Balaji_V

Avatar

Balaji_V

Balaji_V

22-07-2019

Hi Srijith Kumar,

To track the page percentage view need to use the "getPercentPageViewed" plugin to measures a visitor's scroll activity to see how much of a page the visitor viewed before moving on to another page.

Also, you can get the plugin from below link and ref; sample codes we used for our project

getPercentPageViewed

/* ******** prop38 & eVar38 Initial - Highest percentage page viewed (previous Page) ******** */

if(s.pageName) s.getPercentPageViewed();

if(s._ppvPreviousPage)

{

s.eVar38 = s._ppvHighestPercentViewed + "|" + s._ppvInitialPercentViewed;

}

if (s.eVar38) {

s.prop38 = 'D=v38';

}

Hope this helps

Thanks,

Balaji

Avatar

Avatar

vinayp20414773

Avatar

vinayp20414773

vinayp20414773

22-07-2019

For this you need to add Extension name "Common Analytics Plugins" in Adobe Launch. The same way you add Adobe Analytics. Once you add this you can use any of the plugins listed there. In the configuration section of "Common Analytics Plugins", you can find the instruction that how to use these plugins. You actually need to create a new rule that fires on the library loaded event. If you have access to Launch try this on your own.

Avatar

Avatar

kevinn604767

Avatar

kevinn604767

kevinn604767

07-10-2019

Hi Kumarararajak,

Could you please advise on my implementation?  It worked for a while but it stopped working.  I checked the s_ppv cookie is not getting generated.  My Adobe Analytics extension in launch is current v1.7.8 with AppMeasurement 2.17.0 . I have pasted the below coding in the custom code within the Adobe Analytics extension.

s.usePlugins=true

s.doPlugins=function(s) {

    /* Add calls to plugins here */

  if(s.pageName) s.getPercentPageViewed();

if(s._ppvPreviousPage)

{

s.prop7 = s._ppvPreviousPage;

s.prop10 = s._ppvHighestPercentViewed;

s.prop12 = s._ppvInitialPercentViewed; 

}

}

/******************************************* BEGIN CODE TO DEPLOY *******************************************/

/* Adobe Consulting Plugin: getPercentPageViewed v3.01 w/handlePPVevents helper function (Requires AppMeasurement and p_fo plugin) */

s.getPercentPageViewed=function(pid,ch){var s=this,a=s.c_r("s_ppv");a=-1<a.indexOf(",")?a.split(","):[];a[0]=s.unescape(a[0]);

pid=pid?pid:s.pageName?s.pageName:document.location.href;s.ppvChange=ch?ch:!0;if("undefine d"===typeof s.linkType||"o"!==

s.linkType)s.ppvID&&s.ppvID===pid||(s.ppvID=pid,s.c_w("s_ppv",""),s.handlePPVevents()),s.p _fo("s_gppvLoad")&&window

.addEventListener&&(window.addEventListener("load",s.handlePPVevents,!1),window.addEventLi stener("click",s.handlePPVevents, !1),window.addEventListener("scroll",s.handlePPVevents,!1),window.addEventListener("resiz e",s.handlePPVevents,!1)),s._ppvPreviousPage

=a[0]?a[0]:"",s._ppvHighestPercentViewed=a[1]?a[1]:"",s._ppvInitialPercentViewed=a[2]?a[2] :"",s._ppvHighestPixelsSeen=a[3]?a[3]:""};

/* Adobe Consulting Plugin: handlePPVevents helper function (for getPercentPageViewed v3.01 Plugin) */

s.handlePPVevents=function(){if("undefined"!==typeof s_c_il){for(var c=0,d=s_c_il.length;c<d;c++)if(s_c_il[c]&&s_c_il[c].getPercentPageViewed){var a=s_c_il[c];break}if(a&&a.ppvID){var f=Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Mat h.max(document.body.offsetHeight,document.documentElement.offsetHeight),Math.max(document.

body.clientHeight,document.documentElement.clientHeight));c=(window.pageYOffset||window.do cument.documentElement.scrollTop||window.document.body.scrollTop)+(window.innerHeight||doc ument.documentElement.clientHeight||document.body.clientHeight);d=Math.min(Math.round

(c/f*100),100);var e="";!a.c_r("s_tp")||a.unescape(a.c_r("s_ppv").split(",")[0])!==a.ppvID||1==a.ppvChange&&

a.c_r("s_tp")&&f!= a.c_r("s_tp")?(a.c_w("s_tp",f),a.c_w("s_ppv","")):e=a.c_r("s_ppv");var b=e&&-1<e.indexOf(",")?e.split(",",4):[];f=0<b.length?b[0]:escape(a.ppvID);var g=1<b.length?parseInt(b[1]):d,h=2<b.length?parseInt(b[2]):d;b=3<b.length?parseInt(b[3]):c ;0<d&&(e=f+","+(d>g?d:g)+","+h+","+(c>b?c:b));a.c_w("s_ppv",e)}}};

/* Adobe Consulting Plugin: p_fo (pageFirstOnly) v2.0 (Requires AppMeasurement) */

s.p_fo=function(on){var s=this;s.__fo||(s.__fo={});if(s.__fo[on])return!1;s.__fo[on]={};return!0};

/******************************************** END CODE TO DEPLOY ********************************************/

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

22-08-2019

Hi Kumararajak,

First of all thanks for helping me with all the doubts which i had.Need some help with Adobe launch with the new/repeat visitor tracking. Can you help me on how do we create a custom script in Adobe launch extension to pull this information in to an eVar in Global variables. If you can provide the script which stores this information in an eVar would be excellent. I am just the beginner hence if I am missing something please excuse.

Thanks

Srijith

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

12-08-2019

Hi Kumararajak,

How do I enable activity map for all link clicks on all webpages. I am using adobe launch for the implementation.

please let me know the steps on tracking the link clicks using this feature

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

01-08-2019

Hi Kumararajak

Thanks for the solution provided it worked. Do you know how do we integrate google marketing platform to adobe. Below are the things we need to track after integrating any help will be appreciated.

Track Advertising Campaign Impressions Served

Track Advertising Campaign Impressions Clicked

Track Information From Paid Advertising Platforms (Google Marketing Platform)

Track Information From The Trade Desk

Track Information From Affiliates (Nerdwallet, Etc.)

Track Information From Paid Social (Linkedin, Facebook, Twitter)

Track Costs From Advertising Integrations

Avatar

Avatar

srijithkumarkb

Avatar

srijithkumarkb

srijithkumarkb

24-07-2019

Thanks so much appreciated:)

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

24-07-2019

HI Vinay,

Its not mandatory to set rule to work globally with all pages. Its all depend on when you want to fire this.

Regards,

Kumararaja K

Avatar

Avatar

kumararajak

Avatar

kumararajak

kumararajak

24-07-2019

Hi Srijith,

Please follow the steps below

Place the below code in the Plugin section

/* ******** Get page load plugins - start ******** */

function s_getLoadTime(){if(!window.s_loadT){var b=new Date().getTime(),o=window.performance?performance.timing:0,a=o?o.requestStart:window.inHeadTS||0;s_loadT=a?Math.round((b-a)/100):''}return s_loadT}

/* ******** Get page load plugins - end ******** */

Custom code

s.eVar01=s.prop01=s_getLoadTime();

if(s_getLoadTime())s.events=s.apl(s.events,'event01='+s_getLoadTime(),',',1);

I just provided 01 for sample, you please check and assign the number of the evar/prop and event as per your need/avaialability

Hope this helps.

Regards,

Kumararaja K

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';

}