rsavijn
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] AMP AnalyticsInstead of adding support for al sorts of analytics can you add:
GTM (Google Tag Manager) within GTM and the AMP container you can add all Analytics without having to change any code. Including Clicky etc…Here is a detailed blog post what to include..
Load the JSON configuration object as an external resource
https://www.simoahava.com/analytics/accelerated-mobile-pages-via-google-tag-manager/If you can include it in your plugin or write a tutorial so I can do it myself it would be really helpfull…
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] No Conditional for AnalyticsI’m having a similar question and I think my solution is even better.
Instead of adding support for al sorts of analytics can you add:
GTM (Google Tag Manager) within GTM and the AMP container you can add all Analytics without having to change any code. Including Clicky etc…Here is a detailed blog post what to include..
Load the JSON configuration object as an external resource
https://www.simoahava.com/analytics/accelerated-mobile-pages-via-google-tag-manager/If you can include it in your plugin or write a tutorial so I can do it myself it would be really helpfull…
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Redirects to /amp instead of ?amp@mohammed_kaludi Thanks for the fix working now.
Found something else not a bug but more a request…I use Google Tag Manager for inserting LD+JSON markup.
In wordpress I use Google Tag Manager to insert the correct code.
Far better then YOAST and way more flexible..
But for AMP pages you need separate code to inject Google Tag Manager in AMP pages:This is the code that should be at the end of the <head> tag
<!– AMP Analytics –><script async custom-element=”amp-analytics” src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script>This is there already:
But I need this at the beginning of the <body> tag:
<amp-analytics config=”https://www.googletagmanager.com/amp.json?id=GTM-MFTBG83>m.url=SOURCE_URL” data-credentials=”include”></amp-analytics>It would be nice if you could add this function inside the settings the same like with the analytics ID so we can just add the google TAG manager ID: GTM-MFTBG83
Then I would love to give you 5 stars ??
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Redirects to /amp instead of ?ampGreat… I assume this is fixed in the next update since 0.9.3 also has the same issue…
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Redirects to /amp instead of ?ampHi,
I’m having the same issue with 0.9.2.2. However I don’t use a custom FrontPage…..
If you go to a page like this: https://www.schilders.pro/schilderwerk/
You see in the source code it has the following:“<style type=’text/css’>img#wpstats{display:none}</style><link rel=”amphtml” href=”https://www.schilders.pro/schilderwerk/amp/” />”
If you go to this adres it gives a 404.
If you go to https://www.schilders.pro/schilderwerk/?amp
The AMP is working correctly…