JavaScript Referral Program Integration
Embed Referral Rock on any website using the JavaScript SDK for custom referral tracking, sharing widgets, and member portal experiences.
About Our JavaScript Referral Integration

JavaScript
Embed Referral Rock on any website using the JavaScript SDK for custom referral tracking, sharing widgets, and member portal experiences.
Referral Rock provides a robust JavaScript Library to directly integrate your referral program with your online assets and workflows.
How the JavaScript Integration Works
Embed the JS library
Add the Referral Rock JavaScript library to your site or app with a single script tag. A few lines of code is all it takes to get started.
Capture referral events on your page
Fire tracking events on any conversion: page load, form submit, checkout, or custom triggers. Referral Rock attributes each event to the right referrer.
Embed the member portal in-app
Render the Referral Rock member portal or share widget directly inside your own platform for a fully on-brand, seamless sharing experience.
Reward based on on-page events
Rewards issue automatically when a tracked conversion event fires, no backend changes required for standard reward flows.
Embed the referral experience directly into your own site or app
Control the brand experience for all your referral program participants. Add Referral Rock links and direct sharing features into your own platform.
Add new referrals to your program
Create referrals based on on-page conversion events, values in the page's URL string, and even pages where you can't insert JavaScript.
Trigger rewards based on changes
Fully automate your referral program from start to finish, without interrupting your CRM users or sales team. Referral Rock will issue rewards based on on-page referral update events placed on confirmation pages.
Track site visits
Measure the amount of traffic members are generating so you can analyze conversion rates and better optimize your program.
JavaScript Referral Integration — FAQ
“Their integrations, their obsession to be on the leading edge of their niche, the overall customizability... All in all, I saved thousands by not needing to build an app or sign up for a long-term contract.”
Need help setting up?
Every Referral Rock plan includes dedicated onboarding support. Our team will help you configure the JavaScript integration and make sure everything is working perfectly. View the setup guide →
Connect Your Favorite Tools
25+ integrations to easily connect your tools and teams.
Ready to Connect JavaScript?
Start your free trial and set up the integration in minutes. No credit card required.











