getPercentPageViewed v3.0 plug in question | Community
Skip to main content
Gokul_Agiwal
Community Advisor
Community Advisor
January 18, 2019
Solved

getPercentPageViewed v3.0 plug in question

  • January 18, 2019
  • 1 reply
  • 2991 views

Hello Team,

I am using the new plugin getPercentPageViewed v3.0 with getPreviousValue​ but somehow its not working correctly.

I have implemented like below

Added both the plugin code in PLUGIN Section, and doPlugin section added below code.

s.prop9 = s.getPreviousValue(s.pageName, 's_ppn', '');

if (s.pageName !== undefined) {

var ppv = s.getPercentPageViewed(s.pageName); // passing the page name as parameter

if (ppv) {

s.prop9 = ppv[0]; // contains the previous page name

s.prop55 = ppv[1]; // contains the total percent viewed

s.prop56 = ppv[2]; // contains the percent viewed on initial load

s.prop54 = ppv[3]; // contains the total number of vertical pixels

}

}

getting the result as undefined. s.getPercentPageViewed(s.pageName) is not executing. Even though I tried to debug the plugin code, it says pid is not defined.

Please check attached screenshot

Can someone please help ?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Charles_Thirupathi

Hi Gokul,

In  s.getPercentPageViewed(s.pageName) function call don't pass s.pageName as parameter since it default to Analytics Pagename variable.

Thanks,

Charles

1 reply

Charles_Thirupathi
Charles_ThirupathiAccepted solution
Level 4
February 19, 2019

Hi Gokul,

In  s.getPercentPageViewed(s.pageName) function call don't pass s.pageName as parameter since it default to Analytics Pagename variable.

Thanks,

Charles