If you're a merchant using Cratejoy, you can embed the post-purchase popup widget in your theme to encourage customers to join your referral or affiliate program on the "Thank You" page at checkout.
Embed the post-purchase popup widget
Step 1: Copy the code snippet
On the ReferralCandy 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.
Step 2: Add the code to your theme
On your Cratejoy dashboard, go to the Design tab and click 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 }}
Step 3: Test the post-purchase popup
To ensure that the popup widget is working in Cratejoy:
Make a test purchase at your store.
The popup widget should appear on the "Thank You" page.
The referral link in the popup should be generated based on the first and last name used during checkout. For example,
yourstore
.refr.cc/campaign/u/johnsmith
.
💬 Need help? Click the chat widget on the right to start a conversation. Learn more