Installing the Tracking Code
Getting Started · Beginner · 10 min read
Step-by-step instructions for adding the tracking script to your website
Installing the Tracking Code
Difficulty: Beginner | Time: 10 min
Step 1: Get Your Tracking Code
- Go to Websites in your dashboard
- Click on the website you want to track
- Find the Tracking Code section
- Click Copy Code to copy the script
Step 2: Add to Your Website
Paste the tracking code just before the closing </body> tag on every page you want to track.
<script src="https://leadlocator.app/tracking.js"
data-tracking-id="your-tracking-id">
</script>
Step 3: Verify Installation After adding the code:
- Visit your website in a browser
- You should see the consent banner appear
- Check your LeadLocator dashboard for incoming data
Platform-Specific Instructions
- WordPress — Add the code to your theme's footer.php file or use a plugin like "Insert Headers and Footers"
- Shopify — Go to Online Store > Themes > Edit Code > theme.liquid and add before
</body> - Squarespace — Go to Settings > Advanced > Code Injection > Footer
- Wix — Use the Tracking & Analytics section in your site settings
Troubleshooting
- No consent banner? Check that the tracking ID is correct
- Not seeing leads? Ensure visitors are accepting the consent prompt
- Script errors? Verify the script URL is accessible