identify()lets you identify a person so that they don't have to manually enter their data (eg: email address, name, etc). This is particularly useful, for example, when you want to display the embeddable widgets on an internal page of your website where you already know the user's email (eg: a section of the website only logged in users can access).
identify()function accepts two parameters:
identify()function is called, ReferralHero will check if a subscriber with that specific email address exists. If a subscriber is not found, a new subscriber is automatically created using the data sent over and bypassing the confirmation email. If the subscriber with that email already exist, ReferralHero simply returns the subscriber data.
RHfunctions on page load, you must wait until the library has completely loaded.