Skip to main content
All CollectionsCampaignsSocial media sharing, widgets, and other features
Embedding the post-purchase popup widget on Cratejoy
Embedding the post-purchase popup widget on Cratejoy

Add the Post-Purchase Popup widget to your CrateJoy store

Adam avatar
Written by Adam
Updated over a week ago

This article outlines the steps to install the post-purchase popup widget in Cratejoy. For more information about the post-purchase popup widget, read the Setting up an Embedded Signup widget article.

Embedding the Post-Purchase Popup widget

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

  2. Go to Widgets.

  3. Toggle the Post-Purchase Popup widget on.

  4. Check Allow signup/waitlist for unqualified customers. Learn more

  5. Click Save Changes.

  6. Copy the code snippet.

  7. On your Cratejoy dashboard, go to the Design tab.

  8. Click Code. You can make a copy of your theme before editing the code.

  9. Navigate to components > customer > thank_you > Customer Thank You Content > component.html.

  10. Paste the code after the integration code </script>.

  11. Replace the following with:

    • data-fname=”John” with data-fname={{ order.customer.first_name }}

    • data-lname=”Smith” with data-lname={{ order.customer.last_name }}

    • data-email=”......” with data-email={{ }}

Testing the post-purchase popup widget

To test whether the widget is working:

  1. Make a purchase at your store.

  2. On the Thank You page, a popup should appear. The referral link in the popup should be generated based on the first and last name that you used during checkout (e.g.:

💬 Need help? Click the chat widget on the right to start a conversation. Learn more

Did this answer your question?