Boxes on AMP pages

How the plugin outputs on AMP pages: everything server-side, without JavaScript, with compact CSS – and what is different for search, advisor, price alert and tracking.

The plugin recognizes AMP pages of the official AMP plugin (Standard, Transitional and Reader) and of "AMP for WP". There it outputs every box server-side – even if the loading mode is set to "Ajax" or "Hybrid", without placeholders – and loads no JavaScript of its own. You do not have to set anything for this.

CSS within the AMP limit

  • AMP allows at most 75,000 bytes of CSS per page – for theme, plugins and boxes together.
  • The plugin loads only the stylesheets of the boxes on the page, as a compact AMP version: without comments and !important, container queries as media queries, without rules that only scripts need. Your colors and sizes from the settings are included.
  • Rough figures: product box, button, text link or test rating about 26 KB, lists, grids and carousel 32 KB, comparison table 31 KB, product search 37 KB, compatibility check 39 KB, all box types on one page 68 KB. The AMP plugin also removes unused rules.
  • Images always have width and height, so the AMP plugin can convert them to <amp-img>.

Interactive boxes

  • Product search, product advisor and compatibility check: forms that reload the AMP page with the result. The advisor shows all questions at once, the search filters are always open.
  • Price alert: amp-form sends the target price and address to the same route of the plugin as usual; double opt-in as usual.
  • Rate calculator: a form that opens the provider's results in a new tab – if [plz] and [verbrauch] appear as whole values in the address and the link uses https. Otherwise only the button to the provider remains.
  • Follow-up costs: with the default assumptions, without a form to change them. Price-performance chart: without tooltip, the value table is expanded. Comparison picker: only the preset comparison. The country switcher does not exist on AMP pages.
  • Carousel: one row to swipe or scroll with all cards, without buttons and without automatic switching. The mini card on text links is off on AMP pages.

Tracking and reports

Click tracking to Matomo, GA4, GTM and Umami, the click statistics per box type and the A/B test need JavaScript and do not count on AMP pages; variant A always applies there. Counting only the views of AMP pages would distort the click rates per box type – so AMP pages are left out entirely. Through your own redirects (/go/…) the plugin counts clicks on your server, including from AMP pages.

For an amp-analytics configuration of your own (for example GA4 through the AMP plugin or Site Kit), affiliate links on AMP pages carry the variables data-vars-affilinode-shop, data-vars-affilinode-product and data-vars-affilinode-kind:

                  "triggers": {
  "affiliateClick": {
    "on": "click",
    "selector": "a[data-vars-affilinode-shop]",
    "request": "event",
    "vars": { "event_name": "affiliate_click", "shop": "${affilinodeShop}", "product": "${affilinodeProduct}", "box": "${affilinodeKind}" }
  }
}
                

Other AMP solutions switch on the AMP output with the filter affilinode_is_amp. If you have overridden the templates of search, advisor, compatibility check, price alert or rate calculator in your theme, compare them with the new versions.

All help articles · Still a question? Write to us