The Viral Loops Developer Hub

Welcome to the Viral Loops developer hub. You'll find comprehensive guides and documentation to help you start working with Viral Loops as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

"The Startup Pre-launch" + Instapage

Create a waitlist campaign using Instapage and Viral Loops

Start by building your website in Instapage. For this example we replicated the page we set up at Viral Loops to give away our #goviral t-shirt. If you haven't already, you should get one too!

We used a "Tempting Giveaway" template there but this guide works just the same for the "Leaderboard Giveaway" and the "Startup Pre-launch" templates.

So, this is what it looks like in Instapage:

Step 1: Get the ID of the button

Your visitors will click a button in your page to open the Viral Loops popup and join your campaign. That's what the pink button does in our example.

Now back to Instapage, when editing your page, click on the button that you want to use to trigger the popup and copy it's element ID. After clicking on the button, find the element ID at the top right of the screen.

Write down the ID exactly as it appears there.

Write down the ID exactly as it appears there.

It will be something like "element-8". Note it down somewhere, exactly as it appears there.

Now, after you have created your campaign in Viral Loops, in the Installation step of the Campaign Wizard select Instapage and fill-in this ID.

Multiple buttons?

If you want to trigger the popup with more than one buttons in your page, just copy all their ID's and add them in the relevant input in the Campaign Wizard. Just click Add more to add more entries!

Step 2: Add the Javascript snippet

Now back to editing your page in Instapage, click Settings, Javascript and add the Javascript snippet for your campaign in the Body section. You can find your snippet in your Campaign Wizard, at the Installation step.

Paste your snippet in the editor and click "Done".

Step 3: That's it!

There is no step 3, you should be ready to go now. Just publish your page and it's ready to start receiving visitors who will click your button and join the campaign you just created!

Simple? Let us know if you need more help!

"The Startup Pre-launch" + Instapage

Create a waitlist campaign using Instapage and Viral Loops