| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) |
| Lines of code | 1439 |
| Technical Name |
d_website_amp |
| License | OPL-1 |
| Website | https://duong-odoo-apps.odoo.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) |
| Lines of code | 1439 |
| Technical Name |
d_website_amp |
| License | OPL-1 |
| Website | https://duong-odoo-apps.odoo.com |
AMP-ready mobile pages for Odoo Website
Create lightweight AMP-compatible versions of your Odoo website pages to improve mobile page experience, reduce unnecessary JavaScript, optimize media rendering, and support technical SEO readiness.
The module automatically generates AMP alternatives for public website pages, adds canonical and amphtml discovery links, converts supported media and layout elements into AMP-friendly markup, and provides configuration options for how AMP pages are served.
AMP is not a guaranteed ranking boost. It is a technical framework that can help deliver faster mobile landing pages when pages are valid, discoverable, and correctly linked with their canonical versions.
One toggle per page
Turn on AMP Variant on a public website page. Odoo derives the AMP version from the canonical page and regenerates it when the page is saved, so the AMP alternative follows the content you already maintain.
- Per-page AMP opt-in from website page management.
- Canonical and amphtml link pairing for search engine discovery.
- AMP output generated from existing Odoo website content.
- Useful for public landing pages and anonymous mobile visitors.
Template modes and URL options
Configure how AMP alternatives are exposed for standard website pages. The canonical page remains the main source of truth, while AMP pages can be served as paired alternatives or, for AMP-first sites, at the canonical URL.
- Template mode: Standard, Transitional, or Reader.
- Paired AMP URL format: suffix, query parameter, or path prefix for standard pages.
- Mobile redirect: optional redirection for public mobile visitors.
- URL note: blog and eCommerce AMP URLs use the
/ampsuffix format in this version.
AMP-friendly conversion
The converter transforms supported Odoo page content into AMP-compatible output and removes unsupported JavaScript from the AMP page.
- Images, videos, iframes, YouTube, and Vimeo embeds can be converted to AMP components.
- Supported interactive layouts such as carousels, accordions, lightboxes, and forms are handled where possible.
- Inline styles are consolidated into AMP custom CSS with size control.
- Only AMP component scripts needed by the page are injected.
AMP form conversion is designed for common Odoo website forms. Custom forms, third-party form handlers, or heavily customized flows may require AMP-compatible JSON responses and proper CORS headers.
Built for the AMP module suite
This module is the core AMP engine. Companion modules add AMP support for blog posts, eCommerce product pages and shop listings, validation workflows, and editor-side compatibility badges.
- Core AMP converter and validator.
- Canonical and amphtml discovery link support.
- Curated AMP CSS bundle for lightweight mobile pages.
- Compatible with AMP validation and editor guidance modules.
Extension Modules
Extend Website AMP with specialized modules for different website content and publishing workflows:
- Website AMP - Blog - Create AMP-compatible blog post pages for lightweight mobile reading and AMP discoverability.
- Website AMP - eCommerce - Add AMP-compatible product pages and an optional AMP shop listing for mobile product discovery.
- Website AMP - Validation Dashboard - Monitor AMP issues, validation status, affected URLs, and fallback decisions across your website.
- Website AMP - Editor Readiness Badges - Show AMP compatibility badges for Odoo website snippets inside the website editor.
Recommended use cases
- Public landing pages
- Mobile search traffic pages
- Content marketing pages
- High-traffic anonymous website pages
Checkout, payment, portal, backend, and highly interactive authenticated flows should normally remain on the standard Odoo website.
Documentation
Open the Documentation tab on the right of this page for setup and usage guidance.
Support
Contact us at duongodooapps@gmail.com
Website AMP — Setup & Usage Guide
d_website_amp adds Google AMP (Accelerated Mobile Pages) variants to your Odoo website pages. The AMP version is derived automatically from the page you already edit and kept in sync — there is no separate AMP editor.
About AMP — and why it's worth it
AMP (Accelerated Mobile Pages) is an open-source, Google-backed HTML framework for pages that load almost instantly on mobile. Valid AMP pages can be pre-rendered and served from the Google AMP Cache, so visitors arriving from mobile search see your page immediately.
A note on honesty: AMP is not itself a Google ranking factor (Google dropped that requirement in 2021) — page experience / Core Web Vitals are what rank, and AMP delivers that speed by construction. Use AMP as a fast front door for anonymous search traffic.
AMP is a mature, widely trusted open standard. Authoritative sources:
- Official project & docs: https://amp.dev/
- Google Search Central — AMP: https://developers.google.com/search/docs/crawling-indexing/amp
- AMP Validator (verify any page): https://validator.amp.dev/
1. Install
- Install the Website AMP app (d_website_amp).
- The companion app Website AMP - Editor Readiness Badges installs automatically alongside the website editor.
2. Enable AMP on a page
- Go to Website → Site → Pages.
- The list shows an AMP column. Open a page's properties and switch on AMP Variant.
- Odoo immediately builds the AMP version and exposes it at the page's AMP URL (by default /your-page/amp). Use Preview AMP to open it, or Regenerate AMP to rebuild it on demand.
The AMP variant is re-generated every time you save the canonical page, so the two never drift.
3. Configure template mode, URL format & redirects
Go to Website → Configuration → Settings, section AMP (Accelerated Mobile Pages):
- Template mode
- Transitional (default) — the canonical URL serves the normal page and a paired AMP URL is published separately.
- Standard — the AMP version is served directly at the canonical URL.
- Reader — paired URLs using the dedicated minimal AMP template.
- Paired AMP URL format — choose /page/amp (suffix), /page?amp=1 (query) or /amp/page (prefix).
- Auto-redirect mobile traffic — optionally 302-redirect anonymous mobile visitors to the AMP URL.
- Bypass AMP for logged-in users (recommended, on by default) — portal and internal users always get the full Odoo page; AMP URLs redirect them to the canonical page. This keeps cart, portal and personalization working.
4. How the AMP page is built
The converter turns your page into valid AMP automatically:
- <img> → <amp-img>, <video> → <amp-video>, YouTube/Vimeo embeds → <amp-youtube> / <amp-vimeo>.
- Bootstrap carousel → <amp-carousel>, accordion → <amp-accordion>, modal → <amp-lightbox>, <form> → an AMP action-xhr form.
- Inline styles are hoisted into a single <style amp-custom> kept under AMP's 75 KB limit; all custom JavaScript is removed.
5. Verify
On the canonical page, view source and confirm the discovery link is present:
<link rel="amphtml" href="https://your-domain.com/your-page/amp"/>
Open the AMP URL and confirm the page starts with <html amp> and contains a single <style amp-custom>. To validate against the official spec, run the AMP validator on the rendered URL:
npx amphtml-validator https://your-domain.com/your-page/amp
Notes & limitations
- AMP pages depend on the AMP runtime served from https://cdn.ampproject.org. Images and interactive components only render once that runtime loads in the visitor's browser; this is normal AMP behavior.
- AMP is best used as a fast entry point for anonymous search traffic. Keep Bypass AMP for logged-in users enabled so signed-in customers always use the full store/portal.
Support
Questions or issues: duongodooapps@gmail.com
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module