← View All Guides
Mailjet logo
Integration Guide

How to Add Referral Links to Mailjet Campaigns

Mailjet’s data variables put each contact’s own referral link into a single campaign.

Want the full setup walkthrough?

Use these docs for exact setup steps, supported fields, and troubleshooting.

Once GrowSurf syncs into a Mailjet list, each contact’s referral link and progress are stored contact properties. Mailjet reads them with [[data:...]], so one campaign serves the whole list.

Mailjet has more than one variable form, and picking the wrong one is the usual reason a referral link comes out blank.

Integration Steps

Check the properties are there

The Mailjet API key and secret key fields in the GrowSurf Program Editor
Mailjet lives in Program Editor > 4. Options > Integrations.

Open a synced contact in Mailjet and confirm the GrowSurf properties carry values before you build the campaign.

Use the data form, not the var form

GrowSurf writes contact properties stored on the contact, which Mailjet reads with [[data:...]]. The var: form is for values passed in at send time and will not find them.

Show the link

Use [[data:grsf_share_url]] as both the href and the visible text, high in the email.

Keep the offer editable

Reward amounts and milestone copy live in GrowSurf. Change them there and the next sync updates every Mailjet contact without an edit to the campaign.

Code Snippets

The referral link

<p>Share your referral link:</p>
<a href="[[data:grsf_share_url]]">[[data:grsf_share_url]]</a>

Progress and next milestone

<p>You have made [[data:grsf_total_referral_count]] referrals so far.</p>
<p>[[data:grsf_next_milestone]]</p>

A share button

<a href="https://twitter.com/intent/tweet?url=[[data:grsf_share_url]]">Share on X</a>

Tips

FAQ

What is the syntax for the referral link?

[[data:grsf_share_url]].

Why does var: not work?

That form reads values passed in at send time. GrowSurf stores properties on the contact, which the data form reads.

Which property should always be in the email?

The share URL.

Trusted by marketing and product teams that grow through customer, user, and partner referrals.