Sub topic 12
Verifying and tracking the links you earn
A partner who says "we added your link" has not necessarily done it. Pages get saved as drafts, links get placed on a different page than planned, and some sites mark links with attributes you did not expect. This chapter assumes you have read the earlier chapters on link attributes and on making a link request. It shows how to confirm each link is live, record it, and notice when it disappears.
Verify every promised link
Check each link by hand first. Open the partner's page in a browser and look for the link. Then view the page source and read the a element. You are checking four things:
- The link points to the page you intended, not just your home page.
- The anchor text (the clickable words) is sensible and not misleading.
- The
relvalue matches the kind of link. An editorial link from a partner normally has norelvalue. Arel="sponsored"orrel="nofollow"value tells search engines not to pass credit, so confirm that is intended. - The page can be reached without a login and is not blocked from search engines.
For a handful of links, this takes a few minutes. When you track more than about ten, a script saves time.
Check links with a script
The script below fetches a partner's page and lists every link to your domain, with its anchor text and rel values. It needs the requests and beautifulsoup4 packages.
import requests
from bs4 import BeautifulSoup
from urllib.parse import urlparse
def find_links_to(page_url, domain):
"""Return links on page_url that point to domain (or its subdomains)."""
response = requests.get(
page_url, timeout=10, headers={"User-Agent": "link-check/1.0"}
)
response.raise_for_status()
soup = BeautifulSoup(response.text, "html.parser")
found = []
for a in soup.find_all("a", href=True):
host = urlparse(a["href"]).netloc.lower()
if host == domain or host.endswith("." + domain):
found.append({
"href": a["href"],
"text": a.get_text(strip=True),
"rel": a.get("rel", []),
})
return found
if __name__ == "__main__":
links = find_links_to("https://partner.example/resources", "example-shop.com")
print(links if links else "No link found yet")Note that BeautifulSoup returns rel as a list, so rel="sponsored" appears as ['sponsored']. An empty list means no rel value was set.
The script has limits. It only sees links in the HTML the server sends. Links that a page adds with JavaScript will not appear, so a "No link found yet" result means you should look in a browser before you assume the link is missing. Also, raise_for_status() raises an error for pages that return 404 or 500, which is useful: a removed page is a lost link.
Track what you earn
Keep a simple log, such as a spreadsheet. One row per link is enough.
| Column | Example |
|---|---|
| Source page | partner.example/resources |
| Target page | example-shop.com/guides/sizing |
| Relationship | Partner |
| Date requested | 2026-10-02 |
| Date confirmed live | 2026-10-15 |
| Anchor text | Example Shop sizing guide |
| Rel value | none |
| Last checked | 2026-11-27 |
| Status | Live |
The relationship column lets you see which sources produce results. The status column should use a few fixed values, such as Requested, Live, Changed, and Lost.
Common errors
- Checking once and never again. Sites get redesigned and pages get deleted. Re-check each link every few months, and after you hear that a partner has relaunched their site.
- Treating a missing script result as proof. A JavaScript-built page can hide a link from the script. Confirm in a browser.
- Ignoring redirects. If you move or rename your target page, set up a redirect, or the partner's link will lead to an error page.
- Counting links instead of reading them. A link marked
sponsoredornofollowstill sends visitors, which is worth recording, but you should not count it as the same kind of link as an editorial one. - Hammering a partner's server. Check a small list at a polite pace, with a timeout and a clear User-Agent, as the script does.
When a link is wrong or missing
Write to the contact, keep the message short and friendly, and include the exact page. For example: "Thanks for adding us. The link on your resources page seems to be missing from the live version. Could you take another look?" Most problems are accidents, not refusals.
Exercise
A supplier says they added your link. Your script prints "No link found yet" for their page, and the page loads fine in your browser. What do you check next, and what could explain the result?
Show answer
View the page in a browser and inspect the source for your domain. The link may be added by JavaScript after the page loads, so the script does not see it. It may also sit on a different page than the one you checked, or use a different domain spelling such as a subdomain you did not pass in. If the link is really absent, send a polite follow-up that names the page.
Exercise
You find your link on a partner's page, and the source shows rel="sponsored", although you never paid for the placement. What should you do and why?
Show answer
Record the rel value in your log, then ask the partner kindly whether the attribute was added on purpose. A sponsored value is meant for paid placements, so it is probably a template or plugin default. If they change it, update the status to Live with no rel value. If they prefer to keep it, the link still sends visitors, but you should not count it as an editorial link.