---
name: "website-visitor-deanonymizer"
description: "Build a website visitor de-anonymizer: settle the legal basis and consent rules per region, collect minimal visit data, match IP addresses to companies with longest-prefix lookup and a confidence value, exclude internet providers, cloud hosts, VPNs and your own staff, score the pages each company reads with intent weights, match to your target account list, and send real-time Slack alerts to the account owner. Use when you want account-level web intent without relying on forms."
---

# Website visitor de-anonymizer

## Goal
Know which target companies are reading your site, which pages they read, and tell the right person while it still matters, without identifying individuals. Part of GTM engineering. Feeds: signal-detection-engine, inbound-lead-router, multi-channel-orchestrator, waterfall-enrichment-router. Fed by: tam-builder and icp-scoring-model (the account list).

## When to use
- You have meaningful traffic from B2B buyers and low form conversion.
- Reps ask "who is looking at us?"
- You want behaviour-based alerts on named accounts.

## Inputs
- Visit data: timestamp, IP address, page, session id.
- A reverse-IP source you are licensed to use, or your own mapping of known ranges.
- A target account list with owner and tier.
- Page weights.
- Written answers on legal basis, consent, retention and opt-out.

## Data model
`visits`: `visit_id, ts, ip, page, session_id`
`ip_map`: `cidr, company_domain, type (business, isp, cloud, vpn), confidence`
`accounts`: `domain, owner, tier`
`account_alerts`: `company_domain, sessions, intent_score, pages, confidence, owner, alert, reason`
Store IPs for the shortest time you can, and keep company-level results longer than raw IPs.

## Step 1. Settle the rules first
IP addresses are personal data in several regions. Before collecting, write down for each region: the legal basis, whether consent is needed for the analytics or tags you use, what your privacy notice says, how long you keep raw IPs, and how people opt out. Honour browser privacy signals where the law or your policy requires. If you cannot answer this, do not launch.

## Step 2. Collect minimal data
Collect IP, timestamp, page path and a session id from analytics or server logs. Do not collect more than you need. Never combine it with form data about a named person unless the person submitted it.

## Step 3. Match IP to company
Run `scripts/visitor_match.py match`. The script finds the most specific range containing the IP (longest prefix). Rules:
- Accept only `business` ranges.
- Keep the provider's confidence. Drop matches below your minimum (for example 0.6).
- Map the company domain to your account list. Unknown companies are kept in a "not on list" table for TAM ideas.

## Step 4. Filter noise
Exclude: ISP and mobile ranges, cloud and hosting ranges (often bots or tools), known VPNs, your own offices and staff, partners and vendors, and obvious bots (very short sessions across many pages, known bot user agents).

## Step 5. Score intent
Give each page a weight. Add the weights for each distinct page per company in the window (for example 7 days). Count repeat visits to the same page once per day. Alert when the score meets your threshold and the account is on the target list, and for tier-A accounts consider a lower threshold.

## Step 6. Alert
Post to Slack or the CRM: company, owner, tier, sessions, pages in order, score and confidence. Do not post names or personal data. Suppress repeat alerts for the same account for 3 to 7 days unless the score jumps. Write the alert to the account timeline as a signal for signal-detection-engine.

## Step 7. Review
Monthly, check a sample of alerts: was the company plausible, did the owner act, did a meeting follow? Adjust page weights and thresholds. Remove sources with poor matches.

## Tool options
Web analytics and server logs for visits. A reverse-IP data provider or an in-house list of ranges. A warehouse table or a small function to match. Slack for alerts and a CRM for the timeline. Choose within your legal and budget limits.

## Output
`account_alerts.csv` and the Slack alert format.

## Success metrics
- Share of B2B visits matched to a company, reported honestly as partial coverage.
- Share of alerts the owner acted on in a day.
- Meetings per alert, compared to accounts with no alert.
- Share of sampled matches judged plausible.

## Guardrails
- Company-level insight only. Do not try to identify individual visitors from this data.
- Respect consent and privacy law for each region, and respect opt-outs and browser privacy signals.
- Keep raw IPs for a short, written retention period.
- Use only licensed data sources and follow their terms.
- Say plainly in outreach that you are reaching out because of their business, and never imply you watched what they did.
