Embed Code
This is the code that every example below uses. Put your own composition id in it:If you limit the websites that may show your widgets, add every address that will show one, including preview and staging addresses. A page on an address that is not on the list shows nothing. See Security.
CMS Integrations
Paste the embed code wherever the platform lets you add custom HTML.WordPress
- Add a “Custom HTML” block
- Paste the embed code
- Update the page
Webflow
- Add an Embed element
- Paste the embed code
- Publish your site
Shopify
- Open the theme editor and add a “Custom Liquid” section where the widget should go
- Paste the embed code
- Save the theme
Places that take an address, not a script
A chat messenger, a link page, a site builder or a notes tool often takes an address or an iframe and no script. A composition has a frame for that, and so does a workflow:https://api.widgetic.com/embed/workflows/YOUR_WORKFLOW_ID/frame. See Show a workflow where you cannot add a tag for the frame, for the oEmbed card, and for what a workflow cannot do inside a frame: it moves a visitor on only by what the frame can see itself, so a step that waits for an event from your page does not start there.
E-commerce
Product Configurators
Use widgets as interactive product configurators. The embed shows what its composition holds, so keep the widget up to date by saving your product data to the composition from your server whenever your catalogue changes. See Compositions for how to save a composition.Pricing Calculators
The same applies to pricing calculators: save your plans and prices to the composition, and every page that embeds it shows them.This page does not document a way for the
<widgetic> tag to hand a visitor’s choice back to your page, for example to add a configured product to a cart. Build that step on your own page, around the embed.Marketing Tools
Email Marketing
Email programs do not run scripts or embedded frames, so a widget cannot run inside an email. Send a static image of your own (a screenshot of the widget) that links to a page where the widget is embedded:Landing Pages
Use widgets for interactive landing page elements:- Calculators and configurators
- Interactive demos
- Data visualization
- Lead capture forms