Tutorials
We'll walk you through adding personalized referral program messaging to your Mailjet emails.
When you connect your GrowSurf campaign to Mailjet, you can easily embed a referral program into your Mailjet emails. Check out the examples below, each with ready-made code snippets that you can copy/paste and customize to your liking.
Example 1
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 4, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/illustrations/GrowSurf-steps-2.pngwith your own image.At line 11 replace
PrismJarwith your own brand name.At line 12, replace
#1673dfwith your own brand color.At line 15, replace the text
[[data:grsf_share_url]]%0AJoin%20PrismJar%20and%20we%20both%20get%20$10%20with your own.Make sure to encode the message using a tool like https://www.url-encode-decode.com
Make sure to include
[[data:grsf_share_url]]only to the encoded message
At line 17, replace the text
Join%20PrismJar%20and%20we%20both%20get%20$5%20with your ownMake sure to encode the message using a tool like https://www.url-encode-decode.com
Example 2
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 4, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/email-examples/Gift0002.pngwith your own image.At line 15, replace
#e87b3cwith your own brand color.At line 15, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you set up a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
Example 3
Display static images in email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 5, replace all instances of
Cointechwith your own brand name.At lines 6, 21, 30, 39, and 47, replace
#4f46e5with your own brand color.At lines 6 and 47, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you set up a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
Example 4
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 5, replace
LearnEdwith your own brand name.At line 10, replace
https://d1pnnwteuly8z3.cloudfront.net/images/b90d3589-b2f5-4e75-bf91-c0fba9e89952/507b3cec-5435-499f-96d7-46c5a4d6d79f.svgwith your own image.At line 19, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you set up a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At line 19, replace
#ee1152with your own brand color.
Example 5
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 5, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/email-examples/people.pngwith your own image.At line 19, replace
#094a83with your own brand color.At line 19, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you set up a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
Example 6
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 5, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/email-examples/welcome.pngwith your own image.At lines 7 and 12, replace
Sipswith your own brand name.At line 27, replace the text
Hey!%20Do%20you%20love%20wine?%20So%20do%20I.with your own.Make sure to encode the message using a tool like https://www.url-encode-decode.com
At line 33, replace the text
[[data:grsf_share_url]]%0AHey!%20Do%20you%20love%20wine?%20So%20do%20I.with your ownMake sure to encode the message using a tool like https://www.url-encode-decode.com
Make sure to include
[[data:grsf_share_url]]only to the encoded message
Example 7
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 4, replace all instances of
PrismJarwith your own brand name.At line 8, replace
#1673dfwith your own brand color.At line 8, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you set up a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At line 12, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/email-examples/boy-and-girl-giving-high-five-to-each-other.pngwith your own image.
Example 8
Display static images in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At lines 5 and 24, replace all instances of
Cointechwith your own brand name.At lines 6 and 42, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you set up a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At lines 6 and 42, replace
#4f46e5with your own brand color.At line 22, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/illustrations/GrowSurf-steps-1.pngwith your own image.At line 27, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/illustrations/GrowSurf-profiles-4.pngwith your own image.At line 32, replace
https://growsurf-blog.s3.us-west-2.amazonaws.com/illustrations/GrowSurf-steps-2.pngwith your own image.
Example 9
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 20, replace all instances of
Evening Stewwith your own brand name.At lines 25, 30, and 35, replace
#8E4CEDwith your own brand color.At line 25 and 35, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you setup a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At line 15, replace
https://growsurf-blog.s3-us-west-2.amazonaws.com/eveningstew/rewards-inline.pngwith your own image.At line 35, because
[[data:grsf_next_milestone]]is used, make sure that any milestone rewards you have in your GrowSurf campaign have Next Milestone values set (see image. Note: This only applies to milestone rewards).
Example 10
Display different reward images based on how many referrals the participant has made.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At lines 9, 41, and 46, replace
#8E4CEDwith your own brand color.At line 46, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you setup a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At line 35, replace
https://growsurf-blog.s3-us-west-2.amazonaws.com/eveningstew/0-won.pngwith your own image based on[[data:grsf_total_referral_count]]. In this example, you would display any one of these five images at a given time:If
[[data:grsf_total_referral_count]]<3, then display this image.If
[[data:grsf_total_referral_count]]>=3 and <5, then display this image.If
[[data:grsf_total_referral_count]]>=5 and <10, then display this image.If
[[data:grsf_total_referral_count]]>=10 and <20, then display this image.If
[[data:grsf_total_referral_count]]>=20, then display this image.
At line 51, because
[[data:grsf_next_milestone]]is used, make sure that any milestone rewards you have in your GrowSurf campaign have Next Milestone values set (see image. Note: This only applies to milestone rewards).
Example 11
Display a GIF image with rotating rewards in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At lines 10 and 21, replace
Evening Stewwith your own brand name.At line 21, replace all instances of
#8E4CEDwith your own brand color.At line 21, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you setup a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At line 15, replace
https://growsurf-blog.s3-us-west-2.amazonaws.com/eveningstew/rewards-inline.pngwith your own GIF image (you can use a tool like https://ezgif.com/maker).
Example 12
Display a static image in your email.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At lines 10 and 15, replace
Hustowith your own brand name.At lines 20 and 30, replace
#F46A54with your own brand color.At line 30, replace
YOUR_CAMPAIGN_IDwith your GrowSurf campaign ID (e.g,p9josq)If you setup a custom domain for your GrowSurf Referral Portal, replace the entire
https://grow.surf/YOUR_CAMPAIGN_IDinstead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).
At line 25, replace
https://growsurf-blog.s3-us-west-2.amazonaws.com/eveningstew/rewards-inline.pngwith your own image.
Example 13
Display a static image with text next to it.
What it looks like

Copy/paste this HTML code into your Mailjet email
Customize the contents
At line 7, replace
https://growsurf-blog.s3-us-west-2.amazonaws.com/husto/reward.pngwith your own image.At line 8, replace the entire
https://husto.com?grsf=abc123instead with your Referral Portal URL (e.g,https://refer.yourwebsite.com).At line 8, replace
#F46A54with your own brand color.
Last updated
Was this helpful?