by: Muiz Thomas | Founder of GrowUp
How to Use This Checklist
This document contains three scripts for tracking SEO attribution in HubSpot. You'll need all three to make the system work:
Script 1: Site-Wide Tracking Script (Install on All Pages)
- Where to install: Add to the
<head> section of your website (all pages) OR via Google Tag Manager
- What it does: Captures first-touch data when someone lands on your site and stores it in their browser
- Customisation required: ✅ Yes - Update the Intent Layer & Topic Pillar logic to match YOUR content themes
Script 2: HubSpot Embedded Forms Script (Form Pages Only)
- Where to install: On pages with HubSpot embedded forms, after the HubSpot tracking code
- What it does: Reads stored data and populates hidden form fields
- When to use: If you’re using HubSpot's form builder (drag-and-drop forms)
- Customisation required: ❌ No - Works as-is if property names match
Script 3: Custom Forms (API Submission) Code Snippet
- Where to add: Inside your existing form submission JavaScript code
- What it does: Adds attribution data to your API payload
- When to use: If you're using custom HTML forms that submit via JavaScript fetch/POST to HubSpot’s API
- Customisation required: ❌ No, Just add to your existing fields array
Need help deciding which form script to use? If you built your forms in HubSpot’s form builder → use Script 2. If you coded custom forms yourself → use Script 3