Yes, HeyLead works with React apps built with Vite or Create React App. Paste one line into the head of index.html and every form in your app is tracked with its source. React Router navigation is recorded as page views automatically, with no npm package or extra code.
Setup
Updated
Open index.html (Vite: project root, Create React App: public/index.html) and paste this inside <head>:
<script async
src="https://cdn.heylead.io/t.js"
data-site="YOUR_SITE_KEY"></script>Build and deploy. Forms and route changes are tracked automatically.
Done. New leads arrive with their source in your dashboard.
Watch the setup
This walkthrough connects a WordPress site. On React (Vite), only the connect step is different; the steps above show exactly what to do.
How HeyLead worksA common setup: React (Vite) → Webhooks → HubSpot.
How teams like yours use HeyLead with React (Vite).
Yes. HeyLead listens for history changes, so every route visited appears in the lead's journey.
No package is needed. The script tag keeps your bundle unchanged and updates itself.
No. The HeyLead script is about 15 KB, loads in the background and never holds up your pages or forms.
Get started
Connect your website in minutes. From then on, every new lead shows which ad, search, post or AI assistant brought it.