Using inline frames to embed the Hosted Experience
Integrate Root's Hosted Experience into your website using an inline frame, allowing you to keep customers on your domain while leveraging our platform
Prerequisites
- Your domain has been approved and added to our allowlists
- You have already been set up to use the Hosted Experience, via either:
Implementation Steps
1. Obtain a Hosted Experience bridge link
This step is dependent on how you are configured to access the Hosted Experience, as described in the prerequisites. If using our Embedded Insurance API, follow the instructions in 1.a. If you have been provided with a static bridge link, please follow the instructions in 1.b.
1.a Obtaining a bridge link via our Embedded Insurance API
Obtaining a bridge link through our Embedded Insurance API gives you additional features, like seeding known customer & vehicle data for increased conversion. In order to obtain your bridge link, you should:
- Provide known customer values when creating a quote
- Manually create a bridge link using the quote
idreturned in the previous step's response
A successful bridge link create response will contain a url property which may be used in subsequent steps.
1.b Utilizing a static bridge link
Your static bridge link URL may be used directly in subsequent steps. No additional action is required in step one.
2. Add the inline frame to your webpage
Add the following HTML snippet to the page where you want to embed the Hosted Experience:
<iframe
src="{Hosted Experience URL from step one}"
width="100%"
height="700px"
allow="payment" // optional: provide if you'd like to allow native (browser) payment features during checkout
></iframe>Adjust the height and width attributes according to your user interface.
3. Testing
It is recommended to load your webpage in different browsers to ensure the inline frame displays correctly. Additionally, please attempt loading/emulating your embedded hosted experience in a mobile browser, to confirm responsive behavior.
Troubleshooting
If you encounter issues with the inline frame implementation:
- Verify your domain has been added to our allowlists
- Check your browser's console for cross-origin errors
- Ensure the inline frame URL is correct and accessible
- You may test this by accessing it directly through your browser
For additional assistance, please refer to our complete API reference or contact your account manager.
Updated about 2 months ago