Sub topic 6
Collect your data and public competitor data
This chapter shows how to build one consistent dataset from your own analytics and from public competitor profiles. It assumes you have set the audit goal and scope, listed your accounts, chosen competitors, and defined the core metrics in earlier chapters. You should also be comfortable with a spreadsheet, and Python is optional.
Two sources, two levels of access
The data for an audit comes from two places, and they differ in what you can see.
- Your own accounts give you private analytics: reach, impressions, saves, profile visits, audience demographics and follower history. You can export these.
- Competitor accounts give you only what any visitor sees: follower count, post dates, formats, captions, and usually public likes, comments and views. You cannot see their reach, saves or demographics.
This difference shapes the whole audit. A metric you can compute for yourself may be impossible for a competitor. If you compare the two, use only the fields both sides have.
| Field | Your account | Competitor (public) |
|---|---|---|
| Post date, format, caption | Yes | Yes |
| Likes, comments | Yes | Usually yes (some accounts hide likes) |
| Shares | Yes | Often not visible |
| Saves | Yes | No |
| Reach, impressions | Yes | No |
| Follower count now | Yes | Yes |
| Follower count at posting time | From history | Only from your own snapshots |
Plan the collection window
Decide the window before you collect anything. A common choice is the last 90 days, because it covers enough posts and avoids very old content from a different strategy. Apply the same window to every account.
Then set a sample rule. For example, collect every feed post in the window, or the most recent 30 posts if an account posts heavily. State the rule in your report. Mixing "all posts" for you and "the top posts" for a competitor makes the comparison unfair, because top posts are biased upward.
Design one shared data sheet
Use one row per post and the same columns for everyone, with an account column added when you combine several accounts. The minimal sheet from the spine looks like this:
post_id,platform,format,posted_at,followers_at_post,reach,likes,comments,shares,saves
p001,instagram,reel,2026-10-03T17:00:00Z,12400,8100,420,35,60,90
p002,instagram,carousel,2026-10-05T12:30:00Z,12450,5200,310,22,18,140
p003,instagram,image,2026-10-08T09:15:00Z,12480,3900,120,8,4,10Leave a cell empty when a value is unavailable. Do not write 0. A zero says "nobody saved this post", while an empty cell says "we cannot see saves". Mixing them up corrupts averages.
Keep a short data dictionary beside the sheet. For each column, note the unit, the source and any known quirk, such as "views on TikTok count replays".
Collect your own data
- Export from native analytics. Use each platform's built-in export for the window. Export the raw post-level file, not only the dashboard summary.
- Record follower history.
followers_at_postshould be the follower count when the post went live. If the platform only gives daily follower totals, join each post to the total for its date. - Check the export limits. Some platforms cap the date range or the number of rows, so confirm the export covers your whole window.
- Save the raw files unchanged. Put them in a
raw/folder and do your cleaning in a copy. If a number looks wrong later, you can trace it back.
Platforms define metrics differently. Instagram "reach" counts unique accounts. A "view" on a short video may count every play, including replays. Write down the definition used by each export, and do not add or compare numbers with different definitions.
Collect public competitor data
For each competitor, record by hand or with a permitted tool the following:
- The post URL, date, format and caption.
- Visible likes, comments and views.
- The follower count on the day you collect it, together with that date.
Because you cannot see their historical follower counts, you will not know followers_at_post for competitor posts. Two workable approaches exist:
- Snapshot now, collect soon. Collect posts within a short period so the current follower count approximates the count at posting time. This works best for a recent window.
- Repeated snapshots. Record follower counts weekly during the audit and interpolate. This takes more effort but is more accurate for fast-growing accounts.
Whichever you choose, record it in the report as a limitation. Stay inside each platform's terms of service and the ethical limits from the earlier chapter: use only information visible to any visitor, and do not use fake accounts or bypass access controls.
Public counts are often rounded, such as "12.4K". Convert them to numbers and note the rounding. For very large accounts the error is small. For small accounts, prefer exact figures from the post page.
The collection workflow
Validate before you analyze
Errors in collection are cheaper to fix now than after you have built charts. This script checks the sheet from above for the most common problems: missing columns, duplicate IDs, bad timestamps, and non-positive follower counts. Save it as validate.py next to posts.csv.
import csv
from datetime import datetime
REQUIRED = [
"post_id", "platform", "format", "posted_at", "followers_at_post",
"reach", "likes", "comments", "shares", "saves",
]
NUMERIC = ["followers_at_post", "reach", "likes", "comments", "shares", "saves"]
def parse_time(value):
return datetime.fromisoformat(value.replace("Z", "+00:00"))
problems = []
seen = set()
with open("posts.csv", newline="", encoding="utf-8") as f:
reader = csv.DictReader(f)
missing = [c for c in REQUIRED if c not in (reader.fieldnames or [])]
if missing:
raise SystemExit(f"Missing columns: {missing}")
for line, row in enumerate(reader, start=2):
if row["post_id"] in seen:
problems.append(f"line {line}: duplicate post_id {row['post_id']}")
seen.add(row["post_id"])
try:
parse_time(row["posted_at"])
except ValueError:
problems.append(f"line {line}: bad timestamp {row['posted_at']!r}")
for col in NUMERIC:
value = row[col].strip()
if value == "":
continue # empty means unavailable, which is allowed
if not value.isdigit():
problems.append(f"line {line}: {col} is not a whole number: {value!r}")
followers = row["followers_at_post"].strip()
if followers.isdigit() and int(followers) == 0:
problems.append(f"line {line}: followers_at_post is 0")
if problems:
print("\n".join(problems))
else:
print(f"OK: {len(seen)} rows passed")Passing this check does not prove the data is right. It proves the sheet is well formed. Also spot-check several rows against the live post by eye.
Edge cases to handle
- Stories and other short-lived content. Stories vanish after 24 hours. Capture their analytics for your own account promptly, and treat competitor Stories as out of scope unless you can record them legitimately.
- Paid and boosted posts. Paid reach inflates engagement. Add a
paidcolumn for your own posts and exclude or separate them. For competitors, paid promotion is often invisible, which is another caveat. - Pinned and old posts. A pinned post may be months old. Filter by
posted_at, not by position in the feed. - Collaborations and reposts. Decide whether a joint post counts for each account and apply the rule evenly.
- Time zones. Store timestamps in UTC. Convert to a local time only when you analyze posting times.
- Hidden likes. If a competitor hides likes, compute their engagement from comments only and compare that figure only with other comment-based figures. Do not mix it with like-based rates.
What to do next
With a validated sheet, you can compute engagement rate in the next chapter. The denominator you choose, followers or reach, depends on which fields you were able to collect here.
Exercise
You collect 30 posts from your own account and 30 from a competitor. Your export includes reach and saves, but the competitor's page shows only likes and comments. Which fields should you use to compare engagement fairly, and how should you record the competitor's missing fields?
Show answer
Compare using only likes and comments, since those are the fields both accounts have. Leave the competitor's reach, shares and saves cells empty rather than writing 0, because empty means "not visible" and zero would claim nobody shared or saved the posts. Note in the report that the competitor figures exclude saves, shares and reach.
Exercise
Why should you collect competitor posts within a few days of each other and avoid including posts published in the last 24 hours?
Show answer
Likes and comments keep accumulating after publishing, so a very recent post looks weaker than an older post of the same quality. Collecting in a short period and using only posts that have had time to mature (for example at least 7 days) keeps the counts comparable.