Sub topic 4
Collecting Data from Platforms and Tools
This chapter covers the step between choosing your metrics and analyzing them: getting the numbers out of each platform, in a form you can trust and repeat every month. It assumes you can read native analytics dashboards, work in a spreadsheet, and know the terms reach, impressions, and engagement. The previous chapters defined which metrics you need. Here you gather them.
What you are collecting
A monthly report draws on three kinds of data. Treat them separately, because they come from different places and break in different ways.
- Account-level metrics describe the profile as a whole: followers at month end, net follower change, profile visits, total reach, and total impressions.
- Post-level metrics describe each piece of content: format, publish date, reach, impressions, likes, comments, shares, saves, clicks, and video views.
- Outcome metrics come from outside the platforms: website sessions from social, conversions, leads, and revenue attributed to social. These usually come from a web analytics tool or a CRM.
Collect only what your KPI list and metric definitions call for. Extra columns slow down validation and tempt you to report numbers nobody asked for.
Sources: native analytics, scheduling tools, and exports
You have three common routes to the data. Each has trade-offs.
| Source | Strengths | Weaknesses |
|---|---|---|
| Native analytics (Instagram Insights, LinkedIn Page analytics, and so on) | Most complete and authoritative for that platform; includes metrics other tools cannot reach | Different layout and definitions per platform; manual export |
| Scheduling or reporting tool (for example Hootsuite, Sprout Social, Buffer) | One place for all channels; consistent column names; saved reports | Sometimes lags native data; may omit newer metrics; subscription cost |
| Web analytics (for example Google Analytics) | Shows what visitors did after clicking; ties social to site goals | Depends on correct link tagging; attribution rules vary |
A practical rule: use a combined tool for convenience, but treat native analytics as the source of truth when the two disagree. Note which source you used for each number. You will record it in the report appendix.
Fix the date range before you export
Most collection errors come from inconsistent dates. Decide these points once and write them down.
- Calendar month. Use the first through the last day of the month, for example 1 to 30 November. Avoid "last 30 days", which shifts the window each time you run it.
- Time zone. Platforms report in different time zones. Posts published late on the 30th may land in the next month under a different zone. Pick the zone your team works in and check each tool's setting.
- Post date versus activity date. A post published on 28 October can earn most of its likes in November. Decide whether the report counts activity during the month (all engagement that happened in November) or performance of posts published in the month. Account-level totals normally use activity. Post rankings normally use the posts published in the month. State your choice in the appendix.
- Collection date. Engagement keeps growing for days after a post goes live. Pull data on a fixed day, such as the third business day of the next month, so every month has the same maturity.
A repeatable collection routine
The routine below is the same each month, so a different person could follow it and get the same result.
The key habit is the last two steps. Save the raw export untouched in a dated folder, then work on a copy. If a number looks wrong later, you can trace it back to the original file.
A simple naming scheme keeps the folder readable:
reports/2026-11/raw/instagram_posts_2026-11_pulled-2026-12-03.csv
reports/2026-11/raw/linkedin_page_2026-11_pulled-2026-12-03.csv
reports/2026-11/raw/ga4_social_sessions_2026-11_pulled-2026-12-03.csvCombining exports into one table
Each platform names its columns differently: one says "Reach", another "Unique impressions", another "People reached". Before you analyze, map them to your own column names. The mapping is part of your metric definitions, so check that "reach" means unique accounts in every case. If a platform does not report a metric, leave the cell blank. Do not enter zero, because zero claims that nothing happened.
This script combines exports into one table with consistent names. It assumes pandas is installed and that each CSV is in the folder shown.
import pandas as pd
COLUMN_MAP = {
"instagram": {"Reach": "reach", "Likes": "likes", "Comments": "comments",
"Shares": "shares", "Saves": "saves", "Publish time": "published"},
"linkedin": {"Unique impressions": "reach", "Reactions": "likes",
"Comments": "comments", "Shares": "shares", "Created date": "published"},
}
def load_platform(path, platform):
df = pd.read_csv(path).rename(columns=COLUMN_MAP[platform])
df["platform"] = platform
df["published"] = pd.to_datetime(df["published"])
return df
def combine(sources):
frames = [load_platform(path, platform) for platform, path in sources.items()]
combined = pd.concat(frames, ignore_index=True)
for col in ["likes", "comments", "shares", "saves"]:
if col not in combined:
combined[col] = None
return combined
# Example (paths are illustrative):
# data = combine({
# "instagram": "reports/2026-11/raw/instagram_posts_2026-11_pulled-2026-12-03.csv",
# "linkedin": "reports/2026-11/raw/linkedin_page_2026-11_pulled-2026-12-03.csv",
# })Notice that LinkedIn has no "Saves" column, so the script leaves it empty instead of filling in zero. Your engagement rate formula must handle that gap. Decide in advance whether you calculate engagement rate without saves for that channel or report it as not comparable.
Tagging links so outcomes can be traced
Clicks and sessions only connect to social if links carry tracking parameters. Use UTM parameters, which are labels added to a URL that web analytics tools read. A consistent pattern is:
https://example.com/offer?utm_source=instagram&utm_medium=social&utm_campaign=nov-launchKeep the values lowercase and use one naming convention. "Instagram", "instagram", and "ig" appear as three different sources in analytics, which splits your totals. Keep a shared list of allowed values for the team. Also remember that some traffic arrives untagged, such as links in app bios or shared privately, and is filed as "direct" or "referral". Social-driven sessions are therefore a minimum, not a total.
Common collection problems
- Metric retention limits. Some platforms keep detailed data for a limited time. Export at the end of each month rather than waiting.
- Deleted or archived posts. They vanish from exports, so totals may not match last month's. Note any known deletions.
- Stories and short-lived content. Stories can expire before you export. Pull them on a schedule or use a tool that stores them.
- Paid and organic mixed together. Some exports combine them. Flag which columns include paid results so the later paid-versus-organic analysis is possible.
- Sampled or delayed data. Web analytics may take a day or more to finalize. Keep your pull day consistent.
- Manual copy errors. Pasting between tabs invites mistakes. Paste whole export tables rather than retyping single numbers.
The next chapter covers the checks you run on this collected data before trusting it.
Exercise
Your Instagram export for November shows 14,200 reach, but a colleague who pulled "the last 30 days" on 5 December reports 13,100. Give two likely reasons the numbers differ, and say what you would change in the collection routine.
Show answer
First, the windows differ. "Last 30 days" on 5 December covers about 5 November to 4 December, so it drops early-November days and adds early-December days instead of covering exactly 1 to 30 November. Second, the pull dates or time zones may differ, so late-month activity or delayed data may have been counted differently. A third possibility is that one figure is account-level reach and the other is a sum of post reach. Fix the routine by using the full calendar month, setting one time zone, pulling on a fixed day (such as the third business day), and recording source, range, and pull date in the collection log.