Aidan is the quote chat that lets visitors describe their yard, confirm their address, and get a quote directly on your website.
You can add it by pasting two short lines of code where you want the chat to appear. It works with most websites and site builders, including mobile websites.
On web:
On mobile:
If someone else manages your website, send them this article or the code from the section below.
What you need
Before you start, you need:
A Duranta account with a widget key
Access to edit the page where you want Aidan to appear
Your widget key identifies which Duranta company the chat belongs to. It is safe to use on a public website.
Get your code
Your Aidan embed code and widget key are provided by the Duranta Sales or Customer Success team.
The code to paste
The copied snippet looks like this:
<div id="aidan-widget"></div> <script src="https://app.getduranta.com/a/aidan.js" data-widget-key="YOUR_KEY" async></script>
If you're entering the code manually, replace YOUR_KEY with your widget key.
The first line marks where the chat appears on the page. The second line loads Aidan into that location.
Where each line goes
The first line:
<div id="aidan-widget"></div>
goes in the body of the page, in the section where you want the chat to appear.
The script line can go in one of these places:
Directly after the first line
In the footer of your website
In the header of your website
If you place the script in the header, remove async:
<script src="https://app.getduranta.com/a/aidan.js" data-widget-key="YOUR_KEY"></script>
Add only one Aidan chat to a page.
If the page does not include the first line, the chat appears directly above the script. In that case, the script must be placed in the body where you want the chat to appear.
Add Aidan to your site builder
Squarespace
Edit the page.
Add a Code block where you want the quote chat to appear.
Paste both lines into the block.
Aidan uses the width of the Code block.
For a site-wide script, add only the script line under Settings → Advanced → Code Injection → Footer.
Then add the first line to a Code block on each page where Aidan should appear.
Wix
Add an HTML embed box to the page.
Paste both lines into the box.
Set the box to approximately 700px tall.
A Wix HTML embed runs inside its own frame, so the chat stays inside the box.
On phones, full-screen chat does not work inside this HTML embed.
To allow full-screen behavior on phones, add the script using Wix Custom Code and keep the first line in the page content outside the embed box.
WordPress, Webflow, and similar builders
Add a custom HTML or embed block where you want the chat to appear, then paste both lines into it.
Aidan uses the width of the block.
Place it in a normal page section. Avoid sections that move after the page loads, such as auto-advancing carousels.
Set the width
Aidan normally uses the full width of the block where it is placed.
To make it narrower, add a maximum width to the first line:
<div id="aidan-widget" style="max-width: 480px;"></div>
Set the height
Aidan is 700px tall by default.
To use a different height, add data-height to the script:
<script src="https://app.getduranta.com/a/aidan.js" data-widget-key="YOUR_KEY" data-height="600" async></script>
The value is measured in pixels.
How Aidan works on phones
When a visitor starts typing on a phone, Aidan expands to cover the screen so the keyboard does not interfere with the page.
While Aidan is full screen, your custom height setting is temporarily ignored.
When the visitor closes the chat, they return to the same place on your website.
If your site has a content security policy
If your website uses a content security policy, allow:
https://app.getduranta.com
for both:
script-srcframe-src
If your site requires a nonce for scripts, add the same nonce to the Aidan script.
Upgrade from the old Aidan embed
If your website already uses the older iframe embed, it will continue to work.
However, the old iframe does not include the mobile-responsive behavior of the new embed.
On phones, the chat remains inside the iframe instead of expanding to a full-screen experience.
The old embed looks like this:
<iframe id="aidan-quote-widget" src="https://app.getduranta.com/a/widget/YOUR_KEY" title="Get a quote" allow="geolocation"> </iframe>
To upgrade:
Leave the iframe where it is.
Add the new script line to the same page.
Use the same widget key in both.
The script replaces the iframe in the same location and keeps its existing title, permissions, and height unless you specify a different data-height.
After upgrading, Aidan can use the new mobile-responsive behavior, including the full-screen experience on phones.
For new installations, use the recommended two-line embed.


