Home
cd ../playbooks
Marketing & ContentIntermediate

Social Media Analytics

Track campaign performance across platforms, benchmark engagement rates, identify optimal posting times, and generate ROI reports that prove social media value.

10 minutes
By davila7/claude-code-templates
#social-media#analytics#ROI#engagement#metrics#reporting

Your boss asks 'what's the ROI of social media?' and you spend two days pulling data from five platforms into a spreadsheet. This playbook tracks campaign performance across platforms, benchmarks engagement rates, identifies optimal posting times, and generates ROI reports that prove social media value.

Who it's for: social media managers reporting cross-platform campaign performance to stakeholders, marketing directors needing ROI justification for social media budget allocation, agency social strategists benchmarking client performance against industry standards, brand managers tracking engagement trends and audience growth over time, growth marketers optimizing posting schedules based on performance data

Example

"Generate a monthly social media performance report for our CEO" → Analytics pipeline: cross-platform data aggregation (Twitter, LinkedIn, Instagram engagement metrics), campaign performance tracking with cost-per-engagement calculations, optimal posting time analysis based on historical engagement patterns, competitor benchmarking against industry engagement rates, and executive dashboard with ROI metrics and trend visualizations

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add social-media-analytics
# Social Media Analytics

## Role
You are a social media analytics specialist. You consolidate performance data across Instagram, Twitter/X, LinkedIn, TikTok, and Facebook into unified reports with actionable insights. You calculate true ROI, benchmark engagement against industry standards, identify optimal posting strategies, and translate raw metrics into business recommendations.

## Workflow

### 1. Data Collection and Normalization
- Ingest platform exports (CSV, screenshots, or manual input)
- Normalize metric definitions across platforms (e.g., "engagement" = likes + comments + shares + saves)
- Flag missing data or date range mismatches
- Create unified dataset with consistent naming

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Turns scattered social media metrics into clear performance intelligence. Pulls together data from Instagram, Twitter, LinkedIn, TikTok, and Facebook to track campaign ROI, benchmark engagement against industry standards, find your best posting windows, and generate weekly or monthly reports your team can actually act on.


The Problem

Social media teams drown in platform-specific dashboards. Instagram says one thing, LinkedIn says another, and nobody agrees on what "engagement" means. You spend hours copying numbers into spreadsheets, your ROI calculations are guesswork, and leadership keeps asking "is social media actually working?" without getting a straight answer.


The Fix

A unified analytics workflow that standardizes metrics across platforms, calculates true campaign ROI (including labor costs), benchmarks your performance against industry averages, and outputs clean reports. You provide the exports, Claude does the math and the storytelling.


Quick Start

Step 1: Download the Template

Click Download above to get the CLAUDE.md file.

Step 2: Export Your Platform Data

Export CSV or screenshot data from each platform's native analytics. Place them in your working folder.

Step 3: Run Analysis

claude

Say: "Analyze my social media performance for this month"


Example Commands

"Compare engagement rates across all my platforms"
"Calculate ROI for the product launch campaign"
"What are my best posting times on Instagram and LinkedIn?"
"Which content types get the most saves and shares?"
"Generate a monthly social media report for leadership"
"Benchmark my engagement against B2B SaaS averages"
"Show audience growth trends over the last 90 days"
"Which campaign had the lowest cost per engagement?"

What Gets Analyzed

Area Metrics Tracked
Engagement Likes, comments, shares, saves, clicks, replies
Reach Impressions, reach, follower growth rate
Conversion Link clicks, UTM tracking, landing page visits
ROI Ad spend, organic value, cost per engagement
Content Post type performance, format comparison
Timing Best day/hour, frequency impact

Example Output

## Monthly Social Report — January 2026

### Platform Summary
| Platform | Followers | Growth | Eng. Rate | Top Post |
|----------|-----------|--------|-----------|----------|
| Instagram | 12,400 | +3.2% | 4.1% | Carousel: "5 Tips..." |
| LinkedIn | 8,200 | +5.1% | 2.8% | Article: "Why We..." |
| Twitter | 15,600 | +1.4% | 1.9% | Thread: "Unpopular..." |
| TikTok | 4,800 | +12.3% | 7.2% | Tutorial: "How to..." |

### Campaign ROI
| Campaign | Spend | Revenue | ROI | CPE |
|----------|-------|---------|-----|-----|
| Product Launch | $2,400 | $18,500 | 671% | $0.32 |
| Brand Awareness | $800 | — | — | $0.18 |

### Best Posting Windows
- Instagram: Tue/Thu 11am-1pm
- LinkedIn: Tue/Wed 8am-10am
- Twitter: Mon-Fri 12pm-2pm

Tips

  • Export consistently: Same date ranges across platforms for accurate comparison
  • Track UTMs religiously: Without them, conversion attribution is guesswork
  • Engagement rate > follower count: A 5% rate on 1K followers beats 0.5% on 50K
  • Benchmark by industry: B2B and B2C averages differ wildly
  • Include labor costs in ROI: Content creation time is a real expense
  • Save historical data: Trend analysis requires at least 3 months of data

Troubleshooting

Missing platform data Claude can work with partial data. Specify which platforms you have: "Analyze only Instagram and LinkedIn"

Engagement rates seem low Ask: "What's the industry benchmark for [your niche] on [platform]?" — your rate may be normal

ROI is hard to calculate for organic Claude can estimate organic post value using equivalent ad cost: "Calculate organic value using $X CPM benchmark"

Too much data to process Start focused: "Just analyze my top 10 posts this month and tell me what they have in common"

Competitor data is incomplete Public metrics only: "Benchmark against [competitor] using their public post engagement"

$Related Playbooks

Marketing & Content

Threads Carousel Generator: Turn a Post Into Slide Images

Splits a text post into 12 slide types and renders exportable carousel images for Threads, Instagram, LinkedIn, TikTok, and Stories via a bundled Next.js preview

15 minutes
Intermediate
Marketing & Content

Publish Blog

Publish blog posts.

15 minutes
Intermediate
Marketing & Content

Rank Monitor

Monitor keyword rankings.

15 minutes
Intermediate
Marketing & Content

Translate Content

Translate marketing content.

15 minutes
Intermediate
Marketing & Content

Video Script

Write video scripts.

15 minutes
Intermediate
Marketing & Content

Webinar Plan

Plan webinars and virtual events.

15 minutes
Intermediate
Marketing & Content

TikTok Marketing Assistant

TikTok content strategy, video creation workflows, posting optimization, and analytics. Based on n8n automation templates.

10 minutes
Advanced
Marketing & Content

Twitter/X Automation

Automate Twitter/X social media workflows including posting, engagement, analytics, and audience growth

10 minutes
Advanced
Marketing & Content

Trending Conversations Scout

Every morning, get the top 3 trending conversations in your niche so you can jump in while they're still fresh and everyone else is catching up.

5 minutes
Beginner
Marketing & Content

Blog Post & Thought Leadership Writer

Create compelling blog posts and thought leadership content with research, structure, SEO optimization, and distribution hooks.

10 minutes
Beginner
Marketing & Content

Campaign Performance Analysis

Analyze marketing campaign performance across channels with attribution modeling, ROI calculation, and optimization recommendations.

10 minutes
Intermediate
Marketing & Content

Case Study Developer

Create compelling customer case studies with problem-solution-results structure, quotes, and measurable outcomes.

10 minutes
Beginner

Browse all Marketing & Content playbooks →