DocsOpen Henkan Vision
Set up

Recording consent

Choose whether Vision waits for analytics consent and connect it to your consent banner.

Up to date with v1.64.8Updated 26 October 20263 min read

Vision respects your visitors' consent choice out of the box: by default, it records a visitor only after they accept analytics cookies in your consent banner. Without consent, Vision creates no recording and no visitor identifier.

Each site has its own setting, in step 2 of Install, Choose when to record.

Step 2 of the Install page, Choose when to record.
1
After consent (recommended). The default: Vision waits for explicit analytics consent.
2
Without a banner. Vision records every visit, whatever a consent tool says.

Change the setting#

  1. Open Install Select Install. If your organisation has several sites, pick the site first in the Site section of the Henkan logo menu.
  2. Choose a mode Under Choose when to record, select After consent or Without a banner. It is saved at once. Only organisation owners can change it.

The vendor keys for your consent tool are under Connect your consent tool, below the menu.

ModeWhen Vision records
Record only after consent (recommended)Only when a supported consent tool reports that analytics consent was granted. If no consent tool is detected, nothing is recorded.
Record without a consent bannerAlways. Consent tools on the site are not read, so an unanswered banner or a refusal does not stop recording.

Vision reads the visitor's choice directly from the consent tool on the page and checks it again every 2 seconds.

  • Refusal. In After consent mode, recording stops and anything not yet sent is discarded.
  • Several tools. In After consent mode, a refusal or an unanswered banner in any of them wins.
Consent toolWhat Vision looks for
AxeptioA vendor with the key henkan_vision or henkanvision. Without one, the visitor's choice for a session replay tool of the same project (Hotjar, Clarity, Contentsquare and similar), else for Google Analytics.
TarteaucitronA service with the key henkanvision, or the key you set in tarteaucitronAnalyticsKey.
IAB TCF v2 (any TCF banner)Consent for purpose 1 and a measurement purpose (8 or 9). Set tcfVendorId to also require consent for a specific vendor.
UsercentricsA service named "Henkan Vision", or the service id you set in usercentricsServiceId.
DidomiThe "analytics" or "measure audience" purpose.
OneTrustThe performance cookies group (C0002).
CookiebotThe statistics category.
CookieYesThe analytics category.
Shopify customer privacyAnalytics consent, when the store uses Shopify's own banner. A store with another banner follows that banner.
Google Consent Modeanalytics_storage set to granted. The latest update counts; a default sent later (for example by a tag manager) never overrides it. Until the visitor answers, a region-specific denied default (for example for the EEA) keeps Vision from recording.

Point Vision to your own service keys#

If your consent tool uses a different name for Henkan Vision, declare it before the Vision script loads:

<script>
  window.__hvConsent = {
    tcfVendorId: 1234, // IAB TCF: also require this vendor's consent
    usercentricsServiceId: "AbCdEf123", // Usercentrics: the service id for Henkan Vision
    tarteaucitronAnalyticsKey: "henkan", // Tarteaucitron: your service key
  };
</script>
<script async src="https://vision.henkanpartners.ai/v.js" data-site="pk_…"></script>

Set only the keys you need. Tarteaucitron's generic analytics consent is never used on its own: Vision needs henkanvision or the key you declared.

If Install says the script has loaded many times but no session was recorded, your consent tool is not granting consent to Vision.

  1. Declare Vision Add Henkan Vision as an analytics or measurement service in your consent tool, using the keys above.
  2. Accept on your site Open your site in a private window and accept analytics cookies.
  3. Browse and check Browse for at least 30 seconds, then check the status card on Install again.