Skip to main content
All CollectionsStore IntegrationsEmail, JavaScript and API Integrations
Email integration and API integration: Adding the referral tracking code
Email integration and API integration: Adding the referral tracking code

How to add the referral tracking code to the purchase completed page

Adam avatar
Written by Adam
Updated this week

If you choose to connect your store using email integration or API integration, adding the referral tracking code is one of the two necessary steps.

Note: If your eCommerce platform doesn't allow adding a JavaScript tag to your store pages, insert an image tag instead.

The referral tracking code helps ReferralCandy detect successful referrals from your store. It should be added to the page that customers are taken to after they complete payment for their order. This is sometimes called the "Thank you" page.


Insert the referral tracking code

  1. On the ReferralCandy dashboard go to Integrations > Standalone.

  2. In the Add ReferralCandy to your online store section, Copy the code snippet.

  3. Go to your store's admin panel and paste the code into your theme's "Thank you" or purchase completed page, before the closing </body> tag.

  4. Save and publish your theme or page.

To ensure that the email integration or API integration works, make a test purchase and go back to the Integrations page to verify that someone recently viewed the purchase completed page.


πŸ’¬ Need help? Click the chat widget on the right to start a conversation. Learn more


Did this answer your question?