Skip to main content

Embeddable Coaches

Many of Banzai's resources contain activities designed to help individuals make sense of their personal finances. Examples include budget Coaches, savings and retirement Coaches, and more. Banzai Coaches go great embedded into any informative or instructive resource—a blog, an article, etc. With Direct, you too can embed Coaches in your website. Let's talk about how.

Embedding Banzai Coaches onto your own website adds personalized context to any resource while still maintaining your style and branding throughout. Remember, you're not limited to a single activity on a page. You can embed multiple Coaches or even Banzai calculators.

Search the Coach list below. Once you've found an activity you'd like to embed onto your website, select it for step-by-step instructions on how to add it to any resource on your website.

Technical Setup

There are three ways to embed Banzai Coaches on your website. Choose the one that fits your site's architecture. (The same methods work for Banzai calculators.)

The JavaScript snippet ensures Coaches adapt to mobile devices and desktops alike.

  1. Insert this snippet before the closing </body> tag of your page, replacing hometown with your subdomain:

    <script>!function(e,t){var s="script",a=e.getElementsByTagName(s)[0],n=e.createElement(s);n.async=!0,n.src="https://banzai.org/coach/styles.js?subdomain=hometown",a.parentNode.insertBefore(n,a)}(document);</script>
  2. Add a <div> with class="__banzai-coach" and id="{coach-id}" where you want the Coach to appear:

    <div id="get-out-of-debt" class="__banzai-coach"></div>

You're not limited to one activity per page — add multiple <div> elements for multiple Coaches or calculators.

IFRAME (Simpler — Not Responsive)

Similar to embedding a YouTube video. Update the activity ID and your subdomain:

<iframe src="https://banzai.org/coach/{activity-id}?subdomain=hometown" width="1200" height="720" frameborder="0"></iframe>

The iframe solution has fixed width and height. Recommended dimensions for Coaches are typically 1200px x 720px — see each individual Coach's page for confirmation.

Single-Page Application (SPA) Integration

If your site uses a JavaScript framework with client-side routing (Astro, Next.js, Nuxt, Gatsby, React Router), Coaches must be re-mounted after each page navigation. Follow the JavaScript Snippet setup above, then call mount() after navigation:

if (window.BanzaiCoach?.ready) {
window.BanzaiCoach.mount()
}

Before navigating away, call unmount():

window.BanzaiCoach.unmount()

Or dispatch custom events:

document.dispatchEvent(new CustomEvent('banzai:mount'))
document.dispatchEvent(new CustomEvent('banzai:unmount'))

Embeddable Coach List

A-C

Am I Ready to Retire?
Are You Cyber Safe? For Teens
Basic Bookkeeping
Build Your Emergency Fund
Cost of a Wedding
The Cost of Baby's First Year
The Cost of College
Create a Budget
Create a Holiday Budget

D-H

Digital Wellness Assessment
Earning Extra Income
Filling Out the FAFSA
Financial Wellness Assessment
Get Out of Debt
Grocery Budget Assessment Coach
How Do I Build Credit?

K-P

Know Your Net Worth
Make the Most of Your FSA or HSA
Navigating Debt Collections
50/30/20 for Teens

Q-V

Out of Work
Repairing Credit
Retirement Funds
Saving With A Purpose
Scam Checker
Setting Up Your Business
Term Life Insurance
Trim Your Budget
Understanding Health Insurance

W-Z

Weather an Economic Storm
What Car Can I Afford?
What Mortgage Can I Afford?
Workplace Cybersecurity
Your First SBA Loan
Your Tax Return Pre-Game