Skip to main content
All CollectionsStore IntegrationEmail, JavaScript and API Integrations
JavaScript integration with post-purchase popup
JavaScript integration with post-purchase popup

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

Adam avatar
Written by Adam
Updated over 2 months ago

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:

  1. On the 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, 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:

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

  2. Go to Widgets.

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

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

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

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



​

Did this answer your question?