jehna / ga-lite

Small, cacheable and open version of Google Analytics JS client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How about releasing an AMP Analytics version?

Hoodlum-Z opened this issue · comments

This plugin gets excellent reviews, but I've just realised that I am going to miss out because I've converted my WordPress to Native AMP on every page and no longer have regular Google analytics.

Will this be possible, at some point, please?

How does analytics work with AMP sites? Could you link some documentation?

Does regular analytics.js work with the AMP sites?

I did a quick check on the way AMP handles analytics, and here's my findings:

  • You should always only use <amp-analytics> tag to fire analytics events on an AMP page
  • The project endorses you to open an issue to approject/amphtml repo if an analytics vendor is not yet supported. I strongly think ga-lite should not be supported in itself, because it's a client for Google Analytics, which is already well supported by AMP
  • AMP uses its own custom component framework, which is completely different from how a "normal" website works. I think supporting amp-analytics-0.1.js feature set is outside the scope of ga-lite project.

Please correct me if I got anything wrong, didn't spend that much time on this yet. Or if you have any suggestions about how ga-lite could support AMP pages

No problem, thanks for your time.