Before you begin integration:
Check that dynamic checkout variables are available on your eCommerce store's platform.
For the list of supported platforms and instructions on how to integrate, please refer to our Setup page. Not sure if ReferralCandy will work on your platform? Check out the following links:
On your ReferralCandy dashboard, go to Integrations and click Standalone.
Copy the code snippet provided in the next step.
Go to your store's dashboard and paste the code snippet before the closing </body> tag on your purchase completed page.
Edit the code by replacing the dummy fields with the dynamic checkout variables from your store platform:
data-fname: Customer First Name
data-lname: Customer Last Name
data-email: Customer Email Address
data-amount: Invoice Amount
data-currency: Invoice Currency (3 letter code)
data-timestamp: Purchase Timestamp (UNIX time)
data-external-reference-id: Invoice Number
data-signature: Calculated from the MD5 digest of a string containing the email address, first name, invoice amount, order timestamp, and secret key (in that order) separated by commas. Please double check that this is done properly otherwise it will result in a checksum error.
Note: The MD5 signature is calculated based on the following items: MD5(EMAIL,FIRST_NAME, INVOICE_AMOUNT,TIMESTAMP,ACCOUNT_SECRET)
Save the changes.
The App ID and Secret Key are in the "Plugin tokens" section of your My Profile page.
How do I know that the integration is working?
You pasted your tracking code on your site and want to know if your integration is working. Here's how you can test your integration:
First, make a test purchase at your store and look for these signs:
Does the purchase show up on your Purchases & Referrals page?
If there is no purchase on the page, it means that we couldn't detect purchases and referrals on your site. Looking at Checksum Errors might help you to troubleshoot.
Are there checksum errors?
Go to your Integrations page and view the Debug Checksum Errors section. If you don't see any transaction, it means either the purchases are being tracked correctly, or you have not sent any purchases to us.
💬 Need help? Click the chat widget on the right to start a conversation. Learn more