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