How to track which leads visit your website
Send leads tracked links from your emails, add one script to your site, and you see which leads came back, what they read and when. Then act on it fast.
By the PromptLab team27 October 20268 min read
To track which leads visit your website, send them tracked links in your emails and add a tracking script to your site. When a lead clicks a link, the script ties that browser to the lead, so every later visit shows up under their name: the pages they read, how long they stayed and when they came back. Then set an alert for the pages that signal intent, such as pricing or a product's technical data sheet, so the right rep hears about it the same day.
This guide explains the two ways tools find out who is on your site, what each can and cannot tell you, and how to set up lead tracking that a product sales team will actually act on. The examples come from companies that sell coatings, packaging, ingredients and industrial supplies, where a buyer reading the TDS page twice in one week usually means a sample request is close.
Two ways to find out who is on your site
There are two common approaches. They answer different questions, so it helps to know which one you need before you set anything up.
| IP-based company lookup | Tracked-link identification | |
|---|---|---|
| What it tells you | Which company a visit probably came from | Which person visited |
| Who it covers | Anonymous visitors, when the network can be matched | Only people who clicked a tracked link you sent |
| How it works | Matches the visitor's IP address against a database of companies | A link in your email carries an ID that the site script reads |
| Typical use | Spotting new companies you have never contacted | Seeing when a lead you emailed comes back |
| Limits | Home and mobile connections, shared networks and VPNs are hard to match; it names a company, not a person | Silent on anyone who never clicked one of your links |
IP-based company lookup looks at the network a visit comes from and checks it against a database of company networks. When it finds a match, you get a company name. It can surface companies that found you through search, but it guesses at the company level and cannot tell you which buyer at that company was reading.
Tracked-link identification starts from your side. You email a lead a link with a unique ID in it. When they click, your site script reads the ID and remembers that browser. From then on, their visits are logged under their name, even when they come back days later by typing your address. It only covers people you have already emailed, but for those people it is exact.
For most product sales teams, the second question matters more. You already have a list of leads you have quoted, sampled or emailed. What you want to know is which of them are reading your site this week.
Which pages show buying intent
Not every visit means much. A lead who opens your homepage once and leaves is browsing. A lead who reads the same product page three times and then opens the samples page is building a case to buy.
Pick the pages that matter for your sale before you set up alerts:
- Pricing or price list pages. The buyer is checking whether you fit their budget.
- A product's technical data sheet (TDS) page. An engineer or formulator is checking the spec against their application. See what a technical data sheet is.
- The samples or "request a sample" page. They are close to testing your product.
- Safety data sheet (SDS) and certificate pages. Often a sign that quality or procurement has joined the evaluation.
- Distributor or "where to buy" pages. They may want to order through a local partner.
- Case studies for their industry. They are building an internal argument for switching supplier.
Write this list down. It becomes the page rules in your saved views.
Set up lead tracking step by step
- 1
Add the tracking script to your site
Paste the script into the
<head>of your site so it loads on every page. Most website builders have a place for header code. Run a test to make sure it fires before you send any emails. - 2
Turn on click tracking in your email campaign
Visitor identification depends on tracked links. Turn on click tracking for the campaign, and link to real pages, such as the product page you are writing about, not only your homepage.
- 3
Link to the page the email is about
An email about a new low-VOC primer should link to that primer's page. The lead lands where the interest is, and the visit tells you whether the email worked.
- 4
Let the first visits come in
Give it a few days. Check that visits from your campaign appear with the right names and pages.
- 5
Build a saved view for the visits that matter
Filter by campaign and by page, for example "visitors from the Q4 primer campaign who viewed any page containing /pricing".
- 6
Add an alert or an action to the view
Have the view notify the rep in Slack or Telegram, create a task for the account owner, or start a workflow. More on this below.
Turn a visit into a next step
A visit report nobody reads is just a log. The value comes from acting while the lead is still thinking about you.
Alert the rep
A message in Slack or Telegram is enough for high-intent pages. "Priya Shah from Northfield Coatings viewed /pricing twice today" tells the rep what to do without opening anything.
Create a task for the owner
For a team where reps work from their task list, create a task instead. Give it a title that says what to do: "Call Northfield about pricing, viewed it today". The task sits with the account owner and does not depend on someone watching a channel.
Start a workflow
When the same visit should always trigger the same next step, use a workflow. For example: "A contact from the distributor campaign opened the where-to-buy page → task for the channel manager to introduce the local distributor".
What to say when you follow up
Do not open with "I saw you were on our pricing page". Buyers find that uncomfortable. Use the visit to time your message and pick its topic:
Hi Priya, a quick one on the primer we discussed. Pricing depends on drum versus IBC and your annual volume. If you give me a rough figure, I will send a quote this week.
The visit told you she is thinking about price. The message answers that without mentioning how you know.
A worked example from packaging
This example is made up.
A packaging manufacturer emails 200 food producers about a new recyclable tray. The email links to the tray's product page. Over the next week, 18 people click. Of those, 5 come back on their own, and 2 open the samples page.
The sales manager has a saved view: "from the tray campaign, viewed /samples". It creates a task for the account owner each time. Both reps call within a day, offer to send trays sized to the buyer's line, and log the sample requests. Without the view, those two visits would have looked like any other traffic.
Privacy and fairness
Tracked-link identification only follows people you have emailed, and only after they click. Still, treat it with care:
- Say in your privacy notice that your emails and site use tracking, and follow the consent rules that apply where your buyers are.
- Show a cookie or consent banner if your site needs one.
- Keep visit data for sales follow-up, not for anything the buyer would find surprising.
- Give every campaign an unsubscribe link, and honour it.
This is general guidance, not legal advice. Check the rules for the markets you sell into.
How PromptLab helps
PromptLab's Website visitors page is on every plan. You paste one script in your site's <head>, with step-by-step guides for plain HTML and website builders such as WordPress, Webflow and Wix, and a "Test script" button, and you can track up to 10 domains.
A visitor is named when they arrive from a tracked link in one of your PromptLab email campaigns. For each known visitor you see the pages viewed per day, the time on each page and the referrer, kept for 400 days, with bots filtered out. IP addresses are stored only as a one-way hash.
Saved views filter by campaign, contact, industry, company size, revenue, department, decision role, page URL and referrer. A view can notify you in Slack or Telegram, create a task or start a workflow, so "a contact from campaign X opened /pricing" becomes a task for the account owner.

Frequently asked questions
Can I see which companies visit my website?
IP-based lookup tools try to match a visit to a company from its network address. They can name some companies but not the person, and they miss many home, mobile and VPN connections. PromptLab does not do this. It names people who arrive from your campaign email links.
How do I know if a lead I emailed visited my website?
Turn on click tracking in your email and add a tracking script to your site. When the lead clicks a link, the script remembers them, so later visits are logged under their name.
Does lead tracking work if the lead comes back without clicking a link?
Yes, once they have clicked a tracked link at least once on that browser. Later visits on the same browser are tied to them, even when they type your address directly. A different device stays anonymous until they click a tracked link there too.
Which pages should trigger a sales alert?
Pick pages that signal intent: pricing, a product's TDS, the samples page, certificates and where-to-buy. Homepage and blog visits rarely need an alert.
Is tracking lead visits legal?
It depends on where your buyers are and how you collect consent. Mention tracking in your privacy notice, use a consent banner where required, and include an unsubscribe link in every campaign. Check the rules for each market you sell into.





