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.
Solved! Go to Solution.
Hi Srjith,
First, Update Your AppMeasurement (Javascript) Code to v1.6 (or higher) then
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.
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
/* ******** 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
s.prop38 = 'D=v38'; Can you please tell me what 'D=v38'; mean
Views
Replies
Total Likes
D=v38 means duplicate evar38.
so:
s.prop38 = 'D=v38';
means
s.prop38 = eVar38
Views
Replies
Total Likes
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?
Yes, through the custom code in Launch analytics extension (Ref; Screenshot)
It should be in do plugin function (Ref; Screenshot)
Please try the above and let me know
Thanks,
Balaji
Dear Srijith,
Please find the details here
How to configure % of Page viewed in Launch
Regards,
Kumararaja K
Thanks Very much will try and let u know if I get stuck somewhere.
Thank U so much
Cheers @srijithkumarkb
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.
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
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';
}
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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,
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
Views
Replies
Total Likes
Thanks so much appreciated:)
Views
Replies
Total Likes
Dear Srijith,
Please mark correct if you got the information you needed to close out from unanswered.
Regards,
Kumararaja K
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
Views
Replies
Total Likes
Dear Srijith,
Confiugre Last touch marketing channel,
Also, Try Adverstising analytics.
Regards,
Kumararaja K