Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Roland

    (@rolandfarkas)

    Hi @maximusperepel96,

    The plugin detects if the AMP plugin is active and it will load the GA4 analytics configuration created by David V. directly from your own domain and also loads the GA4 MEASUREMENT ID with some settings.

    If you check the screenshots off the plugin, there is a preview of the front end html inspected. You can inspect your html from your browser, and search for the example privew provided. You should be able to verify your GA4 MEASUREMENT ID using this method.

    Hope this helps

    Thread Starter Roland

    (@rolandfarkas)

    defeated-leopard.jurassic.ninja/?test=test+this+out+as+it+breaks+your+site

    I have uninstalled Jetpack, installed AMP, enabled standard mode, selected a static homepage, and changed the permalink settings to Post Name.

    So by the looks of it, a combination of the above settings is the cause.

    Thread Starter Roland

    (@rolandfarkas)

    Hey @milindmore22,

    I’ve tried this on 3 different nginx servers, I’ll spin up an apache server and test on that too. I haven’t had similar problems in the past and the latest WordPress update might have triggered the problem.

    My WP nginx cfg part isn’t much different to the basic one. I also tested on PHP 7.4 & 8.

    @westonruter I only use standard mode

    FYI A user commented on the re post of this issue on the amp slack showing his url and having the same problem

    Forum: Plugins
    In reply to: [AMP] Custom AMP Theme
    Thread Starter Roland

    (@rolandfarkas)

    Got ya, I’ll update my code to use bento and the theme will not serve amp on its own so its the users choice to use the amp plugin or not. (I started this pre bento so I was just happy that I can use it in Gutenberg, but now I understand what did you mean by the above, just tested it with twenty twenty one) Thanks for all the help @westonruter this makes complete sense and I hope it helps fellow developers! I am closing this.

    Forum: Plugins
    In reply to: [AMP] Custom AMP Theme
    Thread Starter Roland

    (@rolandfarkas)

    @westonruter re bento, i have seen it I am very happy about it as this might allow us to use amp (like carusel etc) in the Gutenberg editor? Re homepages and WooCommerce, I already thought about them, I have managed to make WooCommerce fully work with my theme, and its all amp. Re homepages, if the whole site skeleton is built on amp, you can just use the Gutenberg editor to build your pages/posts including the home page, so don’t need page builder plugins. Any thoughts on this?

    Forum: Plugins
    In reply to: [AMP] Custom AMP Theme
    Thread Starter Roland

    (@rolandfarkas)

    Hey @westonruter,

    Thanks for the speedy response to this. My theme is fully amp. I have built a number of sites using only amp, and I really liked everything about it and I am sure our users too. I do not use any custom scripts, all pages are amp and the user don’t have a choice to actually opt out, its fully amp. I first used wp_dequeue_script for the default WordPress scripts, emojies which i mentioned above, but then I have started to test compatibility and kept using the amp plugin to exclude any scripts including the core WordPress scripts. I have also tried to make WooCommerce work this way, and still the amp plugin have to strip out scripts which WooCommerce uses, so ideally I would require the users to use this amp plugin nothing else and they can also use WooCommerce which is a bonus. Now I think I have to use wp_dequeue_script for all the WooCommerce scripts as well. So the theme can be used with or without this plugin, but in the documentation I will mention to use this plugin if they would like to use different plugins and make sure the page stays valid amp. Is there a full amp theme in the WordPress repo? I only found a few amp ready themes, but havent seen any full amp themes yet. Would this be actually possible?

    Forum: Plugins
    In reply to: [AMP] Custom AMP Theme
    Thread Starter Roland

    (@rolandfarkas)

    Hey @milindmore22,

    Thanks for your reply. Okay so the best thing to do if I would like to publish a full amp theme to the theme repo to exclude all WordPress scripts, styles, emojies, manually, so it works without the amp plugin, and then recommend it. It just seemed unnecessarily with this plugin installed, as some of my functions will run and do nothing as this plugin will overwrite everything anyway..

    I haven’t actually seen any full amp theme available yet, have you? Do you think there is a reason for this?

    Re: Theme Review Team, I wrote to @westonruter on Slack and he asked me to post the question here. So I am patiently waiting for them to get to this post ??

    Thanks again!

    • This reply was modified 3 years, 9 months ago by Roland.
Viewing 7 replies - 1 through 7 (of 7 total)