Use your clinic’s installation code
Aesthera supplies the complete code for your clinic. Install it in an HTML block on the page where the preview belongs. For an existing installation, keep that page’s treatment and campaign parameters when updating the iframe and script.
Complete embed example
Replace your-clinic with the exact clinic slug supplied by Aesthera, or use the personalized snippet we provide. This example supports automatic height adjustment and conversion tracking. For tracking to work, Aesthera must also enable it and approve your website address.
<iframe
src="https://www.aesthera.me/widget-embed/your-clinic?embed=v1&track=1"
data-aesthera-embed="v1"
allow="camera"
referrerpolicy="strict-origin"
loading="lazy"
title="Aesthera Treatment Preview Widget"
style="display: block; width: 100%; max-width: 462px; min-width: 0; height: 980px; margin: 0 auto; border: 0; box-sizing: border-box;"
></iframe>
<script src="https://www.aesthera.me/embed/v1.js" defer></script>Install or update a page
- Find the existing embed or add an HTML block in your website editor.
- Paste the iframe and helper script. Include the helper script once per page, even if the page has multiple Aesthera embeds.
- Keep any page-specific demo, only, and utm_campaign values in the iframe URL. Do not replace them with another page’s settings.
- Publish the page and clear its cache if your website uses one. Share the published URL with Aesthera for the launch check.
What each part does
| Part | Purpose |
|---|---|
| iframe src | Selects your clinic and any treatments or default campaign label for this page. |
| embed=v1 and data-aesthera-embed="v1" | Connect the iframe to the helper script for resizing and communication. |
| track=1 | Opts this embed into campaign attribution and saved-lead events, subject to the clinic’s tracking settings. |
| embed/v1.js | Runs on your website, reads supported campaign tags from its URL, and forwards the saved-lead event to the page’s data layer. |
Website editor and layout
Use a block that accepts both HTML and scripts, such as WordPress Custom HTML, Elementor’s HTML widget, or Shopify Custom Liquid. Other platforms may restrict scripts by plan or editor. The supplied embed fits its container up to 462px wide and adjusts height automatically. Check the published page, since the editor’s preview can behave differently.
If it is missing or cropped
If your platform cannot run scripts, let Aesthera know. A fixed-height iframe is available, but automatic resizing and the parent-page conversion integration require the helper script.
- Confirm the editor preserved the iframe URL, its attributes, and the script.
- Remove any old fixed-height or scaling wrapper that clips the iframe.
- Check whether a lazy-loading plugin delays the iframe or rewrites its URL. Preserve all supplied query parameters.
- If the site blocks external scripts or frames, have your developer check its Content Security Policy and browser errors.