Skip to content

Choose Your Integration Path

Two ways to add Returning.AI loyalty widgets to your platform.

Feature Comparison

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

FeatureWidget SDKEmbed Script
Setup complexitynpm install or CDN script tag + backend endpoint for Access KeyPaste a script tag - no build step
Framework supportReact, Vue, Angular, Svelte, plain HTMLAny - works in static HTML, CMS, no-code tools
Security modelAccess Key Embed (server-issued embed token) or attribute authAttribute auth via data-* attributes
RenderingBundle mode (light DOM, native scrolling) or iframe fallbackWidget loader creates an iframe automatically
CustomizationFull CSS cascade in bundle mode, CSS custom properties in iframe modeTheme and dimensions via data-* attributes
Bundle size impact~15 KB gzipped (SDK script)Zero - nothing added to your bundle
Best forSPAs, modern web apps, logged-in portals, trader dashboardsCMS pages, static sites, WordPress, quick prototypes

Not sure which to pick?

Start with the Widget SDK. If you don't have backend access, use the Embed Script.