Monitoring
Use your own button
Install feedbackWidget: false + Blipit.openReport()
The browser SDK puts a Report a bug button in the corner of every page. If your app already has a help menu or a header button, turn the floating button off and open the same reporter from there: screenshot, annotations, element picker, recording and context all work the same way.
2Open the reporter from any element
attachReport(element) opens the reporter when the element is clicked. openReport() opens it from your own code, for example a menu item or a keyboard shortcut.
<button id="report-bug">Report a bug</button>
<script>
Blipit.attachReport(document.getElementById("report-bug"));
</script>menu.on("report", () => Blipit.openReport());3React and Next.js
@blipit/nextjs and @blipit/browser export openReport and attachReport. Pass feedbackWidget={false} to the Blipit component, then call openReport() from any client component.
"use client";
import { Blipit, openReport } from "@blipit/nextjs";
export function Monitoring() {
return <Blipit publicKey={process.env.NEXT_PUBLIC_BLIPIT_KEY!} feedbackWidget={false} />;
}
export function ReportBug() {
return <button onClick={() => openReport()}>Report a bug</button>;
}Good to know
- The reporter itself (blipit-report.js) loads on the first open from the same folder as blipit.js, so add https://blipit.io to script-src if your site has a Content Security Policy.
- Hiding the button in the dashboard hides it on every site that uses the key; openReport() and attachReport() still work there too.
Stuck? Email support@blipit.io. Keys and the exact DSN for each project are under API keys in app.blipit.io.
