Troubleshooting
Known Links-on-a-domain failure modes, their cause, and how to confirm it.
A link's vendor-stat history seems to vanish after its domain is deleted
Symptom: Historical per-link stat snapshots that used to be attached to a link on a domain can no longer be found by that link, once the domain itself has been deleted. The rows look wiped.
Cause: Deleting a domain (not a single link through this section's own delete endpoints)
hard-removes that domain's of_links registry rows as part of the domain-delete cascade. Because
of_link_stats.of_link_id has a foreign key into of_links, the cascade first sets
of_link_id to NULL on every stats row that pointed at one of those links, before the
of_links rows themselves are removed a few lines later in the same function. The stats rows
survive — they just lose the link they were attached to, so a per-link lookup no longer finds
them.
Check: backend/app/products/link/api/admin/domain_safety.py:132-135 — the
UPDATE of_link_stats SET of_link_id = NULL that runs immediately before OfLink is deleted
further down delete_domain_rows.
What's next
Back to Links on a domain for the full task list.
See ad spend and ROI for one link
Pull one link's own two revenue numbers and its paying fans, so you can judge whether that specific link is profitable — not just the domain as a whole.
Smart links & ads
One URL that splits traffic between paid and trial per country, plus the ad-network connections that measure it.