Skip to main content
Perch’s embeddable tools can be customized to pre-fill certain pieces of information and modify their appearance, which can significantly improve their usability and integration with your website.

Overview

Embeds support two types of customization: pre-filling data to reduce user friction, and styling to match your brand. For example, if you run a property listing website you can pre-fill the property price so the mortgage calculator loads with the right value already set — no manual input required.

Pre-filling data

Use our predefined data attributes directly in the embed div to pass values in. Set them using your CMS or templating language.

Static values

Dynamic values

Multi-widget embeds

Perch supports both single and multi-widget embeds. Multi-widget embeds include a navigation bar to help users navigate between different calculators.

Variables are global

Data attributes are applied globally across all widgets in the embed, which means:
  • Set them once on the embed code
  • All widgets contained in the embed will receive the provided variables
  • User-inputted values (e.g. income, down payment amount) are cached
  • If the user loads the same calculator again or on another page, the embed will remember their values

Supported variables

Each widget has its own set of supported variables based on functionality. Here are the current supported global variables:

Financial data

Styling options

Localization

UTM tracking parameters

Examples

Property listing

Custom branding

CMS integration

Best practices

  • Pre-fill as many relevant values as possible to reduce friction
  • Ensure pre-filled values make sense in context — a property price should match the listing it appears alongside
  • Use your referral code to ensure leads are properly attributed
  • Match your brand colors and test on both light and dark backgrounds
  • Use widget-hide-titles if widget headings conflict with your page layout

Need help?

Contact your Perch representative for assistance with customization or implementation questions.