-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid markup by AMP plugin with enabled JavaScript tracking #181
Comments
That's right, we always include the JS, if JS-Tracking is enabled: statify/inc/class-statify-frontend.php Lines 387 to 403 in a775618
Are you sure it isn't? We do have the statify/inc/class-statify-frontend.php Line 413 in a775618
The script tag is removed from AMP markup, but that should be OK here. Otherwise we would track twice. Nevertheless we should not include it at all, if we are processing an AMP request to remove the unnecessary warning. |
Yes, I am. Visiting https://kittmedia.com as guest adds an entry in the database table of Statify, visiting https://kittmedia.com/?amp does not. |
OK, I got the point. In fact we got 2 problems here:
|
fix AMP compatibility for Standard and Transitional mode (#181)
Every time I save a post I get two validation errors in the official AMP plugin with enabled JavaScript tracking:
Due to the fact that Statify is recommending using the JavaScript tracking method to track AMP pages as well, I would assume that it will work properly. However, as soon as this invalid markup gets removed (which is required in order to serve AMP pages), Statify isn’t able anymore to track any AMP page visits.
AMP version: 2.0.0 (already occurred in version 1.5.x)
Statify version: 1.8.0
WordPress version: 5.5.0
The text was updated successfully, but these errors were encountered: