Setting up your site

The Viral Loops snippet

To install a Viral Loops widget please add the following snippet of code in the <head> section of your site:

<script id="viral-loops-loader" src=""></script>

This will load the Viral Loops JavaScript globally on your site. After this, you're ready to install our widgets!

Depending on your template, there is a different variety of widgets available to you.

If you prefer to integrate with an existing form then make sure to also include your unique campaign ID on the snippet like this:

<script id="viral-loops-loader" data-campaign-id="<YOUR_CAMPAIGN_ID>" src=""></script>

The Campaign ID can be found on your campaign's installation page


This should be installed across all pages your campaign takes place!