The JavaScript integration allows you to show the post-purchase popup widget to your customer at checkout.
JavaScript integration with post-purchase popup
Step 1: Enable the popup widget
To enable the post-purchase popup widget:
On the ReferralCandy dashboard, go to Integrations > Standalone.
Check Show post-purchase widget after checkout. When checked, the
refcandy-popsicle
script appears. Therefcandy-mint
appears when unchecked.From the dropdown options, select which campaign the widget is enabled for.
Note: If you're running multiple campaigns, you can enable the popup widget for one campaign at a time, which is the one you set on your Standalone page.
Step 2: Configure the popup widget
To configure the post-purchase popup for your campaign:
On the ReferralCandy dashboard, go to Campaigns > Select your campaign > Widgets.
Set the Allow signup/waitlist for unqualified customers option. Learn more
Find the code snippet and click Copy. The code contains the
refcandy-lollipop
script.Click Save changes. The post-purchase popup should look like this:
To learn more about customizing the content and messaging of the post-purchase popup widget, read the article Customizing your referral emails & pages.
Obtain consent to receive marketing emails
Obtain consent to receive marketing emails
You should always obtain consent from your customers before enrolling them in your referral program. It's recommend you include a form input, unchecked by default, that says "I consent to receive notifications about your referral program."
If your customer consents to receiving emails, they receive a referral email after purchase regardless of how they interact with the post-purchase popup.
If your customer doesn't consent to receiving emails, they'll only receive a referral email if they click the "Share Invite Link" button in the post-purchase popup.
To prevent sending marketing emails about your referral program to customers who didn't consent, contact us to enable this feature. This requires a developer to set the data field data-accepts-marketing
in the post-purchase popup HTML snippet.
π¬ Need help? Click the chat widget on the right to start a conversation. Learn more
β