How to install the scheduler script?
How to set up the booking widget on a page built with React?
- Install the RevenueHero SDK.
npm install @revenuehero/sdk-react
- Import it in your code
import { RevenueHero } from '@revenuehero/sdk-react'
- Use the following script as a react component on the page:
Hubspot Form
{isHubspotFormLoaded && <RevenueHero enabled routerId="xxx" formId="hsForm_xxx" />}
Pardot Form
<RevenueHero enabled routerId="xxx" formType='pardot' formId="#pardot-form" />
- You’re all set!
If you’re using NextJS, click on this link to add the scheduler snippet.