Is there a way to create google amp for dynamic web pages? My website contains form elements like lead forms, on-page comments etc. I am impressed by AMP and would like to implement it through out my website.
However, there became real issues with Google AMP, and prioritizing only one way to build websites has its challenges. As a result, Google announced that as of June 2021, they will no longer be giving preference to AMP websites and won't display an AMP badge.
In order to set up AMP on your WordPress site, you'll first need to install the AMP plugin. Go to Plugins > Add New and search for AMP. Once you find it, simply install and activate it. Then, head on over to Appearance > AMP to see what your site looks like on mobile devices using Accelerated Mobile Pages.
Google Search indexes AMP pages to provide a fast, reliable web experience. When an AMP page is available, it can be featured on mobile search as part of rich results and carousels.
It depends on how "dynamic". AMP can be considered a stripped down version of HTML. You aren't allowed include arbitrary scripts, but Google maintains a set of approved AMP extensions that can let you do things like add accordions, lightboxes, ad units, etc. You also cannot include form tags or any of the HTML form elements (input, select, textarea, etc.). However, you can use amp-iframe
to embed another webpage within your AMP page. This other webpages doesn't have to conform to the AMP specifications, so you're free to add a form in that way. Just remember that the standard iframe rules apply: you have to have a fixed height for the frame (which can be problematic for multiple step forms where the amount of fields change page to page) and your success response will be confined to the iframe (meaning you can't redirect the entire page somewhere else). Still, it may be a workable solution for you.
In general, AMP pages are supposed to be simple. That's kind of the idea. Google's restrictions are there to force you to keep things simple. The best use of AMP remains pure content pages such as blog posts, news, and other article-type things. You can push it farther, but the restrictions start to become a little more irritating the farther you try to push. There's a fair bit of trial and error, in my experience, trying to obtain a close approximation to what you would ideally like to have.
The good thing about AMP is its totally opt-in and and piecemeal. You don't have to convert your whole site. You can just do a single page, if you want. This lets you get your feet wet, provide a little extra juice to your site, and if you can't do what you want with AMP, you can just use a standard web page, without penalty.
I just finished creating an AMP engine for all 8 of our ABC news sites. The biggest issue i ran into is having to server everything up via HTTPS for AMP tags. Our video player needs extensive external JS to support for it's playing with preroll and ads. We also do a lot of advertising with multiple vendors on the pages. You'll definitely want to read up on AMP as much as possible before diving in.
It was stated above by @chris_pratt that forms tags and elements are not allowed in AMP pages. Support has been added for embedding forms in AMP pages.
The biggest things to be aware of with AMP:
Bottom line is AMP is very fast for loading pages but their are a lot of restrictions and requirements that must be met in order to actually display AMP versions. Once you understand the limitations you should be able to plan your attack accordingly.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With