Skip to main content
All CollectionsPre-launch and Giveaway Capaigns
Automatically trigger the popup and automatic participation
Automatically trigger the popup and automatic participation

How to trigger the popup in your campaign landing page and how to get participants to join the campaign directly from an email

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

Automatically trigger the popup

Sometimes you want the popup to open automatically on the landing page of your campaign, without the users clicking a button to trigger it. 


That's easy to accomplish: You just have to add the following piece of JS code on the landing page of your campaign (or in all the pages where you want your campaign to live in). Make sure to add this script after the Viral Loops campaign javascript snippet. 

What this script does is to wait until the Javascript of the popup has loaded completely and then fires the VL.openModal() function that opens the popup.

Automatic participation

If you would also like the participant to join automatically when they visit the page, then check out this article: Automatically joining a Viral Loops campaign - Automatic Participation.

Did this answer your question?