How do I make my referral program pop up as a modal?
Updated: If you're looking to add a "floating button" to your store that displays your referral program, check out this tutorial for an easy, non-technical way to do that.
First, make sure you have created a Custom Page campaign. You'll be provided a bit of code that looks like this:
<script src="https://app.conjured.co/shopify/referral/widget.js?shop=domain.myshopify.com&cmp=XXX"></script><div id="conjured_referral"></div>
You'll need to add this to your theme, with one exception – add two extra parameters to the query string, modal=1 and modalClosed=1:
<script src="https://app.conjured.co/shopify/referral/widget.js?shop=domain.myshopify.com&cmp=XXX&modal=1&modalClosed=1"></script><div id="conjured_referral"></div>
Then you can add a button anywhere you want in your store using the following code: