The JavaScript integration allows you to show the post-purchase popup widget to your customer at checkout. If you are using email integration, read the article Showing a post-purchase popup to customers.
JavaScript integration with post-purchase popup
To enable the post-purchase popup widget:
On the 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, 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.
To configure the post-purchase popup for your campaign:
On the dashboard, go to Campaigns > Select your campaign.
Go to 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.Go to your site and paste the code to your theme.
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. We recommend including 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 will receive a referral email after purchase regardless of how they interact with the post-purchase popup.
If your customer does not consent to receiving emails, your customer will only receive a referral email if they click the "Share Invite Link" button in the post-purchase popup.
To prevent customers who do not consent from receiving marketing emails about your referral program, contact support 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
β