Embed
Put the Deal Viability Calculator on your site
Paste two lines of HTML and your readers can check whether a business at a given price would cover its SBA loan. It is free, needs no account, and resizes itself to fit your layout.
The snippet
Put the div where you want the calculator. Include the script once per page, anywhere. Every attribute except data-dealscorer is optional.
<div data-dealscorer="deal-viability"
data-earnings="70000-200000"
data-multiple="2-4"
data-name="laundromat"
data-accent="#1E2328"
data-mode="light"></div>
<script src="https://www.dealscorer.com/embed.js" async></script>Starting on your own figures
If your page already shows a typical figure for the business, pass it as data-earnings_typical and data-multiple_typical. The calculator starts exactly on those values, so its starting price matches the price on your page. The calculator only shows what you give it and never looks figures up anywhere else.
<div data-dealscorer="deal-viability"
data-name="HVAC company"
data-earnings="70000-200000" data-earnings_typical="135000"
data-multiple="2-4" data-multiple_typical="3"></div>
<script src="https://www.dealscorer.com/embed.js" async></script>Live examples
The first uses the snippet above. The second uses the HVAC niche with the dark palette and a serif font.
<div data-dealscorer="deal-viability" data-niche="hvac"
data-mode="dark" data-font="serif"></div>Attributes
| Attribute | Values | Default | What it does |
|---|---|---|---|
| data-dealscorer | deal-viability | Required | Which tool to show. Only the Deal Viability Calculator for now. |
| data-niche | A niche id (see below) | None | Loads that industry's researched defaults and points the footer link at its buyer's guide. |
| data-earnings | LO-HI in dollars, e.g. 70000-200000 or 70k-200k | $100K to $2M | Typical annual owner earnings (SDE). The slider runs from half the low figure to 1.5 times the high one and starts at the midpoint. Owner salary scales to match. Up to $50M. |
| data-multiple | LO-HI, e.g. 2-4 | 2x to 6x | Typical asking multiple of SDE. The slider runs from half a turn below to one turn above and starts at the midpoint. |
| data-earnings_typical | Dollars, e.g. 135000 or 135k | Midpoint of data-earnings | Exact starting value for owner earnings. The slider step is chosen so this value is reachable. |
| data-multiple_typical | A number, e.g. 3 or 2.75 | Midpoint of data-multiple | Exact starting multiple. The slider step is chosen so this value is reachable. |
| data-name | Plain text, up to 80 characters | None | Business type for the headline, e.g. "Could you afford to buy a laundromat?" |
| data-heading | 0 | Shown | Set to 0 to hide the headline. |
| data-mode | light or dark | light | Base colour palette. |
| data-accent | Hex colour | DealScorer green | Sliders, chart line and verdict tint. |
| data-ink | Hex colour | Palette default | Main text colour. Ignored if it would be hard to read on the background. |
| data-bg | Hex colour | White (light) or near black (dark) | Card background. A dark background switches to the dark palette. |
| data-surface | Hex colour | Palette default | Background of the results panel. |
| data-muted | Hex colour | Palette default | Small labels. |
| data-border | Hex colour | Palette default | Divider and slider track. |
| data-radius | 0 to 24 | 2 | Corner radius of the card in pixels. |
| data-font | sans, serif, mono, system, inherit-sans | Inter | An iframe cannot use your page's fonts. sans is Inter, serif is Fraunces, system and inherit-sans use the visitor's system font. |
| data-ref | Letters, numbers, dot, dash, underscore | embed | Sent as utm_source on the footer link so we can tell which site sent the visit. |
Values that are missing or not valid are ignored and the default is used. For owner earnings and the multiple, your own data-earnings, data-multiple and their _typical values, then data-niche. The niche still supplies everything else, such as the loan rate range.
Niche ids: hvac, plumbing, landscaping, commercial-cleaning, auto-repair, pool-service, self-storage, daycare, restaurant, liquor-store, pool-construction, pest-control.
Good to know
- The calculator runs in an iframe, so it cannot read or change anything on your page. It works from 300px to 900px wide.
- If your site changes pages without a full reload, call
window.DealScorer.scan()after each navigation to mount new calculators.window.DealScorer.mount(element)mounts a single one. - Including the script twice is harmless. Each calculator is only mounted once.
- The small link at the bottom goes to the matching DealScorer guide when you set a niche, or to the full calculator otherwise.