Built for startups,
scaled for unicorns
Successfully submitted!
Error! Please try again
Data without visualization is just noise. Once your GrowSurf referral data flows into Salesforce, you need reports and dashboards that turn that data into actionable insights. The right dashboard helps you spot trends, identify top referrers, measure pipeline contribution, and prove ROI to executives.
This guide walks you through building a comprehensive referral program dashboard in Salesforce. You'll create reports covering lead volume, conversion funnel metrics, revenue attribution, top referrer leaderboards, and program ROI β all powered by the GrowSurf referral data synced to your Salesforce org.
Build the foundational report that tracks all referral-sourced leads and their progression through your pipeline.
Referral_Source__c equals "GrowSurf"Track conversion rates at each stage of your referral funnel.
Referral_Source__c = "GrowSurf"Identify your most active and effective referrers to reward them and understand what makes them successful.
Referred_By__c (referrer email)Track actual revenue generated from referral-sourced opportunities.
Build a report that calculates the return on investment of your referral program.
Combine all reports into a single dashboard that tells the complete referral program story.
// Salesforce SOQL queries for referral reports
// 1. Referral leads by status
const leadsByStatus = `
SELECT Status, COUNT(Id) leadCount
FROM Lead
WHERE Referral_Source__c = 'GrowSurf'
GROUP BY Status
ORDER BY COUNT(Id) DESC
`;
// 2. Top referrers leaderboard
const topReferrers = `
SELECT Referred_By__c, COUNT(Id) referralCount,
SUM(CASE WHEN IsConverted = true THEN 1 ELSE 0 END) convertedCount
FROM Lead
WHERE Referral_Source__c = 'GrowSurf'
AND Referred_By__c != null
GROUP BY Referred_By__c
ORDER BY COUNT(Id) DESC
LIMIT 20
`;
// 3. Referral revenue attribution
const referralRevenue = `
SELECT SUM(Amount) totalRevenue, COUNT(Id) dealCount,
AVG(Amount) avgDealSize
FROM Opportunity
WHERE Campaign.Name LIKE '%GrowSurf%'
AND StageName = 'Closed Won'
`;
// 4. Monthly referral trend
const monthlyTrend = `
SELECT CALENDAR_MONTH(CreatedDate) month,
CALENDAR_YEAR(CreatedDate) year,
COUNT(Id) leadCount
FROM Lead
WHERE Referral_Source__c = 'GrowSurf'
AND CreatedDate = LAST_N_MONTHS:12
GROUP BY CALENDAR_MONTH(CreatedDate), CALENDAR_YEAR(CreatedDate)
ORDER BY CALENDAR_YEAR(CreatedDate), CALENDAR_MONTH(CreatedDate)
`;Set up scheduled report subscriptions in Salesforce to automatically email the referral program dashboard to marketing and sales leadership every Monday morning. This keeps the program top-of-mind and ensures stakeholders see results without having to log in.
Don't show referral metrics in isolation β always compare against other lead sources. Show referral conversion rate next to your average conversion rate, referral deal size vs. overall average, and referral time-to-close vs. other channels. This context makes the data actionable.
Add dashboard filters for date range, referral campaign, and referrer so users can slice the data without creating new reports. This makes one dashboard serve multiple use cases and reduces report maintenance.
Yes. Salesforce supports scheduled report exports via email and integrations with Slack through Salesforce for Slack. You can also use Salesforce's Analytics API to pull report data into external dashboards or BI tools.
Review the dashboard weekly for operational metrics (lead volume, conversion rates, top referrers) and monthly for strategic metrics (ROI, revenue attribution, program trends). Quarterly reviews should include cohort analysis and comparison against program targets.
Create custom report types that join Leads, Contacts, Opportunities, and Campaign Members. Go to Setup > Report Types > New Custom Report Type and define relationships between objects. This lets you build cross-object reports that trace the full referral journey from lead to revenue.
Trusted by marketing and product teams at fast-growing B2C, fintech, and SaaS companies
