#PARTNERCODE# with the partner code. Contact info@fletch.co to get a partner code.
Sandbox
Production
Widget display types
Fletch offers a full widget and a mini widget. The full widget is optimized for 740px height. The mini widget is optimized for 400px height. Append?widget_type=Mini to the source URL for the mini widget.
- Full:
https://#PARTNERCODE#-wsb.fletch.co/ - Mini:
https://#PARTNERCODE#-wsb.fletch.co/?widget_type=Mini
Appending customer data
Partners can pass customer data to prefill the widget. Partners can pass attribution data for analytics. You can omit both data types. Append query parameters as key-value pairs in the?key=value format. Separate each pair with &.
Approach 1: Widget URL
Use this when the widget is a full-page redirect from the partner ecosystem.https://#PARTNERCODE#-wp.fletch.co/?zip_code=19121&pet_type=Dog&pet_breed=Golden%20Retriever
Approach 2: Client page URL
Use this when the partner redirects to a landing page that embeds the widget.- Partner site:
https://#PARTNERWEBSITE#/fletch/?zip_code=19121&pet_type=Dog&pet_breed=Golden%20Retriever - Fletch landing page:
https://fletch.co/#PARTNERCODE/?zip_code=19121&pet_type=Dog&pet_breed=Golden%20Retriever
owner_number is the phone field name in this approach.
Add this script after the iframe so the landing page forwards its query string:
Approach 3: Partner application
Use this when the partner application and the Fletch widget are on the same page.Approach 4: Popup on a call-to-action
Place the widget in a popup that opens when the user selects a button. Open https://fletch.co/sritest/. Select View Rates. Contact Fletch for the embedded script.Approach 5: Web integration package
- Add the package in the page head:
@fletch-tech/widget@^1.0.0, can pick up breaking changes.
- Initialize the widget after the mount point. Use
<div id="fletch-iframe"></div>for an embedded widget, or<button id="fletch-iframe-trigger">whenusePopupis true.