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.
Change the setting#
- Open Install Select Install. If your organisation has several sites, pick the site first in the Site section of the Henkan logo menu.
- 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.
| Mode | When 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 banner | Always. Consent tools on the site are not read, so an unanswered banner or a refusal does not stop recording. |
Supported consent tools#
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 tool | What Vision looks for |
|---|---|
| Axeptio | A 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. |
| Tarteaucitron | A 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. |
| Usercentrics | A service named "Henkan Vision", or the service id you set in usercentricsServiceId. |
| Didomi | The "analytics" or "measure audience" purpose. |
| OneTrust | The performance cookies group (C0002). |
| Cookiebot | The statistics category. |
| CookieYes | The analytics category. |
| Shopify customer privacy | Analytics consent, when the store uses Shopify's own banner. A store with another banner follows that banner. |
| Google Consent Mode | analytics_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.
Troubleshooting consent#
If Install says the script has loaded many times but no session was recorded, your consent tool is not granting consent to Vision.
- Declare Vision Add Henkan Vision as an analytics or measurement service in your consent tool, using the keys above.
- Accept on your site Open your site in a private window and accept analytics cookies.
- Browse and check Browse for at least 30 seconds, then check the status card on Install again.
