https-deeplearning-ai/sc-agent-skills-files-analyzing-marketing-campaign
Analyze weekly marketing campaign performance data across channels. Use when analyzing multi-channel digital marketing data to calculate funnel metrics (CTR, CVR) and compare to benchmarks, compute cost and revenue efficiency metrics (ROAS, CPA, Net Profit), or get budget reallocation recommendations based on performance rules.
npx skills add https://github.com/https-deeplearning-ai/sc-agent-skills-files --skill analyzing-marketing-campaign
Automated analysis of multi-channel marketing campaign data from BigQuery.
Query data from BigQuery using the bigquery:execute_sql tool.
Location: marketing-analytics-483823.marketing.campaign_performance
Schema:
| Column | Type | Description |
|--------|------|-------------|
| date | DATE | Campaign date |
| campaign_name | STRING | Campaign identifier |
| channel | STRING | Marketing channel |
| segment | STRING | Customer segment |
| impressions | INTEGER | Ad impressions (NULL for Email) |
| clicks | INTEGER | Number of clicks |
| conversions | INTEGER | Number of conversions |
| spend | FLOAT | Marketing spend in dollars |
| revenue | FLOAT | Revenue generated in dollars |
| orders | INTEGER | Number of orders |
The user must specify a week to analyze. Accept formats like:
If the date range is ambiguous, ask the user to clarify before querying.
Always filter by date range—never pull the entire table. Example query structure:
SELECT
channel,
SUM(impressions) as impressions,
SUM(clicks) as clicks,
SUM(conversions) as conversions,
SUM(spend) as spend,
SUM(revenue) as revenue,
SUM(orders) as orders
FROM `marketing-analytics-483823.marketing.campaign_performance`
WHERE date BETWEEN '2024-12-09' AND '2024-12-15'
GROUP BY channel
Adjust the query as needed for the specific analysis (e.g., group by segment, include daily breakdown).
Calculate per channel:
Compare to user-provided benchmarks, report difference in percentage points. If benchmarks not provided, use:
| Channel | CTR | CVR |
|---------|-----|-----|
| Facebook_Ads | 2.5% | 3.8% |
| Google_Ads | 5.0% | 4.5% |
| TikTok_Ads | 2.0% | 0.9% |
| Email | 15.0% | 2.1% |
Calculate per channel:
Compare to user-provided targets. Defaults:
Present results as tables with status indicators:
Funnel Analysis Table:
| Channel | CTR Actual | CTR Benchmark | CTR Diff | CVR Actual | CVR Benchmark | CVR Diff |
Efficiency Analysis Table:
| Channel | ROAS | Status | CPA | Status | Net Profit | Status |
Status indicators:
Follow each table with brief channel-by-channel interpretation.
If user asks about budget reallocation, read references/budget_reallocation_rules.md for the complete decision framework including eligibility rules, performance-based actions, and constraints.
Take https-deeplearning-ai/sc-agent-skills-files-analyzing-marketing-campaign from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.