The easiest way to install your Viral Loops campaign in your WordPress website is to use the Viral Loops plugin for WordPress.
The plugin adds a Viral Loops block to the Gutenberg editor (default WordPress editor) and to these page editors:
Elementor
Divi Builder
WPBakery
That way, installing your campaign is as simple as dragging and dropping the Viral Loops block in the page.
The plugin supports all Viral Loops templates except the Altruistic Referral and Viral Loops for Shopify.
Instructions
In your WordPress Admin, go to Plugins and click “Add New”. Find Viral Loops in the marketplace and install and activate it.
Find Viral Loops on the left sidebar and add a new campaign. It will ask for your secret API token. You can find that in the Installation step of the Campaign Wizard. Only one campaign can be active at any time. (if you are using the Newsletter template, you can find the secret API token from the "Finish step" in the "Integrations" section. You will find "Campaign secret API token" there)
Edit the page where you want to install your campaign.
Find the Viral Loops block in the builder you are using (Gutenberg, Elementor, Divi, WP Bakery) and add it to the page. (if you are using the Newsletter template with Elementor, it will probably ask you for the secret API token now. Add it and proceed)
From the dropdown that appears, select the widget that you want to add. The dropdown only shows widgets that are available for the template you have installed.
Publish the page and you’re ready!
Visitors that get to the page will see the Viral Loops Widgets and can join the campaign or see rewards they have won.
Using shortcodes
If you are not using any of these page editors then you can also use shortcodes to embed the widgets in your WordPress pages. These are the relevant shortcodes for each Viral Loops widget:
Form Widget |
|
Milestone Widget |
|
Popup Trigger |
|
Referral Count Widget |
|
Reward Stats Widget (for Refer a Friend) |
|
Invitee Widget |
|
Screenshots