Skip to the page

Developer GuidePrivacy and delivery

Privacy controls

Keep a field private, stop sending typed form values, give visitors an opt-out link, leave your own visits out, and load the tracker after consent.


You get six controls over what Venbit collects. There's an attribute for one field or section and another for the whole site, an owner switch in Settings, an opt-out link for visitors, a switch for your own browser, and a way to hold the tracker back until a visitor agrees. Each is a line of HTML or a switch. For what's collected in the first place, see What the tracker collects.

ControlWho sets itWhat it does
data-venbit-private or data-capture="off" on a field or containerDeveloperThat field's value is never read.
data-capture="off" on the install lineDeveloperNo typed value leaves the browser, on any form.
Keep what they typedOwnerOff: typed values are discarded on arrival and not saved.
?vb_optout=1VisitorThat browser isn't counted on this site.
Leave my visits outOwnerThe owner's own browser isn't counted.
Load after consentDeveloperNothing runs until the visitor agrees.

Keep one field or section private

Put data-venbit-private on a field and its value is never read. On a container, the attribute covers every field inside. You can use data-capture="off" on a field or container to the same effect.

HTML
<form action="/quote" method="post">
  <input name="name" autocomplete="name">
  <input name="email" type="email" autocomplete="email">

  <!-- One field -->
  <input name="date_of_birth" data-venbit-private>

  <!-- A whole section -->
  <fieldset data-venbit-private>
    <input name="policy_number">
    <input name="claim_reference">
  </fieldset>

  <button type="submit">Request a quote</button>
</form>

A sent form still counts as a lead. The owner won't see the private fields in the Inbox, and focusing or typing in one sends nothing.

Password, card and similar fields get skipped with no attribute at all. That skip goes by the field's name, id and autocomplete, so give a sensitive field with an unusual name the attribute yourself. What the tracker collects has the full list.

Stop sending typed values from the whole site

Add data-capture="off" to the install line.

HTML
<script defer crossorigin="anonymous" src="https://vnbt.app/m.js?s=KEY" data-site="KEY" data-capture="off"></script>

Once it's on the tag:

  • Form events are still sent (started, send pressed, accepted, abandoned), so form leads are still counted. They carry no values.
  • Field labels are still sent, so you can see where people stop. What they typed isn't.
  • venbit('signup'), venbit('subscribe') and venbit('purchase') drop the name and email you pass. The plan, amount, currency and order id are still sent.
  • Block spam can't hold a send in the browser, because there's no message for it to look at.

Turn off saving what visitors typed

Owners get the same choice as a switch.

  1. Open the dashboard and go to Settings, then Goals.
  2. Open the details of Forms sent.
  3. Turn off Keep what they typed and save.

This differs from the script attribute in one way. With the switch off, the browser still sends the values, and Venbit throws them away on arrival without saving them. With data-capture="off" they never leave the browser. If the values mustn't travel at all, use the attribute.

Two ways to keep typed values out, and how far the values travel in each

When a visitor opens any page of your site with ?vb_optout=1 on the address, that browser stops being counted. ?vb_optout=0 undoes it. Point the link at your own site, since the choice is stored in the browser for your domain.

Add something like this to your privacy page, with your own domain:

HTML
<p>
  This site uses Venbit Intelligence to count visits.
  <a href="https://harborroofing.example/?vb_optout=1">Stop counting my visits</a>
  or
  <a href="https://harborroofing.example/?vb_optout=0">count them again</a>.
</p>

Or have a coding agent add it for you:

Add a Venbit opt-out to our privacy page. Add a sentence saying the site uses Venbit Intelligence to count visits, a link to https://[your domain]/?vb_optout=1 labelled "Stop counting my visits", and a link to https://[your domain]/?vb_optout=0 labelled "count them again". Both links must use our own domain.

The opt-out covers one browser on one device, so a visitor's phone and laptop each need the link. It lasts until they clear the site's data or open the ?vb_optout=0 link. From then on nothing about the visit is sent, whether page views, clicks or form activity.

It won't delete ids already stored in the browser, and past visits stay too. A visitor who wants past data removed asks the site owner. In a browser that blocks storage entirely, the choice can't be remembered past the page.

You can set the same flag from your own code, say from a preferences panel:

JavaScript
// Stop counting this browser
localStorage.setItem("vb_optout", "1");

// Count it again, from the next page load
localStorage.removeItem("vb_optout");

Leave your own visits out

If you check your own site every day, you can keep those visits out of the numbers.

  1. Open Settings, then Tracking.
  2. Under Your own visits, turn on Leave my visits out.
  3. Your site opens in a small window to save the choice. Close it once the page loads.

Behind the scenes the switch opens your site with ?vb_optout=1, which makes it the same opt-out a visitor gets. Turn it on in each browser and on each phone you use. Turning it off opens the site with ?vb_optout=0.

Some sites wait for a visitor to agree before running analytics. If that's your policy, leave the install line out of the page and add the script from your consent code. The tracker works fine when it's added after the page has loaded.

Pages viewed before the visitor agrees are not recorded
HTML
<button id="accept-analytics">Accept analytics</button>

<script>
  function loadVenbit() {
    if (document.querySelector('script[data-site="KEY"]')) return;
    var tag = document.createElement("script");
    tag.src = "https://vnbt.app/m.js?s=KEY";
    tag.defer = true;
    tag.crossOrigin = "anonymous";
    tag.setAttribute("data-site", "KEY");
    document.head.appendChild(tag);
  }

  // Returning visitors who already agreed
  if (localStorage.getItem("analytics-consent") === "yes") loadVenbit();

  document.getElementById("accept-analytics").addEventListener("click", function () {
    localStorage.setItem("analytics-consent", "yes");
    loadVenbit();
  });
</script>

Swap the button and the analytics-consent key for whatever your consent banner uses. Most banner tools offer a callback that runs when a visitor accepts the analytics category, and that's where loadVenbit() goes. Tools that hold a script tag back and re-insert it after agreement also work, as long as the re-inserted tag keeps its src.

For a banner you already have, a coding agent can wire it in:

Make this site load the Venbit tracker only after the visitor accepts analytics in our consent banner. Remove the static vnbt.app/m.js script tag. In the banner's accept callback, add it once from code: src https://vnbt.app/m.js?s=KEY, defer, crossOrigin "anonymous", data-site "KEY", KEY = [your site key]. Add the queue stub window.venbit = window.venbit || function () { (window.venbit.q = window.venbit.q || []).push(arguments); }; before any venbit() call. When consent is withdrawn, run localStorage.setItem("vb_optout", "1").

Loading late has side effects. Counting starts on the page where the visitor agrees, and pages viewed before that aren't recorded. If they agree on a later page than the one they landed on, that later page becomes the visit's landing page, and the original referrer and campaign tags are never seen.

There's also venbit() to think about. If your pages call it and the tracker may never load, define a stand-in first so those calls don't throw. The tracker plays back the queued calls when it loads.

HTML
<script>
  window.venbit = window.venbit || function () {
    (window.venbit.q = window.venbit.q || []).push(arguments);
  };
</script>

If a visitor withdraws consent, set vb_optout as shown above. Sending stops at once, and the tracker stays quiet on later pages even if your loader runs.

Common questions

Does Venbit respect Do Not Track?

No. The Venbit tracker ignores Do Not Track and Global Privacy Control, and a browser that sends either signal gets counted like any other. Visitors who want out can use the ?vb_optout=1 link. Sites that want less collected can use the capture attributes.

What's the difference between data-capture="off" and Keep what they typed?

With data-capture="off" on the install line, typed values never leave the browser. With Keep what they typed turned off in Settings, the browser still sends them and Venbit throws them away on arrival without saving them.

Does opting out delete my past visits from Venbit?

No. Opting out stops a browser sending from that point on. Past visits, and ids already in the browser, stay where they are. A visitor who wants past data removed asks the site owner.

How do I stop Venbit counting my own visits?

Turn on Leave my visits out under Your own visits in Settings, then Tracking. It opts out the browser you're using, so you'll need to turn it on in each browser and on each phone.

Last updated . Something wrong or missing on this page? Tell us from Settings, then Support.