Skip to main content
All CollectionsFAQMy Campaigns
Automatically joining a Viral Loops campaign - Automatic Participation
Automatically joining a Viral Loops campaign - Automatic Participation

Make your audience join the Viral Loops campaign simply by clicking a button or a link

Fivos Stergiannis avatar
Written by Fivos Stergiannis
Updated over a week ago

Sometimes you want your audience to join your campaign automatically, simply by clicking a link or a button in an email. This way, when they land to the page where the Viral Loops Widgets are installed, the widgets automatically show the participant's sharing options and rewards without ever asking for an email address.

You can make this happen, provided you have their email address, simply by adding some parameters in the URL:

  • email=<<user's email>>

  • (optional) firstname=<<user's first name>>

  • (optional) lastname=<<user's last name>>

  • autoDetect=1

For example, if your Campaign Page is at:

https://www.example.com/refer/

and the user's email is bill@initech.com, then the automatic participation URL should be:

https://www.example.com/refer/?email=bill@initech.com&firstname=Bill&autoDetect=1

This will open the Campaign Page where the participant will be automatically identified, added to the campaign and their sharing options displayed to them.

➡️ If you are using a campaign with a popup, you can make the popup open automatically once the participant is identified. Simply add one more parameter:

  • autoTrigger=1

For example, the above URL would become:

https://www.example.com/refer/?email=milton@initech.com&firstname=Milton&autoDetect=1&autoTrigger=1

➡️ If you also want to capture referrals you just need to add the referral code before the e-mail value:

https://www.example.com/refer/?referralCode=REFERALCODE&email=milton@initech.com&firstname=Milton&autoDetect=1&autoTrigger=1

Implementations:

1) You have to add the following for only email:

https://www.example.com/refer/?email=*|E-MAIL|*&autoDetect=1&autoTrigger=1

2) Or this for email and name as well:

3) If you are using the Newsletter template with Mailchimp, you can use that on your email widget's button: https://www.example.com/refer/?email=*|EMAIL|*&autoDetect=1&autoTrigger=1

If you want to add those on apps outside Viral loops, you need to find out the right Mergetags for them. You can always ask us or their support too.

Did this answer your question?