1. Install the RevenueHero SDK.
npm install @revenuehero/sdk-react
  1. Import it in your code
import { RevenueHero } from '@revenuehero/sdk-react'
  1. 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" />
  1. You’re all set!

If you’re using NextJS, click on this link to add the scheduler snippet.