Skip to main content
JavaScript integration with post-purchase popup

Show the post-purchase popup widget after checkout with JavaScript integration

Adam avatar
Written by Adam
Updated over a week ago

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:

  1. On the ReferralCandy dashboard, go to Integrations > Standalone.

  2. Check Show post-purchase widget after checkout. When checked, the refcandy-popsicle script appears. The refcandy-mint appears when unchecked.

  3. 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:

  1. On the ReferralCandy dashboard, go to Campaigns > Select your campaign > Widgets.

  2. Set the Allow signup/waitlist for unqualified customers option. Learn more

  3. Find the code snippet and click Copy. The code contains the refcandy-lollipop script.

  4. 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

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



​

Did this answer your question?