intermediate1 hour3 min read

How to track lead-to-MQL conversion rate by source and report weekly to Slack

Track HubSpot lead-to-MQL conversion rates by source and report weekly to Slack. Compare n8n, Make, code, and Claude Code approaches.

How to track lead-to-MQL conversion rate by source and report weekly to Slack

This recipe includes a downloadable n8n template and Claude Code skill.

Workflow

Weekly schedule
Query leads & MQLs
Calculate rates by source
Post report to Slack

Why track conversion by source?

Marketing teams spend $10,000-50,000/month across channels without knowing which ones actually produce qualified pipeline. Your paid ads might generate 500 leads but only 10 MQLs (2% conversion), while organic search produces 50 leads and 15 MQLs (30% conversion). Without source-level conversion tracking, you're optimizing spend based on volume instead of quality.

The typical workflow — exporting from HubSpot, pivoting in a spreadsheet, pasting into Slack — takes 30-45 minutes and usually happens monthly at best. By then, an underperforming channel has burned through weeks of budget. A weekly automated report surfaces these gaps within days, not months.

How it works

Every approach in this guide follows the same pattern:

  1. Trigger on a weekly schedule (usually Monday morning)
  2. Query HubSpot for contacts created in the last 7 days, pulling hs_analytics_source and lifecyclestage properties
  3. Run a second query filtered to contacts where lifecyclestage = marketingqualifiedlead to isolate MQLs
  4. Calculate conversion rates per source by comparing lead counts to MQL counts
  5. Post a formatted report to Slack with per-source breakdown and overall conversion rate
What you'll get
#marketing-ops
Conversion Botapp9:41 AM

📈 Weekly Lead-to-MQL Conversion Report

Period: Feb 24 – Mar 2

Organic Search — 124 leads → 31 MQLs (25.0%)

Paid Ads — 487 leads → 34 MQLs (7.0%)

Referral — 38 leads → 14 MQLs (36.8%)

Webinar — 92 leads → 19 MQLs (20.7%)

Total: 741 leads → 98 MQLs (13.2%)

View full breakdown →

What you'll need

Prerequisites
  • HubSpot account with API access
  • Lifecycle stages configured (at minimum: Lead, MQL)
  • Lead source tracking in HubSpot (via UTM parameters or original source property)
  • Slack workspace with bot access

Which approach should I use?

  • Code + Cron if you want zero ongoing cost and full control over the query logic. Best for teams with a developer who can maintain the script. Runs on GitHub Actions for free.
  • n8n if you want a visual workflow you can modify without code. Free self-hosted or $24/mo cloud. Good balance of flexibility and maintainability.
  • Make if your team already uses Make for other automations. Requires Core plan ($29/mo) for the Code module needed to calculate percentages. Credit-efficient at ~20 credits/month.
  • Claude Code if you want conversational flexibility — ask for different time windows, specific source breakdowns, or ad-hoc comparisons without changing any configuration. Best when you need on-demand reports during meetings or strategy sessions.

Select an approach below to see the full step-by-step guide.

Compare approaches

n8n

medium
Cost: $0-24/mo
Latency: polling
Code: low
Reliability: 24/7 cloud

Make

medium
Cost: $10-29/mo
Latency: polling
Code: none
Reliability: 24/7 cloud

Code + Cron

medium
Cost: $0
Latency: real-time
Code: high
Reliability: Self-hosted

Claude Code

low
Cost: Usage-based
Latency: on-demand
Code: none
Reliability: On demand

n8n

medium

Schedule → HubSpot search leads and MQLs → Code to calculate rates → Slack

Downloadable templateView guide

Make

medium

Scheduler → HubSpot searches → Aggregators for counts → Slack message

Cost: $10-29/moView guide

Code + Cron

medium

Python script to query HubSpot for lead/MQL counts by source and post to Slack

Cost: $0View guide

Claude Code

low

Guided Claude Code skill — ask Claude to generate a conversion report or analyze lead sources conversationally

Downloadable skillView guide

Related Recipes

Frequently Asked Questions

Looking to scale your AI operations?

We build and optimize automation systems for mid-market businesses. Let's discuss the right approach for your team.