Skip to main content

Snippet

<iframe
  src="https://cdn.ethioreview.com/widget-frame.html?publicKey=pk_live_...&businessId=org_123"
  loading="lazy"
  sandbox="allow-scripts allow-same-origin allow-popups"
  style="width:100%;height:420px;border:0;"
></iframe>

Helper (npm)

import { buildIframeSnippet, attachIframeResizeListener } from "@ethioreview/review-widget-web-iframe";

const html = buildIframeSnippet({
  host: "https://cdn.ethioreview.com",
  publicKey: "pk_live_...",
  businessId: "org_123",
  height: 420,
});
Review clicks inside the iframe post a navigate message to the parent window. Use attachIframeResizeListener for auto-height.
Include allow-popups in the sandbox attribute so review links can open EthioReview in a new tab.
Web Component →