Follow these steps to add the Cattle Market Mobile LRP Calculator to your website. No coding experience required — just copy, paste, and customize.
Copy and paste the following <iframe> tag into your website's HTML where you want the calculator to appear.
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>This will render the calculator with the default light theme and standard colors. The first time a user loads the calculator, they will see a brief consent screen asking them to agree to our Terms of Service and Privacy Policy before proceeding. This only appears once per browser.
Add query parameters to the src URL to match the calculator to your website's branding. All color values are hex codes without the # prefix.
| Parameter | Type | Default | Description |
|---|---|---|---|
theme | "light" | "dark" | light | Sets the overall color scheme. Use 'dark' if your website has a dark background. |
primary_color | hex color | 3b82f6 | The accent color used for buttons, sliders, and interactive elements. Example: 1d4ed8 for a darker blue. |
bg_color | hex color | ffffff (light) / 111827 (dark) | The background color of the calculator. Useful for matching your page background exactly. |
text_color | hex color | 1f2937 (light) / ffffff (dark) | The main text color used for labels and headings. |
button_bg_color | hex color | Uses primary_color | Background color for buttons (e.g., consent button, contact CTA). Overrides primary_color for buttons only. |
button_text_color | hex color | ffffff | Text color for buttons. |
slider_bg_color | hex color | Uses primary_color | Background color for slider thumbs, track fills, and tooltips. Overrides primary_color for sliders only. |
slider_text_color | hex color | ffffff | Text color shown inside slider tooltips. |
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator?theme=dark&primary_color=22c55e&bg_color=0f172a"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe><iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator?theme=light&primary_color=b91c1c&bg_color=fef2f2&text_color=450a0a"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>You can optionally pre-fill the calculator with default values so your clients see relevant options immediately. These are added as additional query parameters.
| Parameter | Type | Default | Description |
|---|---|---|---|
agent | string | — | Your agent identifier. Contact us to get your agent ID. |
include_swine | boolean | false | Set to true to also offer Swine in addition to cattle. By default the calculator shows cattle only. This flag is required before commodity=Swine will work. |
show_print | boolean | false | Set to true to show a Print PDF button that lets visitors download their calculation as a PDF. Hidden by default. Contact us to add your logo, and PDFs printed from your site will carry it. |
commodity | string | — | Pre-select the commodity (e.g., "Fed Cattle", "Feeder Cattle"). To pre-select "Swine", you must also pass include_swine=true. |
type | string | — | Pre-select the commodity type (e.g., "Steers", "Heifers"). |
endorsement_length | string | — | Pre-select the endorsement length in weeks. |
coverage_level_percent | string | — | Pre-select the coverage level percentage (70–100). |
number_of_head | string | — | Pre-fill the number of head. |
selling_weight | string | — | Pre-fill the expected weight in lbs. For cattle this is selling weight; for swine it is carcass weight. |
end_value | string | — | Pre-fill the expected end value. |
basis | string | — | Pre-fill the basis value. |
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator?theme=light&primary_color=1d4ed8&commodity=Fed%20Cattle&type=Steers&number_of_head=100"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>The calculator shows cattle (Feeder Cattle and Fed Cattle) only by default. To also offer Livestock Risk Protection for Swine, add include_swine=true to your embed URL. Swine then appears as an additional commodity option; your existing cattle setup is unchanged.
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator?theme=light&include_swine=true"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>Help your website visitors get in touch when they're interested in coverage. Add contact parameters to display a call-to-action bar at the bottom of the calculator. If no contact parameters are provided, the CTA won't appear.
| Parameter | Type | Default | Description |
|---|---|---|---|
contact_name | string | — | Your agency, company, or agent name. Displayed in the CTA text (e.g., "Interested in this coverage? Contact Smith Insurance Agency"). |
contact_title | string | — | Job title or role (e.g., Senior LRP Agent). Shown under the name when you list more than one contact. |
contact_url | URL | — | Link to your agency's contact page. Opens in a new tab. This is the primary CTA button. |
contact_label | string | "Interested in this coverage? Contact Us" | Custom text shown above the contact buttons. Overrides the default message. |
contact_phone | string | — | Your agency phone number. Renders as a click-to-call link alongside the main CTA. |
contact_email | string | — | Your agency email address. Renders as a mailto link alongside the main CTA. |
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator?theme=light&primary_color=1d4ed8&contact_name=Smith%20Insurance%20Agency&contact_url=https://smithinsurance.com/contact&contact_phone=(555)%20123-4567&contact_email=info@smithinsurance.com"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>You can provide any combination of contact_url, contact_phone, and contact_email. At least one must be present for the CTA to appear.
To list more than one agent, repeat the contact parameters with a _2, _3 suffix, and so on, up to six agents. The unsuffixed parameters are the first agent, so existing single-agent embeds need no changes. Each agent needs at least one of contact_url, contact_phone, or contact_email to be listed.
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator?theme=light&primary_color=1d4ed8&contact_name=Jim%20Halverson&contact_title=Senior%20LRP%20Agent&contact_phone=(555)%20123-4567&contact_email=jim@smithinsurance.com&contact_name_2=Dana%20Ruiz&contact_title_2=LRP%20Agent&contact_phone_2=(555)%20123-4599&contact_email_2=dana@smithinsurance.com"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>With one agent the CTA renders as a single row of buttons. With two or more, each agent gets their own card with their name, title, and contact links. Use contact_label to set the heading shown above the whole group.
The calculator is fully responsive inside the iframe. Here are some tips for getting the best results:
A height of 800px works well for most setups. If your users will be interacting with many endorsement lengths or coverage levels, consider 900px or higher to reduce scrolling within the iframe.
Setting width="100%" makes the calculator fill its container. Wrap the iframe in a container element if you need to constrain the maximum width.
<div style="max-width: 900px; margin: 0 auto;">
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
style="border: none; max-width: 100%;"
></iframe>
</div>Fill in the fields below and copy your ready-to-use embed code. Only parameters you set will be included in the URL.
List one contact or several — add an entry per agent and each is shown as its own card beneath the results.
Pre-fill the calculator with default values. Most embedders can skip this section.
Plain iframe — works anywhere. The Share Calculation button still works, but the links it produces point at cattlemarketmobile.com rather than your page.
<iframe
src="https://cattlemarketmobile.com/embed/lrp-calculator"
width="100%"
height="800"
frameborder="0"
title="LRP Calculator"
allow="clipboard-write"
style="border: none; max-width: 100%;"
></iframe>Yes. The first time the calculator loads in a user's browser, they will see a brief consent screen asking them to agree to our Terms of Service and Privacy Policy. Once accepted, this preference is remembered and the consent screen will not appear again on that browser.
Yes. We use domain whitelisting to ensure only approved sites can embed the calculator. Contact us to learn how to add our calculator to your website.
All LRP pricing data is sourced directly from the USDA Risk Management Agency (RMA). The calculator displays current rates when the market is open.
Adjust the height attribute on the iframe. We recommend starting with 800 and adjusting up or down based on how it looks in your layout.
We're happy to help you get the calculator set up and customized for your website.