# How to Add Referral Links to MailerLite Campaigns > Use GrowSurf variables in MailerLite campaigns and automations so every subscriber gets their own referral link. - URL: https://growsurf.com/integration-guides/mailerlite-referral-email-personalization/ --- [← View All Guides](/integration-guides/) MailerLite variables put each subscriber’s own referral link into a single campaign or automation. Want the full setup walkthrough? Use these docs for exact setup steps, supported fields, and troubleshooting. [GrowSurf MailerLite tutorials](https://docs.growsurf.com/integrations/mailerlite/tutorials) [MailerLite variables help](https://www.mailerlite.com/help/how-to-use-variables-in-mailerlite) With GrowSurf syncing into a MailerLite Group, each subscriber’s referral link and progress are fields. One campaign then covers the whole Group, each reader seeing their own link. MailerLite variables take the form `{$name}`. The dollar sign is part of the syntax, not decoration. ## Integration Steps ### Confirm the fields are populated The MailerLite API key field in the GrowSurf Program EditorMailerLite lives in Program Editor > 4. Options > Integrations. Open a synced subscriber in MailerLite and check the GrowSurf fields before building the campaign. ### Show the link, do not hide it in a button Use `{$grsf_share_url}` as both the href and the visible text. Readers copy URLs they can see. ### Add progress for people who have some `{$grsf_total_referral_count}` and `{$grsf_next_milestone}` personalize the ask. Keep the sentence readable for a subscriber at zero, because most of the Group is. ### Reuse it in an automation The same variables work in MailerLite automation emails. A referral prompt a week after signup keeps working without you sending anything again. ## Code Snippets **The referral link** ```
Share your referral link:
{$grsf_share_url} ``` **Progress and next milestone** ```You have made {$grsf_total_referral_count} referrals so far.
{$grsf_next_milestone}
``` **A share button** ``` Share on X ``` ## Tips #### Keep the dollar sign `{$grsf_share_url}`. Without `$` the variable renders as plain text. #### Referral status has an unusual name In MailerLite it is `{$grsf_participant_referral_status}`. Copy it from the table rather than guessing from the other fields. #### Test against a synced subscriber A preview using an address outside the Group resolves nothing. Recommended Guides [MailerLite logo How to Sync GrowSurf Referral Data to MailerLite Subscribers One API key, one Group, 15 referral fields — on MailerLite Classic, which is the part to check first. View Guide →](/integration-guides/mailerlite-referral-subscriber-sync/) [EmailOctopus logo How to Build Referral Campaigns in EmailOctopus with GrowSurf Merge tags put each contact’s own referral link into a single EmailOctopus campaign or automation. View Guide →](/integration-guides/emailoctopus-referral-email-campaigns/) [GetResponse logo How to Add Referral Links to GetResponse Newsletters and Autoresponders Custom field tags give every contact their own referral link from one GetResponse message. View Guide →](/integration-guides/getresponse-referral-email-personalization/) ## FAQ #### What is the variable syntax? `{$name}`, for example `{$grsf_share_url}`. #### Do variables work in automations? Yes, the same as in campaigns. #### Why is my referral link blank? Either the subscriber has not synced, or the variable is missing its dollar sign. ## Turn word of mouth into steady growth from your customers Launch a refer-a-friend or affiliate program that lowers your acquisition costs and builds customer loyalty, with little engineering work. [Launch Your Program](https://app.growsurf.com/signup) 14-day free trial No credit card required Trusted by marketing and product teams that grow through customer, user, and partner referrals. ## Built for lean teams, scaled for category leaders Thanks. You're signed up. Something went wrong. Please try again.