Sub topic 3
Checking the data before you trust it
This chapter assumes you can read an analytics dashboard, work with percentages, and run short Python scripts. You have a goal, a primary KPI, and a baseline from earlier chapters. Before you calculate anything from the data, confirm that it is complete, consistent, and understood. A conversion rate built on broken tracking gives you a precise answer to the wrong question.
Why check first
Every later step depends on the numbers: CTR, CPA, significance tests, and the scale-or-stop decision. A tracking outage, a duplicated tag, or an unexpected attribution rule changes those numbers without any change in real customer behavior. If you only notice this after you have acted, you may scale a campaign that was never working or stop one that was.
A short audit sequence
Run the same checks every time, in this order:
- Completeness. Does every day in the reporting window have data? Are all channels and campaigns present?
- Plausibility. Do the numbers fall in a believable range? A CTR of 40% or a day with zero conversions on 400 clicks is more likely a tracking fault than a result.
- Consistency across sources. Compare the ad platform, your web analytics, and your system of record (a CRM or order database). They will not match exactly, but large gaps need an explanation.
- Attribution rules. Know which rule credits each conversion before you compare channels.
Common data problems
| Problem | Typical symptom | Usual cause |
|---|---|---|
| Missing days | Gaps in the daily series | Export limit, tag removed during a site release |
| Broken tracking | Clicks stay normal, sessions or conversions drop | Landing page redirect strips tracking parameters |
| Double counting | Conversions exceed orders | Tag fires twice, or a thank-you page is reloaded |
| Delayed reporting | Recent days look weak | Conversions are reported days after the click |
| Gaps between sources | Platform reports more conversions than the CRM | Different attribution windows or counting rules |
The delayed-reporting row catches many reviewers. If purchases usually happen three days after a click, the last three days of data are incomplete. Exclude them or mark them as provisional.
Automating the basic checks
A script makes the audit repeatable. This one checks for missing days, a low ratio of sessions to clicks, zero-conversion days, and the gap between platform and CRM totals.
from datetime import date, timedelta
rows = [
{"day": date(2026, 11, 1), "clicks": 410, "sessions": 388, "conversions": 17},
{"day": date(2026, 11, 2), "clicks": 395, "sessions": 371, "conversions": 15},
{"day": date(2026, 11, 4), "clicks": 402, "sessions": 190, "conversions": 0},
]
def audit(rows, platform_conversions, crm_conversions):
issues = []
days = {r["day"] for r in rows}
d = min(days)
while d <= max(days):
if d not in days:
issues.append(f"missing day {d}")
d += timedelta(days=1)
for r in rows:
ratio = r["sessions"] / r["clicks"]
if ratio < 0.70:
issues.append(f"{r['day']}: sessions/clicks is {ratio:.2f}")
if r["conversions"] == 0 and r["clicks"] > 100:
issues.append(f"{r['day']}: zero conversions on {r['clicks']} clicks")
gap = abs(platform_conversions - crm_conversions) / crm_conversions
if gap > 0.10:
issues.append(f"platform vs CRM gap is {gap:.0%}")
return issues
for issue in audit(rows, platform_conversions=160, crm_conversions=128):
print(issue)Running it prints:
missing day 2026-11-03
2026-11-04: sessions/clicks is 0.47
2026-11-04: zero conversions on 402 clicks
platform vs CRM gap is 25%The thresholds (0.70 and 10%) are starting points. Tune them to what is normal for your own account.
Understanding attribution
Attribution is the rule that decides which touchpoint gets credit for a conversion. Three settings change your numbers:
- Model. Last-click gives all credit to the final interaction. Other models split credit across several touches.
- Window. A 7-day click window ignores purchases made on day 8.
- Platform bias. Each ad platform counts conversions it influenced, so totals across platforms often exceed real orders.
Write down the model and window before comparing results. Two campaigns measured under different rules are not comparable.
A gap between sources is not automatically an error. Treat the system of record as the check on totals. Use the platform for relative comparisons within that platform, where the same rule applies throughout.
What to do with issues
- Fixable: repair the tracking, re-export, and rerun the audit.
- Not fixable: exclude the affected days or segments, and state the exclusion in your report.
- Unexplained: lower your confidence and avoid firm scale or stop decisions until you understand it.
Exercise
A campaign shows 600 clicks per day, but sessions on the landing page fell from about 560 per day to about 250 per day starting on the 12th. Conversions fell with them. Should you conclude the landing page got worse? What do you check first?
Show answer
No. Clicks stayed steady while sessions dropped sharply, which points to a tracking or delivery fault, such as a redirect stripping tracking parameters, a removed tag, or a broken page, rather than weaker visitor behavior. Check what changed around the 12th (a site release, a tag change, a redirect), and compare against the ad platform and the CRM. Exclude or fix the affected days before judging the page.