Install guide
Add Boafo to your website.
It takes a few minutes.
You need a site key first. Create a free account, add your website, and the dashboard shows these instructions with your key already filled in.
Paste this just before the closing </body> tag on every page (or in your shared footer template):
<script src="https://cdn.jsdelivr.net/npm/boafo-accessibility-widget@2/dist/boafo.js" data-key="pk_live_YOUR_SITE_KEY" defer></script>Optional: add data-position="bottom-left" to move the button, or data-language="fr" for a French menu.
- Download the Boafo plugin (ZIP file).
- In WordPress, go to Plugins, then Add New, then Upload Plugin.
- Choose the ZIP file, then Install Now, then Activate.
- Go to Settings, then Boafo. Paste your site key and save.
Your site key:
pk_live_YOUR_SITE_KEYAdd Boafo to your theme:
- In Shopify admin, go to Online Store, then Themes.
- Next to your theme choose Actions (or …), then Edit code.
- Open layout/theme.liquid.
- Paste the code just before </body>, then Save.
<script src="https://cdn.jsdelivr.net/npm/boafo-accessibility-widget@2/dist/boafo.js" data-key="pk_live_YOUR_SITE_KEY" defer></script>Wix needs a Premium plan with a connected domain for custom code.
- In your Wix dashboard, go to Settings, then Custom code.
- Choose Add custom code and paste the code.
- Choose All pages, place it in Body – end, then Apply.
- Publish your site.
<script src="https://cdn.jsdelivr.net/npm/boafo-accessibility-widget@2/dist/boafo.js" data-key="pk_live_YOUR_SITE_KEY" defer></script>Code injection is available on Business plans and above.
- Go to Settings, then Advanced, then Code injection.
- Paste the code into the Footer box.
- Save.
<script src="https://cdn.jsdelivr.net/npm/boafo-accessibility-widget@2/dist/boafo.js" data-key="pk_live_YOUR_SITE_KEY" defer></script>Custom code needs a paid site plan.
- Open Site settings, then Custom code.
- Paste the code into Footer code.
- Save, then publish your site.
<script src="https://cdn.jsdelivr.net/npm/boafo-accessibility-widget@2/dist/boafo.js" data-key="pk_live_YOUR_SITE_KEY" defer></script>If your site already uses Google Tag Manager:
- In Google Tag Manager, create a new tag of type Custom HTML.
- Paste the code.
- Set the trigger to All Pages.
- Save, then Submit to publish the container.
<script src="https://cdn.jsdelivr.net/npm/boafo-accessibility-widget@2/dist/boafo.js" data-key="pk_live_YOUR_SITE_KEY" defer></script>For sites built with a JavaScript bundler (Vite, webpack and others):
npm install boafo-accessibility-widgetimport { initBoafo } from "boafo-accessibility-widget";
initBoafo({ key: "pk_live_YOUR_SITE_KEY" });npm install boafo-accessibility-widget"use client";
import { BoafoWidget } from "boafo-accessibility-widget/react";
// In your root layout, inside <body>:
<BoafoWidget siteKey="pk_live_YOUR_SITE_KEY" />It renders nothing on the server, so it is safe with server rendering.
Your own “Accessibility” link
If your site already has an accessibility link or button, it can open the Boafo menu:
<button type="button" onclick="Boafo.open()">Accessibility tools</button>Keep private content private
Add data-boafo-private to any part of a page Boafo must never read, translate or send, such as account balances. Form fields are never sent.
Check it works
- Open your website in a new tab. The Boafo button appears in the bottom corner.
- Open it and choose “Read this page”.
- If the menu says the key isn’t enabled for your address, add that address (for example
https://www.example.com) under Websites in your dashboard.
