Skip to main content
Follow these steps to integrate the widget into a website, web app, or mobile app. Copy the following code to your website, web app, or mobile app. This code embeds the Fletch Insurance Widget (FIW). You can customize the iframe height and width. Replace #PARTNERCODE# with the partner code. To get the partner code, contact Fletch at info@fletch.co.

Sandbox

Production

Widget Display Types

The widget is optimized for 400px height. Example widget source URL: https://#PARTNERCODE#-wsb.fletch.co/

Appending Customer Data

Partners can pass customer data to prefill the widget. You can omit customer data without affecting widget operation. Append query parameters to the widget URL in the ?key=value format. Separate each pair with &.

Approach 1: Sending data from widget URL

Use case: the widget is the full page redirect experience for the partner. Fletch hosted widget URL: https://#PARTNERCODE#-wp.fletch.co/?customer_fname=Andrew&customer_lname=Miller

Approach 2: Sending data from the client URL

Use case: redirect to a separate landing page that contains the widget. Partner hosted website: https://#PARTNERWEBSITE#/fletch/?customer_fname=Andrew&customer_lname=Miller Fletch hosted partner landing page: https://fletch.co/#PARTNERCODE/?customer_fname=Andrew&customer_lname=Miller Add this script after the iframe:

Approach 3: Sending data from a partner web or mobile application

Use case: the partner application and the Fletch widget are on the same page.
The query parameters are the same as Approach 1.