Percentage Viewed Plugin
Hi,
Currently I am working on migration from AA extension to AEP extension, so we are using percentage view plugin to get percentage view, but this plugin is not supported in AEP extension. So, I have use this code in custom code in the rule.

And, I have created custom variable for pageview custom, it is working but sometime it shows negative value i.e.

I don't understand the reason behind it any inputs will be appreciated.
Thanks!!
Bindu Kumari