Skip to the page

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.

HTML
<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 siteInstall the tracker
Find the steps for WordPress, Shopify, Webflow and othersPlatform guides
Check that visits are arrivingVerify your install
Use it in React, Next.js, Vue or SvelteKitSingle-page apps
Report a lead, an event or a missing page from codeJavaScript API
Track a form that's sent with JavaScriptForm tracking
Label a button, or keep a field private, in HTMLData attributes
Count sign-ups, subscriptions and purchasesSign-ups and purchases
See what's collected and what isn'tWhat the tracker collects
Stop capturing typed values, or leave your own visits outPrivacy controls
Allow the tracker in a Content Security PolicyContent Security Policy
Serve the tracker from your own domainFirst-party proxy
Track installs of an iPhone or Android appApp tracking overview
Let Claude, ChatGPT or Cursor read the numbersWhat is Venbit MCP?

How a page view travels

From a page load to a number you can read

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.