How can I have a coupon code instantly available for a referred person before they sign up?
Let's say you want to offer a double-sided reward where the referred person gets a coupon code available before they signup (and not after they have already signed up).
You would need to create a single-sided or milestone reward for this purpose because double-sided rewards in GrowSurf are only unlocked for a referred person after they trigger a referral.
You have a few options for how to make a coupon code immediately available for a referred person:
- When your Share URL is visited directly (e.g, http://yoursite.com)
- This option would make the coupon code available for anyone who lands on your Share URL
- When your Share URL is visited with a unique referral link (e.g, http://yoursite.com?grsf=abc123)
- This option would make the coupon code available only if a new visitor visited your site using a participant's unique referral link, which you can verify by calling growsurf.getReferrerId().
- (Optional) To fully lock down your coupon codes to visitors who used a valid participant's unique link, you can call growsurf.getParticipant() and only make the coupon code available based on if the referrer ID is a valid participant.