Choose Your Integration Path

Three ways to add Returning.AI loyalty widgets to your platform. Choose based on your requirements.

Feature Comparison

A side-by-side comparison to help you pick the right approach.

FeatureWidget SDKIframe EmbedServer Proxy
Setup complexityLow - single script tag or npm installLow - paste an iframe tagMedium - requires backend code
Framework supportReact, Vue, Angular, Svelte, plain HTMLAny - works in static HTML, CMS, no-code toolsAny - your server renders the page
Security modelAttribute auth via data-* or token auth via auth-urlAttribute auth via URL params or token auth via postMessageFull server-side token auth
CustomizationCSS custom properties, Shadow DOM isolationTheme and locale via URL parametersFull control - transform data before rendering
Bundle size impact~15 KB gzipped (SDK script)Zero - nothing added to your bundleZero client-side - all on your server
Auth handlingAttribute auth or token auth via auth-urlAttribute auth via URL params or token auth via postMessageToken auth only (server-managed)
Best forSPAs, modern web apps, framework-heavy projectsCMS pages, static sites, WordPress, quick prototypesRegulated environments, SSR, advanced caching needs

Not sure which to pick?

Start with the Widget SDK overview. You can always switch to iframe or server proxy later - the widget content is the same regardless of integration method.