On this page
Browse all guides
The script is a small file (about 15 KB) that loads in the background. It records visits and form submissions. It doesn't slow your site down or change how it looks. Copy your own snippet from Sites → your site → Install; it contains your site key.
<script async src="https://YOUR-TRACKER-ADDRESS/t.js" data-site="st_xxxxxxxxxx"></script>WordPress
- 1Download the HeyLead plugin.
- 2In WordPress go to Plugins → Add New → Upload Plugin, choose the zip and click Install Now, then Activate.
- 3Open Settings → HeyLead, paste your site key and click Save.
More about HeyLead on WordPress: which forms are captured and common questions.
Webflow
- 1Open Site settings → Custom code.
- 2Paste this into Head code and click Save:
- 3Click Publish. Custom code only goes live after publishing.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>Custom code needs a paid Webflow site plan.
More about HeyLead on Webflow: which forms are captured and common questions.
Wix
- 1In your Wix dashboard open Settings → Custom code → Add custom code.
- 2Paste this code and name it
HeyLead: - 3Choose All pages and Load code once, place it in Head, then click Apply.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>Custom code needs a Wix premium plan with a connected domain.
More about HeyLead on Wix: which forms are captured and common questions.
Shopify
- 1Open Online Store → Themes, click ⋯ → Edit code and open
theme.liquid. - 2Paste this just before
</head>: - 3Click Save.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Shopify: which forms are captured and common questions.
Squarespace
- 1Open Settings → Advanced → Code Injection (on newer versions: Website → Pages → Custom code → Code Injection).
- 2Paste this into the Header box:
- 3Click Save.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>Code Injection isn't available on the Personal plan.
More about HeyLead on Squarespace: which forms are captured and common questions.
Framer
- 1In your Framer project open Site Settings → General.
- 2Scroll to Custom Code and paste this into End of <head> tag:
- 3Click Save, then Publish your site.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Framer: which forms are captured and common questions.
Hostinger Website Builder
- 1In the builder open Website settings → Integrations.
- 2Paste this into the Custom code field, below any code already there:
- 3Click Save, then Update your website so the code goes live.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Hostinger Website Builder: which forms are captured and common questions.
HubSpot CMS
- 1In HubSpot click the settings icon, then in the sidebar go to Content → Pages.
- 2Choose your domain, or Default settings for all domains to cover every HubSpot-hosted page.
- 3Paste this into Site header HTML and click Save:
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>You need the Website settings permission in HubSpot.
More about HeyLead on HubSpot CMS: which forms are captured and common questions.
Duda
- 1In the Duda editor open Site Settings → Head HTML (in older editors: Site Settings → Advanced → Head section).
- 2Paste this code and save:
- 3Click Republish. Head code only goes live after republishing.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Duda: which forms are captured and common questions.
Unbounce
- 1In Unbounce open Settings → Script Manager and click Add a Script.
- 2Choose Custom Script, set Placement to Head and Included on to All, then paste:
- 3Tick the domain your pages use and click Save Changes.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>Script Manager needs your own custom domain. It doesn't work on unbouncepages.com.
More about HeyLead on Unbounce: which forms are captured and common questions.
Leadpages
- 1Open your page in the Leadpages builder and click the Settings tab in the left sidebar.
- 2Select Analytics and paste this into the Head Section Tracking Code field:
- 3Click Update or Publish. Repeat for each page and pop-up.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Leadpages: which forms are captured and common questions.
ClickFunnels
- 1In ClickFunnels click the ⋯ menu at the top right and choose Site Settings.
- 2Scroll to Tracking Codes and paste this into Head Code:
- 3Click Update Site.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on ClickFunnels: which forms are captured and common questions.
GoHighLevel
- 1In the sub-account open Sites → Websites (or Funnels) and open your site.
- 2Go to Settings and paste this into Head tracking code:
- 3Click Save. Repeat for each website or funnel you want to track.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on GoHighLevel: which forms are captured and common questions.
Kajabi
- 1In Kajabi open Settings → Site Details.
- 2Under Page Scripts, paste this into Header Page Scripts:
- 3Click Save.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Kajabi: which forms are captured and common questions.
Next.js
- 1Add the script to your root layout (
app/layout.tsx): - 2Deploy. Forms and route changes are tracked automatically.
import Script from "next/script";
// inside <body>
<Script
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"
strategy="afterInteractive"
/>More about HeyLead on Next.js: which forms are captured and common questions.
React (Vite)
- 1Open
index.html(Vite: project root, Create React App:public/index.html) and paste this inside<head>: - 2Build and deploy. Forms and route changes are tracked automatically.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on React (Vite): which forms are captured and common questions.
Vue & Nuxt
- 1Vue (Vite): paste this inside
<head>inindex.html: - 2Nuxt: add the script to
app.headinnuxt.config.tsinstead: - 3Deploy. Forms and route changes are tracked automatically.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>export default defineNuxtConfig({
app: {
head: {
script: [
{ src: "https://cdn.heylead.io/t.js", async: true, "data-site": "st_xxxxxxxxxx" },
],
},
},
});More about HeyLead on Vue & Nuxt: which forms are captured and common questions.
Angular
- 1Open
src/index.htmland paste this inside<head>: - 2Build and deploy. Forms and route changes are tracked automatically.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Angular: which forms are captured and common questions.
Astro
- 1Open your shared layout (often
src/layouts/Layout.astro) and paste this inside<head>: - 2Build and deploy.
<script is:inline async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Astro: which forms are captured and common questions.
Laravel & PHP
- 1Laravel: open your main layout (often
resources/views/layouts/app.blade.php). Plain PHP: open the header file every page includes. - 2Paste this inside
<head>: - 3Deploy. Every form is captured automatically.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Laravel & PHP: which forms are captured and common questions.
Google Tag Manager
- 1In Google Tag Manager create a new tag of type Custom HTML.
- 2Paste this code:
- 3Set the trigger to All Pages (or Initialization – All Pages), save, then click Submit → Publish.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>More about HeyLead on Google Tag Manager: which forms are captured and common questions.
Any other website
- 1Paste this before
</head>on every page (or once in your shared header template): - 2Publish your site. Every form is captured automatically.
<script async
src="https://cdn.heylead.io/t.js"
data-site="st_xxxxxxxxxx"></script>Next: check it's working.
Did this guide answer your question?
Still need help?
A real person replies within one business day. Include your website address and what you've tried.