How do I update a participant's referral count in my ESP or database every time they make a referral?
NOTE: This article only applies to you if GrowSurf does not support your email service provider (ESP). GrowSurf's integrations (e.g, Mailchimp, ActiveCampaign) will update participant referral counts automatically, so there's no need to set up anything else.
Let's say that every time someone makes a referral, you want to update their referral count in your ESP or in your database. The use-case may be that you want to show your participants the amount of real-time referrals they have made in your email newsletter.
This is possible via Zapier or Webhooks.
- Add a Filter (more details here) to check if Participant Referred By exists. If the new participant was referred, this value will exist, and you can continue.
- The referrer can be identified as the Referrer Email property. Use this value to update their referral count in your ESP or database.
- Add a conditional to check if a new participant was referred by using the referredBy key, and only proceed if it is true.
- The referrer can be identified as the referrer.email key. Use this value to update their referral count in your ESP ordatabase.