Our tracking script lets you capture form submissions from external websites (WordPress, Wix, Squarespace, Shopify, custom sites) and sync them into your CRM. It also records page views on any page where the script is installed.
This guide is written for all users. If you’re comfortable with code, you’ll find technical requirements and diagnostics. If not, you can follow the basic steps without editing code.
Quick Start (for beginners)
-
Copy your tracking script from Settings → External Tracking in your account.
-
Paste it into your website’s footer, just before the closing
</body>
tag. -
Make sure your form:
-
Uses a
<form>
tag -
Has an email input:
<input type="email" name="email">
-
Has a submit button:
<button type="submit">
-
Is not inside an
<iframe>
-
-
Test your form. Submissions will appear in Forms → Submissions in your app.
Step 1: Get Your Tracking Script
In your account:
-
Go to Settings → External Tracking
-
Click Copy Script
Your script looks like this:
<script
src="https://link.yourdomain.com/js/external-tracking.js"
data-tracking-id="tk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
</script>
The data-tracking-id
is unique to your account. Do not edit it.
Step 2: Add the Script to Your Website
Paste the script into the footer, just before the closing </body>
tag.
Examples
Custom HTML Site
...
<!-- Paste tracking script here -->
<script
src="https://link.yourdomain.com/js/external-tracking.js"
data-tracking-id="tk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
</script>
</body>
</html>
WordPress
-
Go to Appearance → Theme Settings → Footer (if available), or
-
Install a plugin like Insert Headers and Footers and paste into the Footer Scripts box
Wix / Squarespace / Webflow
Go to Site Settings → Custom Code → Footer Code Injection and paste the script.
Step 3: Make Sure Your Form is Compatible
Your form must:
-
Use a
<form>
tag -
Include an email input field:
-
Include a submit button:
-
Not be inside an
<iframe>
-
Not block submission with custom JavaScript (unless it re-triggers a standard submit)
Example Minimal Form
<form action="#" method="post">
<input type="email" name="email" placeholder="email@example.com" required />
<button type="submit">Submit</button>
</form>
Step 4: View Submissions
Once the script is installed and your form is compatible:
-
Go to Sites → Forms → Submissions
-
Use the filter External: “Form Name”
-
Review and export submissions as needed
Advanced Troubleshooting & Diagnostics
If submissions are not showing or tracking isn’t working, use these checks.
1. Enable Debug Mode
Add data-debug="true"
to your script:
<script
src="https://link.yourdomain.com/js/external-tracking.js"
data-tracking-id="tk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
data-debug="true">
</script>
Reload your page, open the console (Cmd/Ctrl + Option/Alt + J
), and look for [LC Tracking]
logs such as:
-
Tracker initialized successfully
-
SessionId stored in cookie
-
Event sent successfully: external_script_page_view
If logs do not appear:
-
Confirm the script is on the page
-
Verify the
data-tracking-id
value -
Check for ad blockers or CSP errors
2. Network & API Checks
In the browser Network tab, check:
-
Page view requests succeed with
2xx
status -
No CORS errors
-
Response shows success acknowledgement
3. Cookies & Session
The script sets a cookie with a session ID.
-
Look in Application → Storage → Cookies
-
Confirm a session cookie is created
-
If missing, check browser privacy settings or third-party iframe restrictions
4. Common Issues
-
No console logs → Add
data-debug="true"
, confirm script placement -
CORS errors → Verify endpoint and server CORS config
-
Form not tracked → Ensure it uses
<form>
, hasemail
input, and a submit button -
Tracking ID errors → Confirm
data-tracking-id
matches your account -
Single Page Apps → Initial load is tracked, but route changes may require manual hooks
5. Quick Diagnostic Checklist
-
Script tag has a valid
data-tracking-id
-
Debug mode enabled for testing
-
Console shows
[LC Tracking]
logs -
Network requests succeed (2xx)
-
Session cookie is present
-
Forms meet structure requirements
6. Example Setup With Extra Fields
<form name="abc">
<label for="first_name">First Name</label>
<input type="text" name="first_name" id="first_name" />
<label for="last_name">Last Name</label>
<input type="text" name="last_name" id="last_name" />
<label for="email">Email</label>
<input type="email" name="email" id="email" />
<label for="phone">Phone</label>
<input type="tel" name="phone" id="phone" />
<label for="company_name">Company Name</label>
<input type="text" name="company_name" id="company_name" />
<input type="submit" value="Submit">
</form>