getPercentPageViewed plug in not working as expected
Hello,
I have implemented the getPercentPageViewed plugin, but I am not getting back any results. In installed the plugin by creating a rule and published it. I can see the function being added when I load the page.
In the custom code tracker I added code to call the function: s.getPercentPageViewed() and then I tried to get data from the values set by the plugin:
if (s._ppvPreviousPage) {
console.log('_ppvPreviousPage: ', s._ppvPreviousPage)
console.log("initialPercent=" + s._ppvInitialPercentViewed + " | highestPercent=" + s._ppvHighestPercentViewed + " | finalPercent=" + s._ppvFinalPercentViewed + " | foldsAvailable=" + s._ppvFoldsAvailable + " | foldsSeen=" + s._ppvFoldsSeen)
}
I never see any meaningful data. I also never see any of the cookies being set by the plugin, even though I do see some other analytics cookie values being set.
Any feedback would be appreciated! Thank you!