So any plans to add this feature anytime soon now?
No plans at the moment. I would need to familiarize myself with AMP in general first to gauge how much work is involved and whether it’s worth it or not: according to W3Techs only around 0.3% of all the websites out there are using AMP, at the time of writing at least; plus there’s the fact that AMP is a Google product, and Google isn’t exactly known for keeping most of their products around for long.
I have manually added the wpp.min.js code to AMP (…)
Its now recording the visits but its giving the following error (…)
Then it’s not recording visits. The error you’re seeing means that wpp.min.js cannot find some specific variables -the “JSON” data- printed onto the page via an inline script tag. Said inline script tag variables are dynamic, their values are set via PHP on page load. If you plan to continue using wpp.min.js then you’ll need to figure out how to mimic that as well.