Sub topic 11
Tagging Subscribers by Lead Magnet Source
This chapter assumes you already run an email list, can build a basic opt-in form, and know what a tag and a segment are in your email tool. It covers how to record where each subscriber came from, so the quality measurements in the next chapter have clean data to work with.
Why source tagging comes first
A list with 3,000 subscribers tells you almost nothing about which lead magnet worked. If all 3,000 are mixed together, you can't tell whether the onboarding checklist brought in your buyers or the prize giveaway did. Source tagging fixes this by stamping every subscriber with the lead magnet that brought them in, at the moment they sign up.
The stamp has to be applied at signup. If you try to reconstruct sources later from page-view logs or memory, you will guess wrong for a large share of people. Subscribers who joined through several forms, imported lists, or old campaigns will be especially hard to trace.
Source tagging serves three purposes:
- Measurement. You can compare engagement and purchase rates per lead magnet.
- Relevance. You can send a welcome sequence that matches what the person asked for.
- Cleanup. You can find and remove a low-quality source without touching the rest of the list.
Source, interest and behavior: three different things
Beginners often put everything into one tag. Keep three kinds of information apart.
| Kind | Question it answers | Example value | Set when |
|---|---|---|---|
| Source | Which lead magnet or form brought them in? | `onboarding-checklist` | At signup, once |
| Interest | What topic do they care about? | `onboarding` | At signup, and later by behavior |
| Behavior | What have they done since? | `clicked-pricing` | Over time |
Source should never change. If someone downloads a second lead magnet later, that is a new event, not a reason to overwrite the first source. Interest and behavior are allowed to change. Mixing them means you lose the original source the moment a subscriber's interests shift.
How the source travels from page to list
The source value starts on the opt-in page and has to survive every step until it lands in your email platform.
There are three common ways to carry the source.
- A hidden form field. Each opt-in page has its own form, and the form includes a hidden input holding the source name.
- A separate form per lead magnet. Your email platform tags everyone who submits form X automatically. This is the simplest option, but it creates many forms to maintain.
- A URL parameter. Links such as
/signup?source=checklist-footerlet one page serve several traffic sources. A script copies the parameter into the hidden field.
The hidden field is the most flexible approach. The form from the spine's example shows it:
<form action="/subscribe" method="post">
<label for="email">Email address</label>
<input type="email" id="email" name="email" required>
<input type="hidden" name="source" value="onboarding-checklist">
<label>
<input type="checkbox" name="consent" required>
I agree to receive the checklist and related emails. I can unsubscribe at any time.
</label>
<button type="submit">Send me the checklist</button>
</form>The source field is invisible to the visitor, but it travels with the submission. The consent checkbox is still required and is separate from the tag. Tagging describes where someone came from. It never replaces their agreement to receive email.
Designing a naming scheme
Tag names are easy to create and hard to clean up. A messy scheme leads to duplicates such as Checklist, checklist and onboarding_checklist, which split one group into three in your reports.
Follow these rules:
- Use lowercase letters and hyphens only.
- Name the lead magnet, not the page design or the date.
onboarding-checklistages better thanlanding-v2-march. - Use a prefix to show the tag type, such as
src:for source andint:for interest. - Keep a written list of allowed values. New tags are added to the list first.
- Use one value per magnet, even if it appears on several pages.
A workable scheme looks like this:
| Tag | Meaning |
|---|---|
| `src:onboarding-checklist` | Signed up for the onboarding checklist |
| `src:pricing-calculator` | Signed up for the pricing calculator |
| `int:onboarding` | Interested in onboarding topics |
| `int:pricing` | Interested in pricing topics |
If you want to know which page placement worked (blog footer versus pop-up), store that in a second field such as placement. Do not fold it into the source tag. Otherwise you get one tag for every combination, and your group sizes become too small to measure.
Validating the value on the server
A hidden field can be edited by anyone with browser developer tools, and typos happen in templates. Your server should check the incoming source against your list of allowed values rather than trusting it.
ALLOWED_SOURCES = {
"onboarding-checklist",
"pricing-calculator",
"email-course",
}
def clean_source(raw_value):
"""Return a safe source tag, or 'unknown' if the value is not recognized."""
value = (raw_value or "").strip().lower()
return value if value in ALLOWED_SOURCES else "unknown"
print(clean_source("Onboarding-Checklist ")) # onboarding-checklist
print(clean_source("pricing_calculator")) # unknown
print(clean_source(None)) # unknownFalling back to unknown instead of rejecting the signup is deliberate. You never want a template typo to block a real person from joining. Instead, watch the size of the unknown group. If it grows, a form is broken or a new magnet was launched without being added to the list.
Handling people who sign up more than once
Real subscribers return. Someone downloads your checklist in January and your calculator in March. You have to decide what the record looks like.
- Keep the first source in a permanent field, named something like
first_source. This is the one you use to judge which magnet attracts subscribers in the first place. - Add each later magnet as an additional tag. Tags can stack. A subscriber might hold both
src:onboarding-checklistandsrc:pricing-calculator. - Do not restart the welcome sequence blindly. A returning subscriber should get the delivery email for the new magnet, but usually not the full introduction again.
Whether to credit purchases to the first source or the latest one depends on your question. First-source attribution tells you which magnet is best at attracting good subscribers. Latest-source attribution tells you which magnet is best at nudging existing subscribers toward a purchase. Pick one for each report and state it in the report title.
Using tags to route the welcome sequence
Tags are only useful if they trigger something. The simplest use is a rule in your email platform: when src:onboarding-checklist is added, send the checklist delivery email and start the onboarding welcome sequence. When src:pricing-calculator is added, start the pricing sequence.
This matters for quality. A person who asked for a pricing calculator and then receives three emails about onboarding sees a mismatch between what you promised and what you sent. That mismatch is one of the fastest ways to lose a good subscriber, and it is the same failure that the pitfalls chapter calls a mismatched offer.
Common errors
- Tagging after the fact. Applying source tags in bulk months later, based on guesses. Instead, tag at signup.
- Overwriting the source. A later signup replaces the original value. Store
first_sourceseparately. - Untagged imports. Subscribers imported from a spreadsheet arrive with no source. Tag them
src:import-plus the year, so they don't pollute your per-magnet numbers. - Too many tags. If you can't remember what a tag means, nobody else can either. Prune tags with fewer than a few dozen subscribers unless they are for a new test.
- Treating the tag as consent. A tag records origin. Consent is recorded in its own field with a timestamp and the wording shown.
- Ignoring the
unknowngroup. A growingunknowngroup means your measurements are getting weaker.
Checking your setup before launch
Before you send traffic to a new lead magnet, run a short test.
- Submit the form yourself with a fresh test address.
- Confirm the subscriber record shows the correct source value and tag.
- Confirm the correct delivery email and welcome sequence start.
- Submit the form again with the same address and check that
first_sourcedid not change. - Edit the hidden field in your browser to an invalid value and confirm the record shows
unknown.
Then delete the test records so they do not enter your statistics.
Exercise
A subscriber first joined through your prize-giveaway form. Six months later, they download your onboarding-checklist, and your automation replaces their source tag with src:onboarding-checklist. Later you report that the checklist has a 40% buyer rate. What is wrong with this setup, and how would you fix it?
Show answer
The original source was overwritten, so the subscriber's history is lost, and the checklist is credited with a buyer who was originally attracted by the giveaway. This inflates the checklist's buyer rate and hides how the giveaway actually performs. Fix it by storing the first source in a permanent field (first_source) that is never overwritten, adding the later magnet as an extra tag, and stating in each report whether it uses first-source or latest-source attribution.
Exercise
Your unknown source group grew from 2% to 18% of new signups this month. Name two likely causes and one way to find out which applies.
Show answer
Likely causes are a new form or page launched without a source value (or with a value missing from the allowed list), and a template edit that introduced a typo or removed the hidden field. To find out, group the unknown subscribers by signup date and by the page or form they used. A spike on one date or one page points to the form that broke.