Skip to main content
The Website visitors source identifies the companies that visit your site, never the person. It runs on a tracking script you install on your website, which stores cookies in the visitor’s browser. Where the law requires consent for cookies (for example under the GDPR in Europe), start the identification only after the visitor accepts your cookie banner. This page shows how.
You are the data controller for your site. Before installing the script, Gojiberry asks you to confirm that you have a privacy notice, a consent mechanism, and the authority to install it.

What the script stores

The script keeps first-party cookies on your domain for up to 1 year, to recognize returning visitors. With consent mode on, it stores nothing until the visitor accepts. Example wording for your cookie policy:
We use Gojiberry to find out which companies visit our website. Gojiberry matches visitors’ IP addresses to the company they work for and records the pages they view, at the company level. It keeps first-party cookies for up to one year to recognize returning visitors.
Your snippet is in Gojiberry, on the Website visitors source of your agent (Add leads → Website visitors → View script), and in the “Install your Goji website visitor tracking snippet” email. It contains a commented-out consent line:
1

Uncomment the consent line

Remove the <!-- and --> around the second <script> line, and keep it before the wv.js script. Leave the rest unchanged:
With this line, the script loads but waits: no identification runs and nothing is stored in the browser.
2

Call init() when the visitor accepts

In your cookie banner’s “Accept” handler, call:
The identification then starts. Ready-made examples for common banners are below.
3

Call it again on every page for returning visitors

The choice isn’t remembered by Gojiberry: call init() on every page load where the visitor has already accepted. Most banners fire their accept event on page load when consent was given earlier; if yours doesn’t, check its stored consent and call init() yourself.
You can call init() at any time, even before wv.js has finished loading: the consent line remembers the call. Calling it twice does nothing more.
Without the consent line, the identification starts as soon as the page loads and sets its cookies right away. The script doesn’t detect your cookie banner on its own: the consent line is the only consent gate.
Pick the consent category that your privacy notice lists company identification under, usually marketing.
If your banner stores the choice itself, apply it on page load too:
Some setups block every third-party script until consent, for example a Google Tag Manager tag that fires only after consent, or a banner that only activates blocked scripts after “Accept”. In that case, add the snippet without the consent line to that tag or blocked script. It then loads, and starts identifying, only once the visitor accepts. The difference: with the consent line, your site requests the Gojiberry loader on every page, and only the identification waits for consent. Loading the whole snippet after consent means no request goes to Gojiberry before “Accept”.

Check that it works

  1. Open your site in a private window and open the browser’s developer tools.
  2. Before accepting, the Network tab shows wv.js but no request to visitor.app.gojiberry.ai, and Application → Cookies shows no new cookie on your domain.
  3. Accept the banner: a script loads from visitor.app.gojiberry.ai, and the cookies appear.
The Verify now button in Gojiberry works without accepting the banner: it only checks that wv.js loads on your saved domains.

Content Security Policy

If your site sends a Content Security Policy header, allow these hosts:
  • script-src: https://visitor.wv.gojiberry.ai and https://visitor.app.gojiberry.ai
  • connect-src: https://visitor.api.gojiberry.ai

Good to know

  • Withdrawn consent. Once the identification has started on a page, it keeps running until the visitor leaves or reloads that page (on single-page sites, until a full reload). If your banner no longer calls init(), it doesn’t start on the next pages. To also delete the cookies at that moment, call window.Gojiberry && window.Gojiberry.denyCookieConsent && window.Gojiberry.denyCookieConsent();.
  • Countries. The identification only runs for visitors from the countries your agent targets. Other visitors receive an empty script, accepted banner or not.
  • Billing. Consent changes nothing in billing: only a company’s first identified visit is billed.