Know who visits your website (even without a form)
See who keeps coming back, the whole path they took, which ad brought them, and keep bots out of your CRM. All of it on free plans to start, with a cookie banner first.
About 1 hour
5 free tools
Cookie banner first
1 prompt that sets it up
Test it on your own site first. Nobody installed these tools while writing this page. Every step comes from each tool's own docs, read on Dec 3, 2026. Menus change, so if a button looks different, follow the tool's docs.
A cookie banner that asks first, and only then switches the trackers on.
PostHog showing every visitor's path: where they first came from, each page, each visit, and the form when they fill it. Plus session replays.
Microsoft Clarity showing recordings and heatmaps of how people use each page.
Fingerprint giving each browser an ID that stays the same even after cookies are cleared, so a returning visitor counts as the same person.
IPinfo Lite naming the network each visitor is on, a clue to mobile data or an office network.
A daily hot-lead email: people with 5 or more visits in 28 days who still have not filled your form.
Cloudflare Turnstile on your form, so bots never reach your CRM.
Tagged ad links, so you can see which ad brings leads and which one only spends.
None of this tells you a visitor's name or email. It tells you how they behave. You learn who they are when they fill your form.
Do this first
2. Before you start: consent
Tracking and fingerprinting visitors is personal data in many countries. Set up the banner before anything else.
EU and UK: you need the visitor's consent for analytics cookies and for this kind of fingerprinting. Microsoft Clarity already waits for a consent signal for visitors from the EU, UK and Switzerland, since Oct 31, 2025.
Fingerprint's own docs: if you use it for attribution (which is what we do here), you will likely need consent, the same as for cookies.
India: the DPDP Act asks for clear notice and consent before you process personal data.
Everywhere else: check the rules for your country. If you are not sure, ask a lawyer. This page is not legal advice.
A free cookie banner: CookieYes
Sign up at cookieyes.com. The Free plan is $0 a month for one domain, up to 5,000 page views a month, 100 pages per scan, with the GDPR (opt-in) template. Bigger sites need the Basic plan ($10 a month per domain at the time of writing).
Add your website, let it scan, and pick the GDPR (opt-in) layout if you have visitors from the EU or UK.
Paste its script into your site's header, or install its plugin or app (it has one for WordPress, Shopify, Wix and others).
Keep the default category names. You will check the analytics category in step 5.
Any banner worksCookieBot, Complianz, Osano or your own banner are fine too. You only need one thing from it: a signal that says "this visitor said yes to analytics". In step 5 you will connect that signal to all three trackers.
Load the tools, but keep them offPostHog's own docs say: always load the PostHog script, and keep it switched off until the visitor says yes. Do not hide the script behind the banner. That is what we do below.
Free: 1M events + 5K recordings a month
3. PostHog: each visitor's whole path
PostHog is free every month for 1 million events and 5,000 session recordings. No credit card. It stops at the free limit, so you cannot be charged by surprise.
Sign up at posthog.com and create a project. Pick US or EU hosting.
Copy your project's snippet from the setup screen. It already holds your project token.
Paste it into the <head> of every page, and add one line so it stays off until consent: opt_out_capturing_by_default: true. The end of the snippet should look like this:
When someone sends your form, record it with one line. Put it where your form's "sent" step runs:
posthog.capture('lead_form_submitted')
Your site runs on code?PostHog has a setup wizard for many frameworks: run npx @posthog/wizard in your project folder. Then add the opt-out line above.
What you will see
Where they first came from. PostHog saves the first and the latest UTM tags and the referring site for each person.
Every visit. A new visit (session) starts after 30 minutes with no activity.
Every page and click, from autocapture, plus your lead_form_submitted event.
Country and city from the visitor's IP (approximate).
Session replays: watch a visit like a video. Turn on recording in your project settings. check in your account
Keep bots out of your numbers
The PostHog script already blocks known bots before they send anything. On top of that, add the filter Is bot = false to your insights and dashboards. Web Analytics also has a Bots tab (in alpha) to see crawler traffic on its own.
Ad blockersSome visitors block tracking scripts. PostHog offers a free managed reverse proxy for its cloud users, which makes this less likely. check in your account
Free forever
4. Microsoft Clarity: recordings and heatmaps
Clarity is free forever, with no limit on traffic. It shows where people click, how far they scroll, and recordings of real visits.
Go to Settings then Setup. Pick your platform (Shopify, WordPress, Wix, Squarespace and more), or choose Get tracking code and paste it into your <head>.
In the same Setup page, turn cookies off by default (Consent Mode). Clarity then waits for a yes before it sets cookies. You will send that yes in step 5.
Turn on Bot Detection in your project settings. Clarity says some advanced bots can still get through. check in your account
Check it works: open your site, then your Clarity project. Live visitors show up right away.
Using CookieYes?Clarity's docs say it already works with CookieYes and passes the consent signal on its own. The code in step 5 covers any banner anyway.
One rule from MicrosoftDo not use Clarity on sites or apps aimed at people under 18.
Free: up to 1,000 checks a month
5. Fingerprint: same person, even after cookies are cleared
Fingerprint gives each browser a visitor ID. It is built from many small browser signals, so it can stay the same when cookies are cleared. Fingerprint says its accuracy lasts for months or years. That is the company's own claim.
Sign up at fingerprint.com on the Free plan: up to 1,000 checks a month (it also starts a 14-day trial of Pro Plus).
Go to Dashboard then API keys and copy your public key. Only the public key goes on your website. Never put a secret key in a web page.
Pick your data region (US, EU or Asia Pacific) when you set up. If it is not US, you add a region option in the code. check in your account
Add the code below. It does three things: checks the visitor once per visit (to save your free checks), sends the visitor ID to PostHog, and only runs after the visitor says yes.
How the checks are counted
Loading the Fingerprint agent is free. Each get() call (one check) counts toward your 1,000. Fingerprint suggests caching the visitor ID for 1 to 12 hours. The code below checks once per browser tab visit, so 1,000 checks is about 1,000 visits a month.
Connect it all to your banner
Paste this once, in your <head>, after the PostHog and Clarity snippets and after your banner script. Put your Fingerprint public key where it says. It switches PostHog, Clarity and Fingerprint on only when the visitor accepts analytics, and off when they say no.
<script>
// Runs Fingerprint once per visit and links the visitor ID to PostHog
async function startFingerprint() {
if (window.__fpStarted) return;
window.__fpStarted = true;
let id = sessionStorage.getItem('fp_visitor_id');
if (!id) {
const Fingerprint = await import('https://fpjscdn.net/v4/YOUR_FINGERPRINT_PUBLIC_KEY');
const fp = Fingerprint.start();
await new Promise(r => setTimeout(r, 1000)); // Fingerprint asks for 1 second after start()
const result = await fp.get();
id = result.visitor_id;
sessionStorage.setItem('fp_visitor_id', id);
}
posthog.identify(id); // same ID every visit = same person in PostHog
}
function trackersOn() {
posthog.opt_in_capturing();
if (window.clarity) clarity('consentv2', { ad_Storage: 'denied', analytics_Storage: 'granted' });
startFingerprint();
}
function trackersOff() {
posthog.opt_out_capturing();
if (window.clarity) clarity('consentv2', { ad_Storage: 'denied', analytics_Storage: 'denied' });
}
// CookieYes: a returning visitor who already said yes
document.addEventListener('cookieyes_banner_loaded', function () {
if (window.getCkyConsent && getCkyConsent().categories.analytics) trackersOn();
});
// CookieYes: the visitor clicks accept or reject
document.addEventListener('cookieyes_consent_update', function (e) {
if (e.detail.accepted.includes('analytics')) trackersOn();
else trackersOff();
});
</script>
Not using CookieYes?Keep the first three functions. Then call trackersOn() from your banner's "accepted analytics" event and trackersOff() from its "rejected" event. Every banner has one. Or use the prompt in step 10.
When they fill the formAdd their email to the same person, so the whole history now has a name: posthog.setPersonProperties({ email: theirEmail }). Do this only after they send the form.
Know the limitsThe ID that reaches the browser can be changed by a clever visitor, so Fingerprint recommends server-side checks for anything about money or fraud. For counting returning visitors, the browser ID is enough. Bot and VPN detection (Smart Signals) for websites is on the paid Pro Plus plan ($99 a month for 20,000 checks), not the free one.
Cookies cleared means the banner shows againIf a visitor clears cookies, they also clear their banner choice. Nothing is tracked until they say yes again. Then Fingerprint links the new visit to their old history.
Free: unlimited lookups, no card
6. See their network: mobile or office
IPinfo Lite is free with no card and no monthly limit. For any IP address it returns the country, the network number (asn) and the name of the company that owns that network (as_name). That name is your clue.
The network name looks like
It usually means
A mobile carrier or telecom company
Mobile data, on a phone
A business's own name, or an ISP that sells business lines
An office network
A home broadband provider
At home
A cloud or hosting company (for example Google LLC or Cloudflare, Inc.)
A VPN, a proxy or a bot, not a person at a desk
A clue, not a guaranteeMany telecom companies sell both mobile and home or office lines under one network name, people use office Wi-Fi on their phones, and VPNs hide the real network. Read it as a hint, together with the device and the pages they visit.
Sign up free at ipinfo.io/lite and copy your access token from your dashboard. check in your account
Add the attribution line to your site (the free data is under the CC BY-SA 4.0 licence, and this credit is its only requirement). Your footer or privacy page is fine:
IP address data is powered by <a href="https://ipinfo.io">IPinfo</a>
Best way: a small server function (keeps your token private)
The function sees the visitor's IP, asks IPinfo about it, and sends back only the network details. This example is a free Cloudflare Worker; save your token as a secret called IPINFO_TOKEN in the Worker's settings, never in the code. On another host the line that reads the visitor's IP is different. check in your account
export default {
async fetch(request, env) {
const ip = request.headers.get('CF-Connecting-IP');
const res = await fetch('https://api.ipinfo.io/lite/' + ip + '?token=' + env.IPINFO_TOKEN);
const d = await res.json();
return new Response(JSON.stringify({
network_name: d.as_name, network_asn: d.asn, ip_country: d.country
}), { headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': 'https://yoursite.com'
} });
}
};
Then, on your site, add this function and call it from trackersOn() in step 5 (so it only runs after the visitor says yes). Put your Worker's address where it says.
async function addNetwork() {
if (sessionStorage.getItem('net_done')) return;
const r = await fetch('https://YOUR-WORKER-ADDRESS/');
const d = await r.json();
posthog.setPersonProperties({
network_name: d.network_name, network_asn: d.network_asn, ip_country: d.ip_country
});
sessionStorage.setItem('net_done', '1');
}
// inside trackersOn(), add the line: addNetwork();
No server? Call IPinfo from the page
The /lite/me address looks up the visitor's own IP. Use this version of addNetwork() instead:
async function addNetwork() {
if (sessionStorage.getItem('net_done')) return;
const r = await fetch('https://api.ipinfo.io/lite/me?token=YOUR_IPINFO_TOKEN');
const d = await r.json();
posthog.setPersonProperties({
network_name: d.as_name, network_asn: d.asn, ip_country: d.country
});
sessionStorage.setItem('net_done', '1');
}
Your token will be visibleAnyone can read it in your page's code and use it. The Lite plan has no limit, so the risk is someone misusing your token, not a bill. If you can, use the server function. Whether the browser call works from every site (CORS) was not tested here. check in your account
Where you see itOpen any person in PostHog: network_name sits with their other properties. The hot-lead list in step 7 shows it as a column too.
Free: up to 5 alerts, 5 subscriptions
7. The hot-lead alert
The goal: every morning, an email with the people who visited 5 or more times in the last 28 days and still have not filled your form.
In PostHog, open SQL editor (or a new SQL insight) and paste the query below. It counts each person's separate visits.
SELECT
person_id,
count(DISTINCT properties.$session_id) AS visits,
max(timestamp) AS last_visit,
any(person.properties.$initial_utm_source) AS first_source,
any(person.properties.network_name) AS network
FROM events
WHERE event = '$pageview'
AND timestamp > now() - INTERVAL 28 DAY
AND person_id NOT IN (
SELECT person_id FROM events
WHERE event = 'lead_form_submitted'
AND timestamp > now() - INTERVAL 28 DAY
)
GROUP BY person_id
HAVING visits >= 5
ORDER BY visits DESC
Run it. If it shows an error, paste the error and the query into PostHog's own AI (it is built into PostHog) and ask it to fix the query. check in your account
Save it as an insight called Hot leads.
On the insight, click Subscribe and pick a daily email (or a Slack channel after you add the PostHog Slack app). Free accounts can have up to 5 subscriptions.
Want a ping only when the list grows? Make a second SQL insight that counts the rows, then click Monitor, Alerts, New alert: "increases by" more than 0, checked daily or hourly, sent to email or Slack. Free accounts can have up to 5 alerts. Real-time alerts need a paid plan.
Or use a cohortPostHog cohorts can be "Completed event $pageview at least 15 times in the last 28 days" and "Did not complete lead_form_submitted". That counts page views, not visits, and cohorts update once a day. The SQL above counts real visits.
What to do with a hot leadYou do not have their name. Open the person in PostHog: see their first source, the pages they read again and again (pricing? one service?), and watch a replay. Then make that page answer their question better, or retarget that page's visitors with an ad.
Free: unlimited checks
8. Keep bots out of your CRM
Cloudflare Turnstile is a free check on your form that stops bots, usually without any puzzle for real people. You do not need to use Cloudflare for anything else.
Log in at dash.cloudflare.com, open Turnstile and add a widget for your domain. You get a site key (public) and a secret key (private). Pick the region carefully: it cannot be changed later.
Put the widget inside your form:
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<form action="/your-form-handler" method="POST">
<!-- your form fields -->
<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY"></div>
<button type="submit">Send</button>
</form>
On your server (or your form tool's webhook step), send the token from the form to Cloudflare's check at https://challenges.cloudflare.com/turnstile/v0/siteverify with your secret key. Only if the answer says success, send the lead to your CRM. If not, drop it.
Load api.js from Cloudflare's exact address. Do not copy or cache it on your own server.
The widget alone is not enoughCloudflare's docs say you must check every token on your server. A bot can skip the widget, so the server check is what keeps your CRM clean. Keep the secret key on the server only.
On a website builder?Many form tools and plugins have a Turnstile option built in. Search your form tool's settings for "Turnstile". check in your account
Free
9. Which ad brings leads (and which one only spends)
Tag every ad link with UTM tags. PostHog reads them on its own and saves them on the visit and on the person (first touch and latest touch).
Google Ads also adds its own click ID; PostHog saves it on the visit. Meta Ads Manager has a "URL parameters" box where you can add your UTM tags once per ad. check in your account
The report
In PostHog, open Web analytics. It shows your channels and UTMs for the dates you pick.
For leads by ad: make a new Trends insight with the event lead_form_submitted, broken down by the person property $initial_utm_content (the ad that first brought them). Try $initial_utm_campaign for a campaign view.
Put each ad's spend next to it, from your ads manager. PostHog's Marketing analytics (a beta you switch on in feature previews) can pull ad costs in for you. check in your account
The money checkAn ad with real spend and zero form sends in 14 days is burning money. Check it against the hot-lead list first: if its visitors keep coming back, it may just be slow. If they visit once and never return, pause it.
Let AI do it
10. One prompt that installs all of this
Paste this into Claude or ChatGPT. It asks you a few questions, then gives you exact steps for your site. Do not paste any secret key into the chat; public keys are fine.
You are helping me set up visitor tracking on my website, step by step, for a non-technical business owner. Ask me these questions first, one message, then wait for my answers:
1. What is my site built on: WordPress, Webflow, Shopify, Wix, Squarespace, or custom code (which framework)?
2. Which cookie banner do I use, or do I need one? (Suggest CookieYes free if I have none.)
3. Where are my visitors from (countries)?
4. Which form tool sends my leads, and which CRM do they go to?
Then give me exact, numbered steps for MY platform to install:
- The cookie banner, set to opt-in, before any tracking.
- PostHog, loaded on every page but with opt_out_capturing_by_default: true, plus posthog.capture('lead_form_submitted') when my form is sent.
- Microsoft Clarity with cookies off by default (Consent Mode), using clarity('consentv2', ...) to send consent.
- Fingerprint (free plan) with the public key only, calling get() at most once per visit after consent, and posthog.identify(visitor_id) with the result.
- IPinfo Lite (free): after consent, look up the visitor's network (as_name, asn, country) through a small server function that keeps my token private (or, if I have no server, https://api.ipinfo.io/lite/me?token=... from the page, warning me the token is visible), and save it to PostHog with posthog.setPersonProperties. Remind me to add the line "IP address data is powered by IPinfo" to my site.
- One consent switch: when my banner says analytics is accepted, opt PostHog in, send Clarity consent, start Fingerprint and the IPinfo lookup; when rejected, opt PostHog out and deny Clarity.
- Cloudflare Turnstile on my form, with the token checked on the server (siteverify) before the lead goes to my CRM. Tell me where that server check goes on my platform.
- A UTM naming plan for my Instagram, Facebook and Google ads.
Rules:
- Tell me exactly where to click or paste, for my platform.
- Show code I can copy, and say which file or settings box it goes in.
- Never put a secret key in front-end code.
- If something is not possible on my platform, say so and give the simplest workaround.
- Use only official snippets from each tool's docs. If you are not sure of a menu name, say "check in your account".
- Finish with a 5-minute test checklist I can run on my own site.
11. Good to know
IP location is approximate. Country is usually right. The city can be wrong, especially on mobile data.
The network name is a clue. IPinfo tells you who owns the network, not whether that person is at a desk or on a phone.
Fingerprint's accuracy is the company's own claim. Test it on your own site before you rely on it.
Bot and VPN signals from Fingerprint are paid (Pro Plus). On the free setup, Turnstile, PostHog and Clarity handle bots.
No names or emails. None of these tools tells you who a visitor is. You see behaviour until they fill your form.
Respect opt-outs. If someone rejects tracking, nothing runs. Keep your privacy policy up to date with the tools you use.
Free limits. PostHog 1M events and 5K recordings, Fingerprint 1,000 checks, CookieYes 5,000 page views, all per month. Busy sites will outgrow some of these.
Don't put a secret key in your website code.
Don't email someone "I saw you on my site". Make the page better, or retarget them with an ad.