Skip to main content

Tracking Snippets

Tracking snippets are small JavaScript tags you install on your website. They record page view activity and associate it with known leads (by email cookie), enriching the lead activity timeline.


What Does a Tracking Snippet Do?โ€‹

  • Records page views on your website and logs them on the matching lead's activity timeline
  • Identifies returning visitors when they have previously submitted a LeadHub form (via a cookie)
  • Helps you understand which pages a lead visited before and after converting

Creating a Tracking Snippetโ€‹

  1. Go to Forms โ†’ Tracking Snippets in the sidebar.
  2. Click New Tracking Snippet.
  3. Configure:
FieldDescription
NameInternal name (e.g. "Main Website")
DomainThe domain this snippet is installed on (e.g. yourwebsite.com)
ActiveEnable or disable tracking
  1. Click Save.

Installing the Snippetโ€‹

After saving:

  1. Click Get Code on the snippet row.
  2. Copy the JavaScript snippet.
  3. Paste it in the <head> section of every page on your website (or use a tag manager like Google Tag Manager).

Viewing Tracking Data on a Leadโ€‹

When a tracked visitor is identified as a known lead, their page views appear in the Activity tab of the lead detail view, with timestamps and page URLs.


Privacy Considerationsโ€‹

  • Tracking only identifies visitors who previously submitted a LeadHub form on that domain.
  • Anonymous visitors are tracked as page views but not linked to any lead record.
  • Ensure your website privacy policy discloses the use of tracking cookies.

Multiple Snippetsโ€‹

You can create one snippet per domain/subdomain. All snippets send data to the same LeadHub workspace. This is useful if you have multiple websites or microsites.