Open westonruter opened 4 years ago
Reported in 3321850-zen
Please when is this issue going to be resolved? It doesn't make sense to have an AMP site without the Jetpack stats functioning well. How do we monitor performance then?
@opeedo We have not made progress on this yet, but we'll update this issue when we do.
Any progress on this issue? There are still no clicks being recorded on my site.
Any progress?
any update, it's been a few years now.
Support References
This comment is automatically generated. Please do not edit it.
I gave up trying to use AMP two years ago. I no longer care if this is fixed.
As reported in an AMP plugin support forum topic:
The user is in the AMP plugin's Standard mode, so no non-AMP pages are being served. If not in Standard mode, there would be outbound clicks registered for non-AMP pages.
It appears that AMP-compat for the Stats module is currently limited to pixel tracking:
https://github.com/Automattic/jetpack/blob/ec48e84b8d68162e0bb7d70cc4cf28c2a63c94ab/modules/stats.php#L269-L279
So the AMP version only implements
view
but notclickTrackerInit
as in the non-AMP version:https://github.com/Automattic/jetpack/blob/ec48e84b8d68162e0bb7d70cc4cf28c2a63c94ab/modules/stats.php#L258-L263
It appears that using
amp-pixel
is too rudimentary for the needs of the Stats module, and thatamp-analytics
with an in-house configuration should be used instead.See AMP documentation on tracking page clicks.
Steps to reproduce the issue
c.gif
request is spawned upon clicking the link, e.g.https://pixel.wp.com/c.gif?s=2&u={urlL}&r=&b=123456789&p=1235&rand=0.6138363861055471
What I expected
Outbound link clicks should be tracked.
What happened instead
Only page views are tracked.