One small script is all Vision needs to record your website. Each site has its own snippet, on the Install page.
Check your site first#
Before showing the script, Vision asks where it will record: the website your visitors use, which can differ from your company name. Select Check my site: Vision reads the site's public home page and shows what it found.
| Tile | What it tells you |
|---|---|
| Platform | Shopify, WooCommerce, PrestaShop, Adobe Commerce (Magento), Salesforce Commerce Cloud, Wix, Squarespace or WordPress. On Shopify, the steps become Shopify's (see Shopify). |
| Cookie banner | The consent tool on the site, such as Axeptio, Didomi or OneTrust. Vision then records after consent. |
| Tag manager | The Google Tag Manager container, if the site has one. The Google Tag Manager tab opens first. |
| Vision script | Whether the script is already on the page, and with this site's key. |
The check reads the home page only and installs nothing. Some sites block automated visits: you then pick your platform yourself. Select Check again after an install, or Change site to check another address: the new address becomes the site's domain.
The live checklist on the right follows the install: site checked, script loading, first session and, on Shopify, the first checkout event.
Add the snippet to your site#
- Open Install Select Install in the sidebar, or the question mark icon at the top right of any page.
- Copy the snippet Check your site if you have not yet, then select Copy script.
- Paste in the head Paste it just before the closing
</head>tag, on every page of the site. - Publish Deploy your site, and clear your site's cache or CDN if you use one.
The snippet looks like this. The data-site value is the site's public key: it only identifies the site and is not a secret.
<script
async
src="https://vision.henkanpartners.ai/v.js"
data-site="pk_4f7a2c9e1b8d4a6f9c3e5b7d1a2f8c6e"
></script>
The script loads asynchronously, so it does not delay your pages. Vision only accepts data from the site's domain or its subdomains, so a snippet copied onto another website records nothing. Visitors reading your pages through Google Translate are recorded too: Vision recognises the translated address of your own domain.
Google Tag Manager#
- Create a tag In your container, create a new tag of type Custom HTML.
- Paste the GTM version In Install, switch step 1 to Google Tag Manager, select Copy the GTM tag and paste it. Leave Support document.write turned off.
- Trigger on all pages Use the All Pages trigger, or a consent-aware trigger if your consent tool provides one.
- Publish the container Submit and publish. Changes in Preview mode do not reach real visitors.
Do not paste the plain <script async src=…> snippet in Tag Manager: Tag Manager re-creates the tag without its data-site attribute, so the recorder cannot find the site's key and nothing is recorded. The GTM version creates the script in code and keeps the key:
<script>
(function () {
var s = document.createElement("script");
s.async = true;
s.src = "https://vision.henkanpartners.ai/v.js";
s.setAttribute("data-site", "pk_your_public_key");
document.head.appendChild(s);
})();
</script>
Someone else manages your container? Send them this GTM version from Install.
Check the install#
The status card at the top of Install shows whether Vision is receiving data.
| Status | Meaning |
|---|---|
| Live — last session … | Sessions are arriving. The time of the latest one is shown underneath. |
| Waiting for your first session | No session has been recorded yet. |
| Installed via Henkan Agents tracker | Vision was loaded through the Henkan Agents tracker instead of the snippet. |
Vision also warns you about two common mistakes.
- Wrong domain. The script loaded on a domain that is not one of the site's domains, so nothing was recorded there. Add that domain as a site, or load the script on your listed domain. When the site keeps recording sessions afterwards, this only shows as a note for 7 days: the snippet was also loaded somewhere else, such as a test page.
- No consent. The script has loaded 50 times or more but no session was recorded. Your consent tool is probably not granting analytics consent to Henkan Vision. See Recording consent.
Filter by data layer values#
In step 3, Filters from your data layer, list the business values your data layer already carries (customer type, loyalty tier, cart value) to filter and compare sessions by them. See Data layer filters.
Hide or remove sensitive elements#
Vision masks every form field value in the browser and never records password or payment fields. To protect more of a page, add one of two HTML attributes:
| Attribute | Effect |
|---|---|
data-hv-mask | The element stays in the replay, but its text is replaced with asterisks. |
data-hv-block | The element is left out of recordings entirely. |
<p class="customer-name" data-hv-mask>Camille Martin</p>
<div class="loyalty-card" data-hv-block>…</div>
See Privacy and security for everything that is masked automatically.
Keep your own visits out#
- Create the link In Keep your own visits out, select Exclude my browser.
- Open it everywhere The link opens your website with
?hv_exclude=1. The script sets a cookie and stops recording that browser. - Share it Send the link to teammates and agencies who browse the site often.
Excluded visits are never recorded and never count toward your quota. The cookie lasts about 13 months, so open the link again if you clear your cookies.
Add another site#
- Select Add a site On Install, select Add a site. Only owners can add sites.
- Enter the details Enter a Site name and Domain, then select Add site.
- Install its snippet Vision switches to the new site. Copy its own snippet: each site has a different public key.
Switch sites from the Henkan logo menu at the top of the sidebar (Site section). Every page shows data for the selected site, except Team, API & MCP and Usage, which cover the whole organisation.
Choose what a site records#
Organisation owners set what Vision records in Settings, on the General tab, site by site. Every change applies to new sessions and is listed under Recent changes with who made it.
- Name, time zone and currency. The name shown in Vision and in emails. Session times are shown in the site's time zone; days and months stay in UTC so figures add up the same for everyone. The currency is kept for order values. Select Save after a change.
- Consent. Whether Vision waits for your cookie banner. See Consent.
- Share of visitors recorded. 100%, 75%, 50%, 25% or 10% of visits. Near the quota, Vision still halves the share on its own.
- Pages never recorded. Up to 20 paths, one per line. An exact path (
/preview) or everything that starts with it (/admin/*). The check runs when a page loads: a page reached without a full page load, inside a single-page app, is still recorded. - Your own team's visits. Up to 20 addresses or ranges (
203.0.113.7,203.0.113.0/24). Visits from them are not recorded and never count. Add my current address fills in the address you are browsing from. On the move, use Exclude this browser instead.



