In this article
What Is the External Tracking Script? Important Behavior Notes Why You Need It What It Does Before You Start Step 1: Get Your Tracking Script Step 2: Install the Script Step 3: Ensure Your Form Is CompatiblePurpose of This Guide
This guide explains how to install and use the External Tracking Script to record page views and track Luubu and standard HTML form submissions on external websites like WordPress, Shopify, Wix, Webflow, or custom HTML.
Use this setup if you:
Embed a Luubu form on an external website
Use a standard HTML form (not iframe-based)
Want page views and submissions tracked for attribution
Want to trigger workflows when those events occur
⚠️ Iframe-based or widget-based third-party forms are still not supported.
Forms must exist directly in the DOM and use valid HTML elements.
What Is the External Tracking Script?
The tracking script is a small piece of JavaScript unique to your account.
When placed on your external site, it:
Records page views
Tracks compatible form submissions
Captures mapped custom field values
Stores anonymous activity until the visitor becomes known
Sends tracked events to your CRM for reporting and workflow automation
It acts as the bridge that lets you see activity from sites not hosted inside the platform.
Important Behavior Notes
⚠️ No contact or activity log will appear until a form submission occurs.
Here’s how it works:
Page views are tracked anonymously
Anonymous activity is stored in the browser
Once a form is submitted:
A contact is created or updated
All prior activity is linked to that contact
This script doesnot:
Create contacts from iframe-based or widget-based forms
Track interactions like clicks or scrolls
Track session analytics or cross-domain behavior
Capture hidden or disabled form fields (unless explicitly configured)
Why You Need It
Without the tracking script, we cannot:
Record page views on external websites
Attribute leads or conversions to campaigns
Trigger workflows based on external activity
With the tracking script installed:
You can track our forms on external websites
You can measure page performance in the Attribution Report
You can trigger automations for visitors who submit a form
What It Does
Tracks:
Page views
Form submissions
Workflow triggers (based on above events)
Doesn’t track:
Scrolls, clicks, or time-on-page
Session-level analytics
Cross-domain behavior
Before You Start
The site domain must be connected to your account
The form must:
Be a Luubu embed, or
Be a standard HTML with valid input fields
Forms inside iframes, popups, or JS widgets will not be tracked
Step 1: Get Your Tracking Script
In your account:
Go to Settings → External Tracking
Click Copy Script
Your snippet will look like this:
Do not modify your data-tracking-id. It’s unique to your account.
Step 2: Install the Script
Paste the script before the closing </bodytag on your website.
Option A: Add Directly (Recommended)
Example:
Works for:
Custom HTML sites
WordPress
Wix / Squarespace / Webflow
Option B: Install via Google Tag Manager (GTM)
⚠️ Known Issue: GTM may remove the data-tracking-id attribute, breaking initialization.
If you see console errors like
LC Tracking: Missing data-tracking-id attribute,
your GTM setup is stripping the ID.
Temporary Fix / Workaround:
Create a Custom HTML Tag in GTM.
Paste your full tracking code (do not modify it).
Set trigger to All Pages.
Preview the page, open DevTools → Elements tab.
Verify the data-tracking-id attribute is still present in the script tag.
If it’s missing → install the code manually in your site footer.
Step 3: Ensure Your Form Is Compatible
The tracking script supports:
Luubu embedded forms
Standard HTML forms rendered directly in the DOM
Form Requirements
For submissions and field