I have added AMP Analytics (amp-analytics) to my AMP Pages like these and the hits are recorded properly on Google Analytics. The only problem is that it is counting all my development work as hits. This will really skew my readings as many people work on the development version.
Is there a way similar to that in this answer where I can make this script run only if it's in the production domain?