Skip to main content

Social Analytics — how this works

In the app: /social/analytics

How it works

Per-platform reach (impressions) and engagement (likes/comments/shares/clicks), aggregated from SocialEngagementFact rows. Real numbers require each platform's own OAuth-connected API — not yet wired for any brand — so this table is empty today and the page honestly renders a zero-safe empty state rather than a fabricated number. Once a founder connects a platform, a future sync populates SocialEngagementFact and this page starts showing real reach/engagement with no further code changes.

Data source

src/lib/social/socialAnalytics.ts (pure aggregations) + src/lib/social/socialAnalyticsRepo.ts (the SocialEngagementFact loader).

Troubleshooting

Every number reads zero? That's the honest, expected state until platform OAuth is wired (§B) — nothing populates SocialEngagementFact yet. This is not a bug.

Who can see this: admin