Skip to main content

Accelerated Mobile Pages

Testimonial Widgets on AMP Pages

Valid AMP HTML forbids author script tags, apart from the AMP runtime and its own components. The StoryProof embed is a div plus an async script, so on a true AMP page it never runs: the validator flags it, or your AMP plugin strips it. That leaves three honest routes: keep the widget on the canonical page, link AMP readers to your Wall of Love, or type one approved quote into the AMP markup.

  • Confirm whether the page really is AMP
  • Keep the widget on the canonical version
  • Give AMP readers a link or a typed quote

The problem, solved

AMP and testimonials: the four situations

Each one starts from the same rule: valid AMP pages do not run your own scripts.

Situation 1 of 5

The AMP version drops our widget

The AMP HTML specification prohibits script tags except JSON types, the AMP runtime and extension scripts. An AMP plugin removes anything else, or the page fails validation.

How StoryProof solves it

Leave the two line StoryProof embed on the canonical, non AMP page that the AMP version links back to. Visitors who reach the full page see the widget there.

Checklist

Keep proof on an AMP site without breaking validation

Work through it once per template that has an AMP version. Tick each item as you confirm it.

1. Confirm what you are dealing with
2. The canonical page
3. The AMP version
4. Only if you try amp-iframe

Ticks stay in your browser for this visit. Nothing is sent anywhere.

What each AMP route gives up

RouteValid AMP?Trade off
Widget on the canonical page onlyYes, AMP page unchangedAMP readers see no proof unless they open the full page
Link to the Wall of LoveYes, a plain anchorOne tap away rather than beside the content
One typed approved quoteYes, plain textDoes not change when your widget does
amp-iframe with a framed pageOnly if every amp-iframe rule is metUntested with StoryProof; resize and position rules apply
Pasting the embed scriptNoStripped by the plugin or flagged by the validator

In StoryProof

Set it up

  1. 1

    Confirm the canonical pairing

    Check the rel="canonical" link on the AMP page and the rel="amphtml" link on the full page, so you know which template gets which change.

  2. 2

    Keep the widget on the full page

    Place the StoryProof embed in a block or template that only the canonical page uses.

  3. 3

    Add the Wall of Love link to the AMP template

    Copy your Wall of Love address from StoryProof and add it as a normal link in the AMP template, near the point where the widget appears on the full page.

  4. 4

    Validate and publish

    Run the AMP validator on one article, fix anything flagged, then publish and check both versions on a phone.

What happens next: Review the typed quote, if you added one, whenever you refresh the widget on the canonical page, so the two do not drift apart.

Before you start

What this page does not offer

  • No AMP component from StoryProof

    StoryProof does not publish an amp extension or an AMP version of its widget. The embed is a div and a script, which AMP does not run.

  • amp-iframe is untested

    Nothing here claims the widget behaves inside amp-iframe. If you try it, validate the AMP page and check the frame on several phones.

  • amp-script is not a shortcut

    amp.dev describes amp-script as running author code in a web worker with a subset of DOM APIs and a size cap. A third party embed script is not written for that environment.

  • Typed quotes are manual

    Text you type into the AMP template stays as typed until someone edits it.

FAQ

Questions people ask

Short answers to what usually comes up next.

Why does the widget appear on my normal page but not the AMP one?

The AMP format only runs the AMP runtime and its own extension scripts. The StoryProof script is a third party script, so an AMP plugin removes it or the validator rejects the page.

Can I just ignore the AMP validation error?

Then the page is no longer valid AMP, which defeats the reason for having that version. If the widget matters more on a template, ask whether that template needs an AMP version at all.

Is a link to the Wall of Love allowed on AMP?

Yes. A normal anchor to an HTTPS page is ordinary AMP HTML. The Wall of Love opens as a regular page outside AMP.

Some review vendors have AMP components. Does StoryProof?

No. A few vendors publish their own amp extension; StoryProof does not, which is why this page sticks to the link and typed quote routes.

Still have a question? Ask the StoryProof team or book a demo.

Proof that works on every version of your page

Embed the widget on full pages and share the Wall of Love everywhere else.

Sources

  1. AMP HTML Specification, amp.dev. Checked 2026-11-14.
  2. Use custom JavaScript in AMP pages, amp.dev. Checked 2026-11-14.
  3. amp-iframe, amp.dev. Checked 2026-11-14.
  4. Make your page discoverable, amp.dev. Checked 2026-11-14.

Last updated 2026-11-14.