In-app help
The script that plays your walkthroughs also brings an onboarding checklist, announcements (with Videobana videos), an Ask box that answers “how do I…?” by showing it on the real page, help for visitors who look stuck, surveys and a feedback button with screenshots, and your analytics. Set them up in Tools, with a live preview, and see how each one is doing on a page of its own; your script tag never changes.
- AAda LovelaceAnalytical Engines LtdNegotiation
- GGrace HopperCompiler Co.Proposal
- AAlan TuringBletchley AnalyticsFirst call
Use the app or the buttons above: events show up here, as Bana.on() and your analytics receive them.
Everything above is the real bana.js on a plain page, with the kit given in code. Press New deal and the checklist ticks itself off (the button calls Bana.track("deal-created")); open the Guides button for the checklist, What's new and the Ask box; type a question there and press Show me: the walkthrough starts at the step that answers. Finish the tour and it asks whether it helped; the Feedback tab on the right edge of the window opens the form (point at the page, add a screenshot). Nothing is sent from this demo.
Set it up
- 1Build it in ToolsUnder Guide: the Checklist and Answers & help; under Announce: Announcements; under Listen: the Inbox, Surveys and Feedback buttons. Announcements, surveys and feedback buttons are lists: make as many as you need, and open one to see its numbers and change it, with a live preview on a page you can click. A change you have not saved is kept while you look at another page.
- 2See it working on the sample appEverything you make live runs on the sample app at once, with your own account: an announcement or a survey can be opened there with its link, and what visitors send lands in your inbox and on the page of the survey or button it came from.
- 3Add the script to your site, onceThe same line as for walkthroughs (Tools → Add to your site, with a WordPress plugin to download, and where to paste it in Shopify, Webflow, Wix, Squarespace, Next.js and tag managers). Save a change and your sites have it within a couple of minutes; the script tag never changes.
- 4Say who the user is (optional)One line after sign-in: people who share a browser keep their own checklist, and announcements and surveys can be meant for a plan or a role. Below.
<script src="https://www.bana.video/bana.js" data-key="bk_YOUR_SITE_KEY" defer></script>Onboarding checklist
A short list at the top of the Guides panel: the first things a new user should do, each with a button that does it (start the walkthrough that shows how, play a video, open a page) and a rule for when it counts as done. A ring around it fills as they go, the Guides button keeps a dot while it is under way, and confetti marks the end. It can open by itself on a first visit. Progress is kept in the visitor's browser (per person on that browser once your app says who they are), and what they did before signing in counts. Events your app sends while the page is still loading are kept until the checklist is there, so nothing is missed.
Example
An onboarding checklist that ticks itself off
Acme Projects wants every new user to take the tour, create a project, invite a teammate and export a report in their first week.
- 1Tools → Checklist → Start from a ready-made list: your live walkthroughs become the first items.
- 2Item 1,
Take the tour: create a project: its button starts the walkthrough Create your first project; done When they do it (the tour is finished). - 3Item 2,
Create your first project: no button; done When my app says so, eventproject-created. - 4Item 3,
Invite a teammate: its button starts Invite your team; done on the eventteammate-invited. - 5Item 4,
Export your first report: its button opens/sample-app/reports; done on the eventreport-exported. - 6Switch on Open it by itself the first time and Confetti at the end, then Save changes.
What visitors get: on their first visit the Guides panel opens on the checklist; each item ticks itself off as it happens, a ring on the Guides button shows the progress, and confetti marks the last one.
// After the project is saved
Bana.track("project-created");
// After the invitation is sent
Bana.track("teammate-invited");
// After the export starts
Bana.track("report-exported");
// Tick any item from code, by its id (shown under each item in the dashboard)
Bana.complete("invite");| Field | What it does |
|---|---|
title, intro | The card's title (up to 40 characters) and the line under it (120). |
items | Up to 10. Three to five works best. |
pages | The pages it shows on (/projects/*); empty for every page. |
autoOpen | Opens the Guides panel on it by itself, once, on a visitor's first visit. |
celebrate | Confetti when the last item is done (not for visitors who asked their system for less motion). |
Items
| Field | What it does |
|---|---|
id | Names the item for good: what a visitor did is remembered by it. Lower-case letters, digits and dashes. |
title | What to do, in a few words (up to 80 characters). |
text | Optional: why, or how long it takes (up to 200). |
action | Its button: { kind: "tour", tour } (a walkthrough's id, a tour of the page, or page), { kind: "video", source }, { kind: "link", url, newTab } (a page of the site, a #bana-… link or an https address), or { kind: "none" }. |
done | When it counts as done: auto (when the visitor does what the button offers: finishes the tour, opens the video, follows the link), { kind: "visit", path } (a page, * for anything), { kind: "click", selector } (anything that matches, anywhere), { kind: "event", name } (your code calls Bana.track(name)), or manual (the visitor ticks it). |
// A checklist in your own code takes the place of the account's (Tools → Checklist)
Bana.checklist({
title: "Get started",
intro: "Four things, about five minutes.",
autoOpen: true,
items: [
{ id: "tour", title: "Take the 1-minute tour", action: { kind: "tour", tour: "page" } },
{ id: "video", title: "Watch the intro", action: { kind: "video", source: "example:ai-make-a-video-with-videobana" } },
{ id: "project", title: "Create a project", action: { kind: "link", url: "/projects/new" },
done: { kind: "event", name: "project-created" } },
{ id: "invite", title: "Invite a teammate", done: { kind: "click", selector: "[data-testid=send-invite]" } },
],
});
// Later
Bana.track("project-created"); // ticks "Create a project"
Bana.complete("invite"); // ticks any item by its id
Bana.checklist().open(); // opens the Guides panel on it
Bana.checklist().progress(); // { done: 2, total: 4, complete: false, items: [...] }Announcements
Tell visitors what is new where they are, rather than in an email nobody reads. A banner across the top for maintenance or an event, a card in the corner for a tip, a pop-up for big news, with a picture or a Videobana video that plays in place, and a button that starts the walkthrough of the feature. Each one says who sees it, where, from when to when and how often. A visitor never gets more than one banner and one card or pop-up at a time, and nothing pops up over a walkthrough. The listed ones make up What's new in the Guides panel, with a count on the button until they are read.
Example
Announce a feature with a pop-up that starts its tour
Reports just shipped. Returning users should hear about it once, on the Projects page, with a button that shows them how.
- 1Tools → Announcements → New announcement → A new feature (a pop-up). Its page opens on Edit, with a live preview beside the form.
- 2Label
New, titleReports are here, textSee what your team gets done **week by week**, and export it in one click. - 3Button
Show me→ Start a walkthrough → Export a report (a live one: a draft would open the Guides panel instead). - 4Who sees it: Returning. Pages:
/sample-app. How often: Once. After: 3 seconds. Keep In “What's new” on. - 5Save changes, then Make it live. A second one, A banner with
Scheduled maintenance on Sunday, 2 to 4 am UTC., from and until dates, shows how a banner reads.
What visitors get: returning users get the pop-up once, three seconds after the Projects page opens; Show me starts the Reports tour on the real page. It also stays under What's new in the Guides panel, with a count on the button until it is read. Its Overview counts how often it was shown, how many pressed Show me and how many closed it.
// Show one of the account's announcements, whoever the visitor is
Bana.announce("reports-launch");
// Or one written in code
Bana.announce({
style: "modal",
badge: "New",
title: "Reports are here",
body: "See what your team gets done **week by week**, and export it in one click.",
cta: { label: "Show me", action: { kind: "tour", tour: "WALKTHROUGH_ID" } },
});| Field | What it does |
|---|---|
name, enabled | What you call it in Tools (visitors never see it), and whether it is live. One that is off shows nowhere; one whose days have not come shows from its first. |
style | banner (a bar across the top), card (a corner, above the Guides button) or modal (a pop-up in the middle). |
badge, title, body | A word over the title ("New", "Tip"), the title (up to 80) and the text (up to 400; **bold** and [a link](https://…) work, a blank line starts a paragraph). |
media | { kind: "image", src, alt } (an https picture) or { kind: "video", source } (a Videobana video, played in place with its voice and captions). |
cta | A button: { label, action }, with the same actions as a checklist item. Without one, the card has Got it. |
audience, traits | everyone, new (first visit) or returning; and traits the visitor must have ([{ key: "plan", value: "free,starter" }], * for any value) from Bana.identify. |
pages, sites | Where it shows (* for anything); empty for everywhere. |
start, end | The first and last day it shows (YYYY-MM-DD, the visitor's own day). |
frequency | once, until-dismissed (every visit until it is closed or its button pressed) or every-visit. |
delay | Seconds after the page opens (0 to 120). |
listed, date | Also listed under What's new in the Guides panel, dated, with a count on the button until it is read. |
// One of the account's announcements, by its id, whoever the visitor is
Bana.announce("dark-mode");
// Or one written here: a pop-up with a video and a button that starts a walkthrough
Bana.announce({
style: "modal", // "banner", "card" or "modal"
badge: "New",
title: "Dark mode is here",
body: "Switch it on in **Settings → Look**. It follows your system.",
media: { kind: "video", source: "example:ai-make-a-video-with-videobana" },
cta: { label: "Show me", action: { kind: "tour", tour: "page" } },
});Ask: “how do I…?”
The search of the Guides panel becomes an Ask box. As the visitor types, it searches the words of every step of your walkthroughs (and your videos), knows that “add a colleague” means “invite your team”, and offers the best match with Show me, which starts the walkthrough at the step that answers, on the real page. Help that does the thing, rather than telling about it.
With AI answers on, Enter also gets an answer in two or three sentences, written only from your live walkthroughs (the AI is never allowed to name a button or a page they do not have), with the step to start at; when no walkthrough shares the question's words, the AI still looks for the one that answers it. It is paid from your AI allowance, limited per visitor and per site, and the same question is answered from memory. Try questions in Tools → Answers & help before your visitors do.
Example
“How do I invite someone?” answered on the page
People ask support how to do things that a walkthrough already shows. Let the Guides panel answer instead.
- 1Make the walkthroughs live (here Create your first project, Invite your team and Export a report).
- 2Tools → Answers & help → Show the Ask box is on. Type
how do I add a colleagueunder Try a question. - 3Optional: AI answers for two or three sentences written from your walkthroughs, from your AI allowance.
What visitors get: the visitor types a question in the Guides panel; the best walkthrough comes up with Show me, which starts it at the step that answers, on the real page.
<button onclick="Bana.ask('How do I invite someone?')">?</button>| Switch | What it does |
|---|---|
ask | The Ask box at the top of the Guides panel: it searches the words of every step of your walkthroughs (and your videos) as the visitor types, and Show me starts the best one at the step that answers. |
ai | On Enter, the AI answers in two or three sentences, only from your live walkthroughs, and picks the step to start at. From the account's AI allowance; limited per visitor and per site; the same question is answered from memory. |
placeholder | What the box says before anything is typed (up to 60 characters). |
stuck | Offer help to a visitor who clicks one spot 5 times in a row (within 1.5 s): the page's walkthrough and the Ask box. |
idle | Offer the page's walkthrough after this many seconds without a click or a key (10 to 600; 0 never), to a visitor who has not finished it. |
// Open the Guides panel with a question already asked (a "?" button in your app, say)
Bana.ask("How do I invite someone?");
// Offer help now, as when a visitor seems stuck (after an error your app noticed)
Bana.nudge();Help for visitors who look stuck
Two signs people are stuck, read in their browser: clicking one spot again and again on something that does not answer (clicks in fields, on working controls and while selecting text do not count), and a long pause on a page with a walkthrough they have not seen. A small card above the Guides button then offers the page's walkthrough and the Ask box: once per page, twice per visit at most, never during a walkthrough. Your app can offer it itself after an error it noticed, with Bana.nudge().
Example
Help for visitors who look stuck
Offer the page's walkthrough to someone who keeps clicking something that does not answer, or who has done nothing for a while on a page they have not learnt yet.
- 1Tools → Answers & help → When someone clicks the same spot again and again: on.
- 2When nothing happens for a while: after 45 seconds. Save changes.
What visitors get: a small card above the Guides button offers the page's walkthrough and the Ask box: once per page, twice per visit at most, never during a walkthrough.
try {
await saveProject();
} catch {
Bana.nudge(); // offer help now
}Surveys and feedback
Know what your users think, in the product, at the moment it matters, and get bug reports you can act on. Set up in Tools → Surveys and Feedback button. Each survey's page shows its results (NPS, the average rating, the share of 👍, the response rate, the trend per day) and every answer with the page and browser it came from, and the themes the AI finds in what people wrote; each button's page shows its messages. The Inbox brings the unread ones of all of them together.
Surveys
One question in a card in the corner (or a pop-up): NPS, satisfaction as faces, stars or numbers, effort, was this helpful?, a poll or an open question. The visitor answers with one click, or with the keyboard (digits on a scale), and the score is sent at once; a follow-up asks why, in words that follow the score, and the thank-you can carry a button (a review link only for promoters, say). A survey shows itself when its moment comes: after some seconds, when your app says something happened, as a walkthrough is finished, when the visitor is about to leave, or after they scrolled far enough. One at a time, never over a walkthrough or an announcement, to a share of visitors if you like, and never more than one every few days to the same person.
Example
An NPS survey for returning users
Acme wants its Net Promoter Score every quarter, from people who used the app before, without asking anyone twice in a few days.
- 1Tools → Surveys → New survey → Net Promoter Score. Its page opens on Edit.
- 2Question:
How likely are you to recommend Acme Projects to a colleague?; ends:Not likelyandVery likely. - 3Follow-up on, with words for each band:
What would we need to fix first?(0–6),What would make it a 10?(7–8),What do you like most?(9–10). - 4When it shows: After a while, 40 seconds. Who: Returning. If they do not answer: Ask again on a later visit. Once they answer: After 90 days.
- 5Save changes, then Make it live. On the Surveys page, Days between two questions (for all surveys) is 3. On its Overview, Try it on the sample app shows it at once.
What visitors get: a card in the corner after 40 seconds; one click on a score sends it at once, and the follow-up asks why in words that fit the score. Its Overview shows the NPS (promoters minus detractors), the response rate and the trend per day; Responses has every answer.
Example
“Was this walkthrough helpful?” after every walkthrough
Find out which walkthroughs help and which leave people stuck.
- 1Tools → Surveys → New survey → Was this helpful? (👍 / 👎).
- 2When it shows: After a walkthrough → Any walkthrough. Who: Everyone.
- 3Follow-up:
What was missing?for 👎 andAnything we could add?for 👍. Save changes, then Make it live.
What visitors get: the moment a walkthrough ends, a small card asks whether it helped. In its Responses each answer says which walkthrough it is about, so a walkthrough with many 👎 is easy to find and fix.
Example
How easy was it? Right after the task
Ask how easy exporting a report was, the moment someone has exported one.
- 1Tools → Surveys → New survey → Effort; question
How easy was it to export your report?. - 2When it shows: App event,
report-exported(the same event that ticks the checklist item). Save changes, then Make it live.
What visitors get: one question, only to people who just did the task, while it is fresh.
// The export starts: the checklist item ticks, and the survey shows
Bana.track("report-exported");Example
A poll you send with a link
Ask what to build next, from a newsletter or a support reply, rather than at a random moment.
- 1Tools → Surveys → New survey → Poll; question
What should we build next?; choicesGantt charts,Time tracking,A mobile app,More integrations; several choices allowed. - 2When it shows: Only when asked. Placement: Pop-up. Save changes, then Make it live.
- 3On its Overview, Try it and share it has the link: any page of your site with
#bana-survey=roadmapat the end.
What visitors get: whoever opens the link sees the poll at once; its Overview counts the choices as bars.
<!-- In an email or a help article -->
https://app.example.com/projects#bana-survey=roadmap
<!-- Or from your code -->
<button onclick="Bana.survey('roadmap')">Tell us what to build next</button>| Field | What it does |
|---|---|
name, enabled | What you call it in Tools (visitors never see it), and whether it is live. |
kind | nps (0–10), csat (1–5, drawn with style: emoji, stars or numbers), ces (1–7, how easy), thumbs (👍 / 👎), choice (a poll: options, multiple) or text (an open question). |
question, lowLabel, highLabel | The question (up to 160 characters) and the words under the two ends of the scale. |
followUp | { enabled, low, mid, high }: one more question after the score, in the visitor's own words. Its wording follows where the score falls (NPS: detractors 0–6, passives 7–8, promoters 9–10). The score is kept even if they skip it. |
thanks | { title, text, cta, ctaFor }: the thank-you, with an optional button (a review link, a walkthrough) shown to everyone (all) or only to happy visitors (high). |
trigger | When it shows itself: { kind: "delay", seconds }, { kind: "event", name } (your code calls Bana.track(name)), { kind: "tour", tour } (a walkthrough's id, or any, as it is finished), { kind: "exit" } (the pointer heads for the tabs, on computers), { kind: "scroll", percent }, or { kind: "manual" } (only Bana.survey(id) and #bana-survey=<id>). |
audience, traits, pages, sites, start, end | Who is asked and where, the same as announcements. |
sample | The share of visitors asked (1 to 100), the same visitors each time. |
frequency, recur | once (never again after it showed) or until-answered (up to 3 times, on visits 2 days apart); and after an answer, ask again after recur days (90 is usual for NPS; 0 never). |
placement | corner (a card above the Guides button) or center (a pop-up). |
// One of the account's surveys, now, whoever the visitor is (after a support chat, say)
Bana.survey("nps");
// The moment a survey waits for: "Ask after an app event" → export-done
Bana.track("export-done");
// Or from a link anywhere: an email, a support reply
// https://app.example.com/dashboard#bana-survey=nps
Bana.on("survey-answer", ({ survey, kind, score, band }) => {
myAnalytics.track("Survey answered", { survey, score, band });
});Feedback buttons
A tab on the edge of every page (or a line in the Guides panel, and your own buttons) opens a form. Make up to 5 buttons when one is not enough, each with its own words, kinds of feedback, pages and messages: one for the app, one for the docs. Each opens a form: what kind of feedback it is, a few words, the part of the page it is about (point at it), and a screenshot the visitor marks up: a box around the problem, a blur over anything private. Password and card fields, and anything you mark with data-bana-redact, are blurred from the start, and blurring happens in the visitor's browser, so what is hidden never leaves it. With the page's technical details on, a report also carries the browser, the window, the page's last errors and the steps before it (the names of the buttons and links clicked and of the fields typed in, never what was typed or shown). From a button's messages, a report copies as Markdown, ready for any tracker or chat.
Example
A feedback button with screenshots and the steps before
Let any user report a problem from any page, with enough detail to reproduce it.
- 1Tools → Feedback button → New button → A feedback tab: a tab on the edge, right side, words
Feedback. Make another for the docs when they need words of their own. - 2Kinds:
Idea,Problem,Praise,Question. Keep Point at it, Screenshot and Technical details on; email Optional. - 3Save changes, then Make it live. New messages arrive under the button's Messages, and in Tools → Inbox with the others.
What visitors get: a Feedback tab on every page opens a short form; the visitor can point at the part of the page and add a screenshot they mark up and blur. The message shows with the page, the browser, the last errors and the buttons they clicked before; Copy as a bug report (Markdown) turns it into a ticket for any tracker.
<button data-bana-feedback>Report a problem</button>
<button data-bana-feedback="idea">Suggest an idea</button> <!-- opens on that kind -->
<button data-bana-feedback="bug" data-bana-feedback-button="docs">Mistake in the docs</button> <!-- opens that button's form -->
<!-- Never in a screenshot -->
<div data-bana-redact>{{ customer.iban }}</div>| Setting | What it does |
|---|---|
name, enabled | What you call it in Tools (visitors never see it), and whether it is live. Make one per place that needs its own words, kinds of feedback or inbox: the app, the docs, the checkout. |
placement, side, label | tab (a tab on the edge of every page, left or right, with its words) or panel (a line at the bottom of the Guides panel only). |
title, intro, thanks | The form's heading, the line under it, and what the visitor reads once it is sent. |
categories | The kinds of feedback (1 to 6): { id, label, icon }, icons idea, bug, praise, question, other. |
pin | The visitor can point at the part of the page it is about: you get its name and a CSS selector. |
screenshot | The visitor can add a screenshot of the tab (the browser asks once), highlight what is wrong and blur what is private, in their browser, before it is sent. |
context | The browser, the window, the language, the last errors of the page and the steps before the report (what was clicked and which fields were typed in, never what was typed). |
email | optional, required or off. Never asked of visitors your app identified. |
pages, sites | Where the tab shows (* for anything); empty for everywhere. A page shows one button: of those meant for it, the one that names pages of its own comes before one meant for every page, and among equals the first in your order. |
<!-- Any element of yours opens the form; its value picks a kind of feedback -->
<button data-bana-feedback="bug">Report a problem</button>
<a href="#bana-feedback=idea">Suggest an idea</a>
<!-- With several feedback buttons, name the one to open by its id (without it: the one the page shows) -->
<button data-bana-feedback="bug" data-bana-feedback-button="docs">Report a mistake in the docs</button>
<a href="#bana-feedback=idea&button=docs">Suggest a page</a>
<script>
// From your code, with words to start from (after an error your app caught, say)
Bana.feedback({ category: "bug", text: "The export failed: ", button: "app" });
// Hide anything private from screenshots (password and card fields always are)
// <div data-bana-redact>…</div> or data-bana-redact="cover"
Bana.on("feedback-send", ({ button, category, page, screenshot, pinned }) => {
console.log("Feedback sent", button, category, page, screenshot, pinned);
});
</script>Limits and privacy
Every answer and message lands in your inbox, and on the page of the survey or button it came from. Only what visitors give is kept, and the page's path (never its query, which often holds tokens); no IP address; a visitor is named only when your app said who they are. Answers are checked against your setup: a survey that is off, a kind of feedback you do not have, or more than a person could send is refused.
| Setting | What it does |
|---|---|
throttle | A visitor is shown at most one survey in this many days (0 to 30; 7 by default). |
| Link or attribute | What it does |
|---|---|
#bana-announcement=<id> | On any page of your site: shows that announcement when the page opens (a “See what's new” in an email), whoever the visitor is. Each announcement's page in Tools has its link. |
#bana-survey=<id> | On any page of your site: shows that survey when the page opens (an email's “Rate us”, a support reply). |
#bana-feedback | Opens the feedback form; #bana-feedback=bug with that kind chosen, and &button=<id> for one of several feedback buttons (otherwise the one the page shows). |
data-bana-feedback | On any element: a click opens the form, with the kind of feedback its value names. |
data-bana-feedback-button | On the same element: which feedback button's form it opens (its id; without it, the one the page shows). |
data-bana-redact | On any element: blurred on screenshots from the start (cover paints it over). |
A page for each, with its numbers
Announcements, surveys and feedback buttons are not one setting each: make as many as you need (up to 20 announcements, 12 surveys and 5 feedback buttons), name them for yourself, and open one to see how it is doing, change it with a live preview beside the form, copy it, switch it off or delete it.
| Of… | Its page shows |
|---|---|
An announcement | Overview: how often it was shown, how many pressed its button and how many closed it, day by day over 7, 30 or 90 days, its setup at a glance, and a link that shows it on any page of your site. Edit: its form, with a live preview beside it. |
A survey | Overview: the score (NPS, the average rating, the share of 👍 or the votes of a poll), the response rate, how the answers spread, and the pages it was answered on. Responses: every answer, one by one, to read, resolve or archive, with the themes the AI finds in what people wrote. Edit. |
A feedback button | Overview: how often its form was opened, how many messages it got, the kinds of feedback, how many had a screenshot, the pages they came from, and the HTML that opens it from a button of your own. Messages: what visitors sent, with the page, the browser and the steps before, to read, resolve, archive or copy as a bug report. Edit. |
What is counted is how often each was shown, pressed or closed, day by day, and the answers and messages visitors chose to send. Nothing about a person: no cookie, no identifier, and robots are left out. The counts are checked against what is live for the site asking, so an announcement that is off, or meant for another site, cannot be counted. One that is scheduled for later is not even sent to your site until the day before its first day. A change you make reaches visitors within a couple of minutes, and the numbers are kept for 120 days.
Say who the user is
Without it, everything is kept per browser. With it, each person on a browser keeps their own checklist and what they were shown, and announcements and surveys can be meant for traits (a plan, a role). Use your own id (or a hash of it): nothing that names the person is needed, and nothing leaves the browser. The WordPress plugin does this for signed-in users by itself, by role.
<!-- Once the user is signed in. Works before or after the script has loaded. -->
<script>
(window.Bana = window.Bana || []).push(function (bana) {
bana.identify(user.id, { plan: user.plan, role: user.role });
});
</script>
<!-- When something on the checklist happens in your app -->
<script>Bana.track("project-created");</script>
<!-- Signing out: what follows is an anonymous visitor's -->
<script>Bana.identify(null);</script>Example
Surveys and announcements for one plan
Show the upgrade announcement only to users on the free plan, and keep each person's checklist apart on a shared computer.
- 1Add one line where your app knows who is signed in (below).
- 2In an announcement or a survey → Only people with these traits →
planisfree.
What visitors get: only free users see it; two people who share a browser each keep their own checklist and what they were shown.
(window.Bana = window.Bana || []).push((bana) => bana.identify(user.id, { plan: user.plan, role: user.role }));
// On sign-out
window.Bana?.identify?.(null);Your analytics
Switch on Send events to my analytics (Tools → Add to your site) and what visitors do (walkthroughs started, finished or skipped, checklist items, announcements shown and clicked, questions asked, help offered) goes to the analytics already on your site, as bana_… events, next to everything else you measure. Nothing is loaded: the tools found on the page get the events.
| Tool | What it receives |
|---|---|
Google Analytics (gtag) | gtag("event", "bana_tour_complete", { tour, event_category: "bana" }) |
Google Tag Manager | dataLayer.push({ event: "bana_tour_complete", tour }) (when there is no gtag) |
Segment, RudderStack | analytics.track("bana_tour_complete", { tour }) |
PostHog | posthog.capture(…) |
Mixpanel, Amplitude, Heap, Umami | mixpanel.track(…), amplitude.track(…), heap.track(…), umami.track(…) |
Plausible | plausible("bana_tour_complete", { props }) |
<!-- The account decides (Tools → Add to your site → Send events to your analytics); a page can say otherwise -->
<script src="…/bana.js" data-key="bk_…" data-analytics="off" defer></script>
<script>
// Or listen yourself
Bana.on("checklist-complete", ({ title, total }) => myAnalytics.track("Onboarding done", { title, total }));
document.addEventListener("bana:announcement-click", (event) => console.log(event.detail));
</script>The Chrome extension
Besides recording, the Walkthrough Recorder extension has two more things on its right-click menu:
- Try my walkthroughs on this page: with your site key in its options, it shows your live walkthroughs, checklist, announcements and Ask box on any page of your site, exactly as visitors will get them once the script is added. Only you see it, and the site is not counted as installed. Show it to your team before anyone touches the code.
- Make a video of this page (or of the text you selected): Videobana opens with the page's words ready for the AI writer, so the video sticks to what the page says. It reads pages behind a sign-in too (the words are read in your browser), and nothing is sent until you press Generate.
Reference
Methods
| Method | What it does |
|---|---|
Bana.identify(id, traits?) | Who the visitor is: their checklist and what they saw are kept for them (what they did before signing in counts too), and announcements can be meant for some traits. Bana.identify(null) on sign-out. Nothing leaves the browser. |
Bana.track(name) | Something happened in the app: a checklist item that waits for it is done. |
Bana.complete(itemId) | Marks a checklist item done, whatever it waits for. |
Bana.checklist(definition?) | With a definition, the page's own checklist takes the place of the account's (null goes back). Answers { open(), progress(), reset() }. |
Bana.announce(id | definition) | Shows an announcement now: one of the account's by its id, or one written here. Answers a handle with close(). |
Bana.ask(question?) | Opens the Guides panel with the question asked in the Ask box. |
Bana.nudge(reason?) | Offers help now (stuck or idle), once per page and twice per visit at most. |
Bana.survey(id) | Shows one of the account's surveys now, whoever the visitor is and whatever they answered before. False when there is no such survey for this site. |
Bana.feedback(options?) | Opens the feedback form, with { category, text } to start from, and { button } to name one of several feedback buttons (otherwise the one the page shows). Resolves false when there is no such button. |
Bana.closeFeedback() | Closes the survey or the form that is open (what was written in the form is kept while the page is open). |
Bana.engage(kit) | The whole kit from code ({ checklist, announcements, assistant, analytics }): for a site without an account, or to try one. The account's kit wins when it arrives. |
Bana.push(fn) | Runs fn(bana): (window.Bana = window.Bana || []).push(…) works before and after the script has loaded. |
Bana.visitor | Who the SDK thinks the visitor is, their traits and how many visits they made: for checking a setup. |
// No Videobana account needed: the whole kit, from code
Bana.engage({
checklist: { title: "Get started", items: [/* … */] },
announcements: [{ id: "launch", style: "banner", title: "We just launched v2", cta: { label: "What's new", action: { kind: "link", url: "/changelog" } } }],
assistant: { ask: true, stuck: true, idle: 45 },
analytics: true,
});Events
As Bana.on(type, listener) and as bana:<type> events on document, besides the events of walkthroughs.
| Event | Detail |
|---|---|
checklist-item | { item, title, done, total }: an item was done. |
checklist-complete | { title, total }: the last item was done. |
announcement-show | { announcement, title, style, from }: shown by itself (auto), opened from What's new (list) or by code (code). |
announcement-click | { announcement, title }: its button was pressed. |
announcement-dismiss | { announcement, title }: closed without pressing it. |
ask | { question, page, matches }: a question was asked (Enter) in the Ask box. |
nudge | { reason, page }: help was offered (stuck or idle). |
survey-show | { survey, kind, from }: shown by its own moment (delay, event, tour, exit, scroll) or by code and links (code). |
survey-answer | { survey, kind, score, choices, band }: answered (the score is sent at once). Never the words. |
survey-comment | { survey, kind }: words were added in the follow-up. |
survey-dismiss | { survey, kind, stage }: closed before answering. |
survey-click | { survey }: the thank-you's button was pressed. |
feedback-open | { from, button }: the form of that feedback button opened (from: tab, panel, attribute, link or code). |
feedback-send | { button, category, page, screenshot, pinned }: sent. Never the words. |
Script tag options
| Attribute | What it does |
|---|---|
data-analytics | off keeps events away from the page's analytics; alone (or on) sends them whatever the account says. |
data-nudges | off: never offer help to visitors who seem stuck on this site. |
data-ask | The Ask box in the Guides panel without an account kit (it searches the page's own tours and videos). |
What the browser remembers
| Key | What it holds |
|---|---|
bana:who | The id and traits the page gave with Bana.identify. |
bana:visits | How many visits the browser made, and when it first came (for first-visit and returning audiences). |
bana:visit | The visit going on: shared by every tab of the site, it ends after half an hour away (for “once per visit”). |
bana:engage:<who> | Per person (user:<id>, or anon): the checklist items done, whether it opened by itself or was hidden, and what they did with each announcement. |
bana:feedback:<who> | Per person: when each survey showed, was answered or closed, and when the last one showed (for the throttle). |
bana:feedback-seed | A random word, so the same visitors stay in a survey's sample. |
bana:trail (sessionStorage) | The last steps and errors of the visit (half an hour at most), sent only with a feedback message when the account asks for the page's details. |
GET and PUT /api/walkthroughs/engage with an API token, and each announcement, survey and feedback button on its own under /api/walkthroughs/engage/announcements, /surveys and /buttons (with /{id}/stats for its numbers). Sites read it with their walkthroughs from GET /api/public/walkthroughs?key= and report what visitors saw with POST /api/public/engage/events. The Ask box asks POST /api/public/assist; answers and messages are sent to POST /api/public/feedback, and the inbox is GET /api/feedback (with a CSV export and the results per survey). See the HTTP API.