Sub topic 8
How a Click Is Recorded
This chapter explains how an email service provider (ESP) detects and counts a click. It assumes you know what a sent, delivered and opened message is, and that you are comfortable with percentages and ratios. It also assumes you have read the chapters on the funnel and on choosing denominators. Bot and scanner clicks get their own chapter. Here we cover the mechanism that makes them possible.
Why a click is easier to record than an open
An open is inferred. The ESP waits for a mail client to request a hidden image, and a request for an image is not the same as a person reading. A click is different. A person, or a program acting for a person, has to request a specific URL that the ESP controls. The request is deliberate, and it is the first step of a visit to your site.
That does not make clicks perfect. It makes them a stronger signal than opens, and the weaknesses are of a different kind.
The redirect link
Your email contains a link such as https://example.com/sale. If the ESP left it alone, your own web server would see the visit, but the ESP would not know which recipient or campaign it came from. So the ESP rewrites each link before sending. The rewritten link points to the ESP's tracking domain and carries identifiers.
<a href="https://click.example-esp.com/c/7f3a9b?r=abc123&l=42">See the sale</a>In this example:
click.example-esp.comis the tracking domain. It is often a custom subdomain of your own domain, which helps deliverability and trust.7f3a9bor a similar token identifies the campaign and the destination.r=abc123identifies the recipient. It is unique per person, like the tracking pixel's file name.l=42identifies which link in the message was used.
When someone clicks, the sequence is:
- The browser requests the tracking URL from the ESP.
- The ESP looks up the identifiers and writes a click event: recipient, campaign, link, timestamp, and often the user agent and IP address.
- The ESP responds with an HTTP redirect (usually status 302) that points to the real destination.
- The browser follows the redirect and loads your page.
The whole detour usually takes a few tens of milliseconds, so the visitor does not notice it.
What the click event contains
A typical click record has these fields:
| Field | Purpose |
|---|---|
| Recipient ID | Ties the click to one person, so unique counts are possible |
| Campaign ID | Ties the click to one send |
| Link ID or URL | Shows which link was clicked, for link-level reports |
| Timestamp | Shows how soon after delivery the click happened |
| User agent | Identifies the browser, device, or program making the request |
| IP address | Gives rough location and helps spot data center traffic |
The user agent and IP address matter most for quality control. They are the main evidence for deciding whether a human made the request.
Counting clicks: unique and total
Every click creates an event. Reports then summarize events in two ways, as the denominators chapter described for opens.
- Total clicks count every click event. One person clicking the same link four times counts as four.
- Unique clickers count each recipient once per campaign, no matter how many times they clicked or how many links they used.
The SQL below shows both counts, plus the number of distinct links used, from a table of click events.
SELECT
campaign_id,
COUNT(*) AS total_clicks,
COUNT(DISTINCT recipient_id) AS unique_clickers,
COUNT(DISTINCT link_id) AS links_clicked
FROM click_events
GROUP BY campaign_id;Use unique clickers for the click rate, because the question you want answered is "what share of people took action?" Use total clicks to see how much interest a message generates, for example whether people return to it. Some ESPs report "unique clicks" per link, which counts each recipient once per link. The sum of those per-link numbers can exceed the number of unique clickers for the campaign. Check how your ESP defines the term before comparing figures.
Where click tracking works and where it fails
Click tracking is more robust than open tracking, but it has gaps.
Failure modes that lose clicks
- Tracking domain problems. If the tracking domain's certificate expires or the DNS record breaks, the link fails and the recipient sees an error. You lose the click and the visit. Monitor this domain as you would a website.
- Blocklisted tracking domains. A shared tracking domain used by many senders can be flagged by spam filters or security tools. A custom tracking domain isolates you from other senders' reputation.
- Links that were never rewritten. Some ESPs skip rewriting for certain links, such as the unsubscribe link, or for plain text parts if tracking is not enabled there. Those clicks do not appear in the totals.
- Copy and paste. A reader who copies the visible URL, or types your site address, bypasses tracking. The visit is real but is not recorded as a click from the email.
Failure modes that add clicks
- Security scanners and bots. Corporate gateways and some mailbox providers open each link in a message to check it for malware. Each check is a real request to the tracking URL, so the ESP logs a click. The recipient never saw the page. The next chapter covers how to spot and filter these.
- Link prefetching. Some clients and previewers fetch links in advance, which has the same effect.
- Forwarded messages. The recipient identifier is part of the link. If a message is forwarded, a click from the new reader is credited to the original recipient.
Link-level data and UTM parameters
The ESP's click log tells you what happened up to the redirect. It does not tell you what happened on your site. Two tools bridge that gap.
First, the destination URL can carry UTM parameters, which are labels in the query string that your analytics tool reads.
<a href="https://example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=nov_sale">See the sale</a>The ESP redirects to this full address, and your analytics tool records the visit with its source and campaign. This lets you compare ESP clicks with analytics sessions and follow the visit through to a purchase or sign-up.
Second, the numbers will not match exactly, and that is normal. The ESP counts requests to its tracking URL. Analytics counts page loads where its script ran. Differences come from:
- Scanner clicks that the ESP logged but that never loaded your page.
- Visitors who left before the page finished loading.
- Visitors who block analytics scripts.
- Sessions that the analytics tool attributes to a different source because of missing or overwritten parameters.
A moderate gap is expected. A very large gap, for example analytics sessions at half the ESP click count, is a sign of scanner traffic or a broken landing page.
A worked example
A campaign was delivered to 9,800 people. The ESP logged 1,150 total click events from 410 distinct recipients. Analytics shows 330 sessions with utm_campaign=nov_sale.
- Click rate by unique clickers: 410 / 9,800 = 4.18%.
- Total clicks per clicker: 1,150 / 410 = 2.8. People clicked repeatedly or used several links.
- ESP-to-analytics ratio: 330 / 410 = 80%.
An 80% ratio is plausible. Some of the 410 clickers were likely scanners, and some real clickers did not finish loading the page. If the ratio were 30%, you would suspect heavy automated clicking and would investigate timestamps and user agents.
A quick check for automated clicks is timing. Humans take seconds to minutes to click after delivery. A burst of clicks on every link within one or two seconds of delivery, from the same IP range, is almost always a scanner.
Practical guidance
- Use a custom, authenticated tracking domain.
- Report click rate with unique clickers as the numerator and delivered messages as the denominator.
- Look at link-level counts to learn which content works, but keep in mind that a link in the first screen of an email gets more clicks than the same link at the bottom.
- Compare ESP clicks against analytics sessions for every major campaign.
- Do not rely on a single click as proof of interest if the click happened within seconds of delivery.
Exercise
An email was delivered to 5,000 people. The ESP reports 600 total click events and 240 unique clickers. Analytics shows 150 sessions from the campaign. Calculate the click rate and the ratio of analytics sessions to unique clickers. Give one reason the ratio is below 100%, and say what you would check if most of the 240 clicks happened within three seconds of delivery.
Show answer
Click rate = 240 / 5,000 = 4.8%, using unique clickers over delivered. The session ratio is 150 / 240 = 62.5%. The ratio is below 100% because some clicks come from security scanners that never load the page, some visitors leave before analytics loads, and some block analytics scripts. If most clicks arrived within three seconds of delivery, you would check the user agents and IP addresses for data center or gateway traffic, because that timing points to automated link scanning rather than people. You would then filter those events and recompute the click rate.
Exercise
Why does the ESP respond to a tracked click with a redirect instead of simply linking straight to your page?
Show answer
The request to the ESP's tracking URL is what lets the ESP log the click with the recipient, campaign and link identifiers. The redirect then sends the visitor on to the real destination. A direct link would reach your server only, and the ESP would never see the click.