Sub topic 13
Track Links, Sales, and Attribution
Assume you know how to create links in your email service provider and can view orders in your checkout system. This chapter shows how to connect an email click to a course sale without treating every reported number as exact.
Choose what to measure
Tracking answers three practical questions:
- Which email produced the click?
- Which clicks became sales?
- Which campaign produced enough revenue to justify the work?
Use a consistent set of UTM parameters. UTM parameters are labels added to a URL so an analytics system can identify where a visitor came from.
| Parameter | What it identifies | Example |
|---|---|---|
| `utm_source` | The platform or list source | `newsletter` |
| `utm_medium` | The channel | `email` |
| `utm_campaign` | The launch | `spring-launch` |
| `utm_content` | The specific link or email | `email-3-faq` |
A tracked course link might look like this:
https://example.com/course?utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch&utm_content=email-3-faqUse the same campaign name throughout the launch. Change only the value that identifies the particular email, button, or link. Avoid spaces, changing capitalization, and informal names such as finalemail!!. Consistent names make reports easier to filter.
Preserve attribution through checkout
A visitor may click an email, read the sales page, leave, and return two days later to buy. Your analytics system might credit the purchase to the later visit. That is normal attribution behavior, not proof that the first email had no effect.
Use three sources together:
- Email reports for delivered messages, clicks, and click-through rate.
- Web analytics for sessions, landing pages, and UTM values.
- The checkout system for paid orders, refunds, and net revenue.
The checkout system should be the source of truth for sales. Compare its order count with analytics conversions rather than replacing it. Blocked scripts, consent settings, ad blockers, and failed event calls can make analytics undercount purchases.
Record a small launch report for every email:
- Email name and send date
- Delivered messages
- Unique clicks
- Sales attributed by your chosen model
- Gross revenue, refunds, and net revenue
Use a simple attribution rule
For a small launch, begin with last non-direct click attribution. This assigns a sale to the last identifiable campaign visit before the purchase, unless the buyer returned through a direct visit. Keep the rule unchanged during the launch.
Do not judge an email only by immediate sales. A teaching email may create clicks and later conversions, while a deadline email may receive most of the final-click credit. Look at the sequence as a system.
Build and inspect links programmatically
A short script can create predictable links and reduce typing errors:
from urllib.parse import urlencode
base_url = "https://example.com/course"
parameters = {
"utm_source": "newsletter",
"utm_medium": "email",
"utm_campaign": "spring-launch",
"utm_content": "email-3-faq",
}
tracked_url = f"{base_url}?{urlencode(parameters)}"
print(tracked_url)Before sending, click the link in a test email. Confirm that it opens the correct sales page, retains the parameters, and reaches the correct checkout.
Exercise
An email has many clicks but no sales in the analytics report. What should you check first?
Show answer
Check the link destination, UTM values, checkout event, and checkout order records. The checkout records determine whether a sale occurred.