Developer GuideStart
Developer overview
What a developer can do with Venbit Intelligence, from the one-line install and the venbit() function to form tracking, sign-ups and MCP read access.
You install Venbit Intelligence with one script tag in the <head> of every page. After that it counts page views, clicks, phone taps and form sends by itself. Anything else, your code reports with the venbit() function.
<script defer crossorigin="anonymous" src="https://vnbt.app/m.js?s=KEY" data-site="KEY"></script>KEY stands for your site's key. You'll find the whole line, key included, in the dashboard under Settings, then Tracking, as Your tracker line.
What you can do
| I want to... | Read this |
|---|---|
| Put the tracker on a site | Install the tracker |
| Find the steps for WordPress, Shopify, Webflow and others | Platform guides |
| Check that visits are arriving | Verify your install |
| Use it in React, Next.js, Vue or SvelteKit | Single-page apps |
| Report a lead, an event or a missing page from code | JavaScript API |
| Track a form that's sent with JavaScript | Form tracking |
| Label a button, or keep a field private, in HTML | Data attributes |
| Count sign-ups, subscriptions and purchases | Sign-ups and purchases |
| See what's collected and what isn't | What the tracker collects |
| Stop capturing typed values, or leave your own visits out | Privacy controls |
| Allow the tracker in a Content Security Policy | Content Security Policy |
| Serve the tracker from your own domain | First-party proxy |
| Track installs of an iPhone or Android app | App tracking overview |
| Let Claude, ChatGPT or Cursor read the numbers | What is Venbit MCP? |
How a page view travels
Because the script tag is deferred, it never holds up the page. What the tracker sees gets batched and sent a few seconds after load, then again when the visitor leaves or switches tabs.
Missing pieces you might expect
There's no public REST API, so you can't query visits or leads over plain HTTP with an API key. Programmatic read access goes through Venbit MCP instead, which gives an AI assistant read access to the sites on your account.
Venbit won't call a URL of yours when a lead arrives either. There are no customer webhooks. Owners get leads by push notification and email (see Notifications and alerts).
And venbit() has no identify call, so there's no way to attach a user id to a visitor.
If you're not sure where your own code should call venbit(), give this to a coding agent (Claude Code, Cursor or Copilot) in your project:
Look through this codebase and list every place that should report to Venbit with venbit() once the tracker tag is in the shared <head>: forms sent with fetch or drawn by a component (venbit('form_success') and venbit('form_failure')), account creation (venbit('signup')), plan payments (venbit('subscribe')), the order confirmation (venbit('purchase') with the order id) and client-side not-found screens (venbit('404')). Show the list with file and line before changing anything.Where next
Common questions
Does Venbit have a REST API?
No. Venbit Intelligence doesn't offer a public REST API for reading visits or leads over plain HTTP with an API key. For programmatic reads, use Venbit MCP, which lets an AI assistant read the sites on your account.
Does Venbit send a webhook when a new lead arrives?
No. Venbit won't call a URL of yours when a lead arrives. Owners hear about new leads by push notification and email, which they set up in Notifications and alerts.
Can I identify logged-in users with Venbit?
No. There's no identify call in venbit(), so you can't attach your own user id to a visitor. The signup, subscribe and purchase calls can carry a name and email, but only for that event.
Will the Venbit tracker slow down my website?
It shouldn't. The script tag is deferred, so it never holds up the page, and the file is about 23 KB gzipped. Data goes out in batches a few seconds after the page loads, and again when the visitor leaves or switches tabs.
Last updated . Something wrong or missing on this page? Tell us from Settings, then Support.

