Built for startups,
scaled for unicorns
Successfully submitted!
Error! Please try again
Google Analytics is the foundation of web analytics for most businesses β and your referral program's performance should be visible alongside your other traffic sources and marketing channels. By properly integrating GrowSurf with Google Analytics, you can track referral link clicks as a distinct traffic source, measure conversion rates for referred visitors, and compare referral channel performance against paid ads, organic search, and social media.
This guide covers setting up UTM-based referral tracking, configuring custom events for referral actions, building Google Analytics segments for referred visitors, and creating dashboards that show your referral program's contribution to overall traffic and conversions.
Set up UTM parameters on your GrowSurf referral links so Google Analytics can properly attribute traffic.
utm_source=growsurfutm_medium=referralutm_campaign=referral-program (or your campaign name)utm_content={{referralCode}} (tracks individual referrer)https://yoursite.com/?grsf={{referralCode}}&utm_source=growsurf&utm_medium=referral&utm_campaign=referral-programTrack specific referral actions as Google Analytics events using GA4's custom events.
referral_link_shared β when a participant shares their linkreferral_signup β when a referred visitor signs upreferral_converted β when a referral converts to a customergtag('event', 'referral_signup', { ... }) to send eventsSet up custom dimensions in GA4 to store referral-specific data alongside standard analytics.
gtag()Create a Google Analytics segment that isolates all traffic coming from your referral program.
Set up GA4 conversions that track when referred visitors complete key actions.
referral_signup and referral_converted events as conversionsCreate a GA4 dashboard or Looker Studio report for referral program metrics.
// Send GrowSurf referral events to Google Analytics 4
// Add this to your website where GrowSurf's JS SDK is loaded
// Track when a participant shares their referral link
document.addEventListener('grsfShareLinkCopied', function(e) {
gtag('event', 'referral_link_shared', {
referral_code: e.detail.referralCode,
share_method: 'link_copy',
campaign_name: 'referral-program'
});
});
// Track referral sign-up (on your sign-up confirmation page)
function trackReferralSignup(participantData) {
if (participantData.referredBy) {
gtag('event', 'referral_signup', {
referral_code: participantData.referralCode,
referred_by: participantData.referredBy,
campaign_name: 'referral-program'
});
// Set user property for cross-session tracking
gtag('set', 'user_properties', {
acquisition_channel: 'referral',
referred_by: participantData.referredBy
});
}
}
// Track referral conversion (on purchase/subscription page)
function trackReferralConversion(participantData, value) {
gtag('event', 'referral_converted', {
referral_code: participantData.referralCode,
referred_by: participantData.referredBy,
conversion_value: value,
currency: 'USD',
campaign_name: 'referral-program'
});
}
// UTM parameter configuration for GrowSurf referral links:
// Set in GrowSurf Campaign > Settings > Custom Referral Link
// https://yoursite.com/?grsf={{referralCode}}&utm_source=growsurf&utm_medium=referral&utm_campaign=referral-program&utm_content={{referralCode}}Set utm_content to the participant's referral code. This lets you see which individual referrers drive the most traffic and conversions in Google Analytics, giving you a built-in leaderboard without any additional tooling.
The most powerful insight from GA referral tracking is comparing referred visitor behavior against paid traffic. Referred visitors typically have higher engagement (lower bounce rate, more pages per session) and higher conversion rates. Use this data to justify referral program investment.
Create a GA4 audience of referred visitors who didn't convert (arrived via growsurf source but didn't trigger a conversion event). Use this audience for remarketing campaigns β these visitors already have social proof from the referral, they may just need another touchpoint.
GrowSurf allows you to configure custom parameters on referral links, but UTM parameters need to be set up manually in your campaign settings. Configure the referral link template in Campaign Settings to include the UTM parameters alongside GrowSurf's native tracking parameter (grsf).
GA4's User-ID feature and Google Signals help track users across devices. When a referred user signs up, set their User-ID in GA4. This links their initial referral click (possibly on mobile) to their conversion (possibly on desktop), giving you accurate cross-device referral attribution.
Yes, if you use utm_content with the referral code. In GA4, go to Acquisition > Traffic Acquisition and add "Session campaign content" as a secondary dimension. This shows traffic and conversion metrics for each individual referral code.
Trusted by marketing and product teams at fast-growing B2C, fintech, and SaaS companies
