Swvle
PlatformProductsPricingWhy Swvle
Sign InSign Up

Installation Guide

Add a Swvle widget to your site with the embed snippet generated in your workspace.

Embed Widget

The widget editor generates the exact snippet for each SuperFan. In your workspace, open Widgets → Edit → Design & Embed, copy the Floating snippet, and paste it before the closing </body> tag on the host page.

Floating widget

<script
  async
  src="https://staging.swvle.com/embed.js"
  data-id="YOUR_WIDGET_ID"
  data-mode="floating"
></script>

Inline widget

By default the widget renders in place of the script tag — no wrapping element required:

<script
  async
  src="https://staging.swvle.com/embed.js"
  data-id="YOUR_WIDGET_ID"
  data-mode="inline"
></script>

To mount it inside a specific element instead (e.g. a sidebar column), add data-container with a CSS selector and place the script tag anywhere on the page:

<div id="swvle-widget"></div>
<script
  async
  src="https://staging.swvle.com/embed.js"
  data-id="YOUR_WIDGET_ID"
  data-mode="inline"
  data-container="#swvle-widget"
></script>

Iframe fallback

<iframe
  src="https://staging.swvle.com/embed/YOUR_WIDGET_ID?mode=inline"
  title="SuperFan Widget"
  width="100%"
  height="420"
  loading="lazy"
  referrerpolicy="strict-origin-when-cross-origin"
  sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation"
  style="border:0;display:block;overflow:hidden;background:transparent"
></iframe>

Replace YOUR_WIDGET_IDwith the widget ID from the generated snippet. The widget's saved Design & Embed settings (theme, header, footer, position, and chrome) apply automatically, so you usually do not need to hand-edit attributes.

Optional overrides

Add any of the following data-*attributes to override this widget's saved settings for one specific install. Omit them to use the saved defaults.

AttributeValuesOverrides
data-themebranded | basic | noneSaved widget theme
data-theme-modelight | darkSaved light/dark chrome mode
data-langen | es | fr | itResponse language for anonymous visitors (default: en)
data-positionleft | rightFloating launcher position
data-headershow | hideSaved header visibility
data-footershow | hideSaved footer visibility
data-heightCSS value, e.g. 840pxSaved panel height
data-widthCSS value, e.g. 420pxSaved panel width
data-containerCSS selector, e.g. #swvle-widgetInline only — mount point (default: after the script tag)
Swvle
AboutPartnershipsDocumentationContact UsPrivacyTermsDo Not Sell My Personal Information

© 2026 Swvle. All rights reserved.

v3.0.0 beta 33-staging