userEmailis 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:
ready()callback to make sure the ReferralHero object has already been loaded, like this:
trackReferral()function, like this: