Popup Widgets

❗️

This has been deprecated

Click here to view the latest docs

Supported by the following templates:

  • The Startup Pre-launch
  • The Leaderboard Giveaway
  • The Tempting Giveaway

The Javascript snippet

You can find it in the Installation step of the Campaign Wizard. Add it in the landing page of your website, right before the closing tag.

It looks like this:

<script>!function(a,b,c,d,t){var e,f=a.getElementsByTagName("head")[0];if(!a.getElementById(c)){if(e=a.createElement(b),e.id=c,e.setAttribute("data-vrlps-ucid",d),e.setAttribute("data-vrlps-version","2"), e.setAttribute("data-vrlps-template", t),e.src="https://app.viral-loops.com/popup_assets/js/vl_load_v2.min.js",window.ub){jQuery=null,$=null;var g=a.createElement(b);g.src="https://code.jquery.com/jquery-2.2.4.min.js",f.appendChild(g)}f.appendChild(e);var h=a.createElement("link");h.rel="stylesheet",h.type="text/css",h.href="https://app.viral-loops.com/static/vl-loader.css",f.appendChild(h);var i=a.createElement("div");i.id="vl-overlay",i.style.display="none";var j=a.createElement("div");j.id="vl-loader",i.appendChild(j),a.addEventListener("DOMContentLoaded",function(b){a.body.appendChild(i);for(var c=a.getElementsByClassName("vrlps-trigger"),d=0;d<c.length;d++)c[d].removeAttribute("href"),c[d].onclick=function(){a.getElementById("vl-overlay").style.display="block"};var e=a.querySelectorAll("[data-vl-widget='popupTrigger']");[].forEach.call(e,function(b){var c=a.createElement("div");c.className="vl-embedded-cta-loader",b.appendChild(c)})})}}(document,"script","vrlps-js",CAMPAIGN_ID, CAMPAIGN_TYPE);</script>

Make sure to replace the CAMPAIGN_ID with your campaign ID that you can find in the Installation step of your Campaign Wizard.

The CAMPAIGN_TYPE matches the type of the template:

Template NameType
The Startup Pre-launchwaitlist
The Leaderboard Giveawayranking
The Tempting Giveawaysweepstake

Did this page help you?