Installation
Add DenBrain to your website with one snippet
You do not need a developer for most websites. Paste one line where you want the widget to appear.
1. Allow your website address
In your DenBrain dashboard open Website widgets and add the address of each website that may show the widget (for example https://www.yourpractice.co.uk). The widget refuses to load anywhere else, so it cannot be copied onto someone else's site.
2. Publish your smile preview
Choose your treatments, wording, logo and colours, then publish the configuration. An unpublished configuration does not show to visitors.
3. Copy and paste your snippet
Your dashboard shows a snippet with your own identifiers filled in. It looks like this:
<script src="https://denbrain.co.uk/embed/smile-preview.js"
data-practice-id="YOUR_PRACTICE_ID"
data-config-id="YOUR_CONFIG_ID"
async></script>Paste it into the page or footer of your website where the widget should appear. In WordPress, Wix, Squarespace and similar builders, use an HTML or custom-code block.
4. Test it
Open your website on a phone and on a computer, run through a preview using a photo of your own, and check the enquiry arrives in your DenBrain CRM.
Optional: advertising consent
If your own cookie banner records that a visitor accepted advertising cookies, add data-ad-consent="granted" to the script tag. Without it, nothing is sent to advertising platforms. See compatibility for what DenBrain connects to today.
Your identifiers are public, non-secret identifiers. Access is controlled on the server by your allowed website addresses and by the published state of your configuration.