Sub topic 10
Bot and scanner clicks
This chapter assumes you know how click tracking works through redirect links, and that you can compute click rate and click-to-open rate from the earlier chapters. It covers a second way click data goes wrong. Software, not people, requests your links. You will learn how to recognize those requests, how to filter them, and what to do when you can't filter them perfectly.
Why software clicks your links
Click tracking works by rewriting each link in a message into a redirect URL. The URL is unique to the recipient and the link. When something requests that URL, your email service provider (ESP) logs a click and then sends the requester on to the real destination.
The logging step cannot tell who made the request. A person tapping a link and a program fetching the same URL produce the same log entry. Several kinds of software fetch links:
- Corporate security gateways. Products that protect company inboxes open every link in an incoming message to check for malware or phishing before the message reaches the recipient. Some do this at delivery time. Others do it again when the user clicks.
- Consumer mailbox providers. Some providers check links for safety or build link previews.
- Link-preview and chat tools. If a recipient forwards the message or pastes a link into a chat app, the app may fetch the page to show a preview.
- Archiving and compliance tools. Some systems that store copies of mail also fetch what the mail points to.
- Crawlers and monitoring bots. Some fetch URLs they find in public or forwarded copies.
Security scanners are the largest source in most B2B lists. They are also the most disruptive, because they often click every link in a message within seconds of delivery.
What a scanner click looks like in data
A scanner click does not look like a person's click. Three patterns show up again and again.
- Near-instant timing. The click happens a second or two after delivery, before a human could open the message.
- Every link at once. One recipient "clicks" the header logo, the main call to action, the footer link and the unsubscribe link in the same second.
- Known sources. The request comes from a data center network, or from a user agent string (the text a client sends to identify itself) that belongs to a scanner or a headless browser.
The unsubscribe link is the most damaging case. If a scanner follows a one-click unsubscribe URL, the recipient can be removed from your list without ever seeing the message. This is why a well-built unsubscribe flow should not change subscription state on a simple GET request alone. A confirmation step, or a POST request, protects against it. Chapter content on unsubscribe rate covers this in more detail.
How bot clicks distort the metrics
Bot clicks inflate click rate. The inflation can be large, and it is uneven. A list with many corporate addresses can show a click rate several times higher than a list of consumer addresses, with no difference in real interest.
The distortion spreads to other numbers:
- Click-to-open rate. If clicks are inflated and opens are not, the ratio rises. In an odd case, a recipient can have a click and no open at all, which breaks the funnel logic. Click-to-open rate above 100% is a clear sign of bot clicks, or of a pixel that never loaded.
- A/B tests. If the segments have different mixes of corporate and personal addresses, one variant can win because of who received it.
- Link-level reports. The "most clicked" link may just be the first one in the HTML, because bots go through links in order.
- Segmentation and automation. If "clicked a link" triggers a sales alert, a lead score or a follow-up sequence, bots will trigger it. Sales teams then chase contacts who never read the message.
- Unique versus total counts. Bots add to total clicks, but they also add to unique clickers, because one scanner request is enough to make a recipient count as a clicker.
The last point matters. Using unique counts removes repeated clicks by one recipient. It does not remove a single scanner click.
Detecting bot clicks
No single test catches all of them. Combine several and treat the output as a classification with errors, not as a fact.
Timing rules
Compare the click time with the delivery time. Flag clicks that happen within a short window, for example 5 seconds. Pick the threshold by looking at your own data. Plot the time from delivery to first click and look for a spike at the very start of the distribution.
Burst rules
Flag a recipient who clicks many distinct links in the same message within a very short period. A person rarely clicks five links in one second.
Source rules
Check IP ranges and user agent strings against known scanner and bot lists. Many ESPs maintain these lists and mark events accordingly. This works well for known products and fails for new ones.
Behavioral rules
Look at what happens after the click. A person who lands on your site usually produces page views, scrolling and time on page. A scanner produces a request and nothing else. Comparing click events with web analytics sessions is one of the stronger checks.
The SQL below flags clicks that happened within 5 seconds of delivery, and clicks from recipients who hit three or more distinct links within 5 seconds. It assumes an email_events table like the one in earlier chapters, with a link_id column and an event_time timestamp, in PostgreSQL.
WITH delivered AS (
SELECT campaign_id, recipient_id, MIN(event_time) AS delivered_at
FROM email_events
WHERE event_type = 'delivered'
GROUP BY campaign_id, recipient_id
),
clicks AS (
SELECT e.campaign_id, e.recipient_id, e.link_id, e.event_time,
d.delivered_at,
EXTRACT(EPOCH FROM (e.event_time - d.delivered_at)) AS seconds_after_delivery
FROM email_events e
JOIN delivered d
ON d.campaign_id = e.campaign_id AND d.recipient_id = e.recipient_id
WHERE e.event_type = 'click'
),
burst AS (
SELECT campaign_id, recipient_id
FROM clicks
GROUP BY campaign_id, recipient_id
HAVING COUNT(DISTINCT link_id) >= 3
AND EXTRACT(EPOCH FROM (MAX(event_time) - MIN(event_time))) <= 5
)
SELECT c.campaign_id,
COUNT(DISTINCT c.recipient_id) AS unique_clickers_raw,
COUNT(DISTINCT CASE
WHEN c.seconds_after_delivery > 5
AND NOT EXISTS (
SELECT 1 FROM burst b
WHERE b.campaign_id = c.campaign_id AND b.recipient_id = c.recipient_id
)
THEN c.recipient_id END) AS unique_clickers_filtered
FROM clicks c
GROUP BY c.campaign_id;The gap between the two columns is your estimate of how much bot activity inflates the raw number.
Applying the filter in a rate
After filtering, recompute the rates from the earlier chapter. Keep the denominator the same, delivered messages, so the raw and filtered numbers compare cleanly.
def rate(numerator, denominator):
return numerator / denominator if denominator else 0.0
delivered = 9800
unique_opens = 3920
raw_clickers = 310
filtered_clickers = 118
print(f"Raw click rate: {rate(raw_clickers, delivered):.2%}")
print(f"Filtered click rate: {rate(filtered_clickers, delivered):.2%}")
print(f"Raw click-to-open: {rate(raw_clickers, unique_opens):.2%}")
print(f"Filtered click-to-open:{rate(filtered_clickers, unique_opens):.2%}")
print(f"Share flagged as bots: {rate(raw_clickers - filtered_clickers, raw_clickers):.2%}")With these numbers the raw click rate is 3.16% and the filtered rate is 1.20%. About 62% of the unique clickers were flagged. Both figures are estimates. The filtered figure is not exactly the truth.
Failure modes of filtering
Filtering has its own errors, and you should know which way each one leans.
| Error | Cause | Effect |
|---|---|---|
| Bots counted as people | Scanner is slow, clicks one link, or uses a new IP range | Click rate stays inflated |
| People counted as bots | A fast reader clicks within seconds, or a mobile user clicks a link in a preview | Real engagement is removed |
| Delayed scanners | Scanner fetches links when the user clicks, not at delivery | Looks like a human click at human timing |
| Shared infrastructure | Humans and bots use the same corporate proxy | IP rules remove real people |
Delayed scanning is the hardest case. Some gateways rewrite links and check them at click time, so the scan and the human click happen together. Timing rules cannot separate them. Only behavior after the click, such as a session on your site or a conversion, can.
Practical guidance
- Check your ESP's settings. Many providers filter known bot clicks and report them separately. Find out whether your reports are filtered and what the filter covers. Numbers from two providers are not comparable unless the filters are.
- Segment by domain. Compare click rates for consumer domains with those for corporate domains. A large gap points to scanners.
- Trust conversions over clicks. A purchase, signup or form submission needs a real browser and a real person. It is much harder to fake by accident.
- Protect side effects. Do not let a single click change subscription state or fire an irreversible action. Use a confirmation page.
- Gate automation on more than a click. Require a click plus a site visit, or two distinct actions, before alerting sales.
- Keep the raw data. Store both the raw events and the bot flag. You can change the rules later and recompute history only if you kept the originals.
Summary of the working model
A logged click means that something requested a redirect URL. It does not prove that a person read your message and chose to follow the link. Raw click rate is an upper bound. A filtered click rate is closer to human behavior, but remains an estimate. Post-click behavior and conversions give the strongest evidence.
Exercise
A campaign sent to 5,000 delivered recipients shows 400 unique clickers. You find that 250 of them clicked three or more links within one second of delivery, and that none of those 250 visited your website. Compute the raw click rate and the filtered click rate. Then explain why the filtered figure is still an estimate, and name one kind of bot click your filter would miss.
Show answer
Raw click rate is 400 / 5,000 = 8.0%. Filtered clickers are 400 − 250 = 150, so the filtered click rate is 150 / 5,000 = 3.0%. It is still an estimate because the rules only catch scanners with a recognizable pattern, and some of the remaining 150 may be bots while some of the flagged 250 may be fast human readers. A filter based on timing and bursts would miss a delayed scanner that checks links at the moment the user clicks, or a slow scanner that follows only one link per message.
Exercise
Your sales team gets an alert whenever a contact clicks any link in a campaign. After a campaign to corporate addresses, the team reports that many alerted contacts say they never saw the email. Give two changes that would reduce these false alerts, and say why a unique-click count would not fix the problem.
Show answer
First, require more than one signal before alerting, such as a click plus a visit to your website, or a click that happens more than a few seconds after delivery on a single link. Second, apply the bot flag from your timing, burst and source rules and exclude flagged contacts from the alert. A unique-click count would not help, because it removes repeated clicks from one recipient but a single scanner request is enough to make a recipient count as a unique clicker.