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
On the dashboard, go to Campaigns > Select your campaign.
Go to Widgets.
Toggle the Post-Purchase Popup widget on.
Check Allow signup/waitlist for unqualified customers. Learn more
Click Save Changes.
Copy the code snippet.
On your Cratejoy dashboard, go to the Design tab.
Click Code. You can make a copy of your theme before editing the code.
Navigate to components > customer > thank_you > Customer Thank You Content > component.html.
Paste the code after the integration code
</script>
.Replace the following with:
data-fname=”John”
withdata-fname={{ order.customer.first_name }}
data-lname=”Smith”
withdata-lname={{ order.customer.last_name }}
data-email=”......”
withdata-email={{ order.customer.email }}
Testing the post-purchase popup widget
Testing the post-purchase popup widget
To test whether the widget is working:
Make a purchase at your store.
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.:
yourstore
.refr.cc/campaign/u/johnsmith
).
💬 Need help? Click the chat widget on the right to start a conversation. Learn more