userEmail
is the email address of the person who has converted and it's required.trackReferral()
when the conversion happens. For example, if you want to trigger a referral when they upgrade to a paid plan, then this is how you could do it:trackReferral()
inside the ready()
callback to make sure the ReferralHero object has already been loaded, like this:52
trackReferral()
function, like this: