Docs › Getting started
Install Kolvantage
To use Kolvantage on a website, you add the website in the dashboard and put one small script on every page. All the tools run from that script: recordings, heatmaps, surveys, A/B tests, events, forms, the live chat and web push. You turn tools on and off in the dashboard, not in the script.
Add your website
- Log in at app.kolvantage.com.
- Open Settings in the menu on the left (with All websites picked it lists your websites), and click + Add website. (Inside a website's Settings, it is under the sections on the left.)
- Enter the Domain, for example
example.com. You can paste a full address: Kolvantage keeps only the domain, withoutwww.. The Name fills in from the domain; change it if you like. - Click Add website.
Kolvantage opens the website's Settings → Installation, with the script for this website.
Each website gets a Website ID, made from its domain (for example example-com). It's part of the script address and never changes. You can see it in Settings → General.
Add the script to your pages
Recommended: the snippet, first in the head
Copy the snippet from Settings → Installation (click Copy). It looks like this, with your own Website ID:
<!-- Kolvantage -->
<script>
(function (w, d, src, ms) {
var hide = true;
try { hide = localStorage.getItem('mh_ab_on') !== '0'; } catch (e) {}
var st = d.createElement('style');
if (hide) { st.textContent = 'html{opacity:0 !important}'; d.head.appendChild(st); }
w.__shSnippet = { early: !d.body };
w.__shHide = function () { if (st.parentNode) st.parentNode.removeChild(st); };
setTimeout(w.__shHide, ms);
var s = d.createElement('script');
s.src = src; s.async = true; s.onerror = w.__shHide;
d.head.appendChild(s);
})(window, document, 'https://app.kolvantage.com/hub.js?site=WEBSITE-ID&head=1', 1500);
</script>Where to put it:
- First inside
<head>, before stylesheets and other scripts. - On every page. The easiest way is your website's shared header or layout file, so every page gets it.
- Directly in the HTML, not through a tag manager.
What it does:
- It runs your website's A/B tests before the page shows, so visitors never see the original page flash before their variant (no flicker). Split URL tests send visitors on before the page appears.
- Then it loads the main Kolvantage script in the background, for everything else.
It can't slow your website down:
- Kolvantage loads in the background.
- The page is hidden only while your website has running A/B tests, and for at most 1.5 seconds, even if Kolvantage is slow or can't be reached. If Kolvantage can't be reached, the page shows at once.
- When your website has no running tests, the page isn't hidden at all (from the visitor's second page view on).
Alternative: Google Tag Manager (or any place you can't put the snippet first)
If you can't edit your website's HTML, use the main script alone. Open Can't edit the HTML? Use Google Tag Manager instead in Settings → Installation and copy the line:
<script src="https://app.kolvantage.com/hub.js?site=WEBSITE-ID" async></script>In Google Tag Manager:
- Create a tag of type Custom HTML and paste the line.
- Choose the All Pages trigger.
- Save, then Submit and Publish the container.
Everything works with this line, except one thing: visitors in an A/B test variant may see the original page for a moment before the change (or before they're sent to the variant's address).
Replacing an older line
If your pages have an older Kolvantage line, replace it with the snippet:
hub.js?site=…&head=1withoutasync: it still works, but it makes the page wait for Kolvantage to answer. If Kolvantage were ever slow or down, your pages would load slowly.hub.js?site=…withasync, or a Tag Manager tag: works, without flicker-free A/B tests.
Having the snippet and an older line on the same page does no harm: the script runs once.
Single-page apps
In websites built with React, Vue, Angular and similar, the address can change without a new page loading. Kolvantage handles this as follows:
- The script loads once, with the first page, and keeps recording as the visitor moves around the app. Put the snippet in the app's main HTML file.
- Everything the visitor sees is in the recording, but it counts as one page view until the page is reloaded.
- Heatmaps and the page lists count that page view as the page the visitor started on.
- The Live tab shows the address the visitor is on now (it updates every 15 seconds).
If you need to count a step in your app (for example a sign-up), fire an event from your code.
Check that it works
Open Settings → Installation. The box at the top shows:
| Status | What it means |
|---|---|
| Waiting for the first recording | Nothing has arrived yet. Add the script, then open your website. The page updates by itself. |
| The script is installed and recording | Data is arriving. It shows the last visit and how many recordings there are. |
| Recording is paused | Recording is turned off in Settings → Recordings. |
The Installation check below it looks at the page views of the last 24 hours (or the last 7 days, when there were fewer than 20). It tells you:
- The script is sending data: how many page views arrived, and when the last one was.
- The recommended snippet is on the pages: on how many page views the snippet was found and placed right.
- The recommended snippet isn't on the pages yet: you use the main script alone. That's fine, but if you have a running A/B test, variant visitors may see the original page for a moment.
- Older version of the line: pages still using the older
&head=1line withoutasync, with the pages listed. - Placed too late: pages where the snippet ran after the page had started to show (for example in the
<body>). Move it to the top of<head>. - Missing on some pages: pages visited without the snippet, most visited first. Add it to them, or to your shared header.
- Checked and fixed: pages you checked with Check now that had the snippet.
Check a page now
The lists above come from earlier page views, so a page you just fixed stays listed until new visits arrive. Click Check now next to a page: Kolvantage opens it right away, like a new visitor, and looks for the snippet in its HTML. It says what it found:
- The snippet is on the page: the page leaves the list, and moves to Checked and fixed. Its earlier page views without the snippet no longer count. If later visits come without it again, it comes back.
- Visitors still get an older cached copy: the page itself has the snippet, but a cache (for example Cloudflare or a caching plugin) still serves the old copy. Clear the cache, then check again.
- In the
<body>, the older line or only the plain script line: what to change. - Not in the page's HTML: add the snippet. If you add Kolvantage with Google Tag Manager or another script, the check can't see it, because it reads the HTML without running the page's scripts.
- The website's answer when the page can't be opened (for example 404 for a page that no longer exists).
The result stays next to the page, with when it was checked. Check now needs the Owner or Admin role.
The check counts every page view, also of visits that aren't in the share of sessions you record (see Recordings settings).
You can also check in your browser. Open your website, then the browser's developer console. If Kolvantage isn't recording, it writes a line starting with [Kolvantage] not recording: and the reason, for example:
page is not on example.com: the page isn't on the website's domain (see below).recording paused: recording is paused in the settings.this IP address is excluded in the website settings: you are on an excluded IP address.unknown website: the Website ID in the script is wrong.
Allowed domains
A website accepts data only from pages on its domain and all its subdomains. A website with the domain example.com accepts example.com, www.example.com and shop.example.com. Pages anywhere else can't send data to it, even with your script.
- To use Kolvantage on another domain, add it as another website.
- To test on your own computer, add a website with the domain
localhost. - You can change the domain in Settings → General. If you leave it empty, the website accepts data from any domain. This isn't recommended: anyone could send data to it.
Other things that stop recording
Even with the script in place, a visit isn't recorded when:
- Recording is paused (Settings → Recordings → Pause recording).
- The visit isn't in the share of sessions you record (Record this share of sessions).
- The visitor's IP address is in Excluded IP addresses.
- Respect "Do Not Track" is on and the visitor's browser asks not to be tracked.
- The visitor opted out on your website (
Kolvantage.optOut(), see JavaScript API). - The browser is an automated one (for example a headless browser used by bots and test tools).
Details are in Session recordings and Privacy.
Consent
Session recording collects personal data under laws like the GDPR. Mention Kolvantage in your privacy policy and ask for consent where the law requires it. One way is to add the script only after the visitor accepts cookies. Another is to call Kolvantage.optOut() when they refuse. See Privacy.
Who can use it
- Adding websites and opening Settings needs the Owner or Admin role.