Embed Widgets

Embed

If your Widget type is Embed you will need to insert HTML in your website where the Widget needs to appear. You can get this HTML from the Widget settings page.

<!-- Frill Widget (https://frill.co) -->
<div data-frill-widget="YOUR_WIDGET_KEY" style="width: 340px; height: 460px;"></div>
<!-- End Frill Widget -->

You still need to call Frill('container') for embedded Widgets to load, unless you are manually loading Widgets with the Frill('widget') command.

Identified users work like normal with Embed Widgets (not iFrames), you don't need to do anything special.

iFrames

It's possible to load any Widget in an iFrame without using the . Every Widget has a unique embed URL that you can get from the Widget Dashboard.

<!-- Frill Widget (https://frill.co) -->
<iframe src="https://YOUR_FRILL_DOMAIN/embed/widget/YOUR_WIDGET_KEY" sandbox="allow-same-origin allow-scripts allow-top-navigation allow-popups allow-forms allow-popups-to-escape-sandbox" style="border: 0px; outline: 0px; width: 450px; height: 400px;"></iframe>
<!-- End Frill Widget -->

Check out our identifying users in iFrames example if you need to identify users.

Last updated