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

  1. Go to Websites in your dashboard
  2. Click on the website you want to track
  3. Find the Tracking Code section
  4. 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:

  1. Visit your website in a browser
  2. You should see the consent banner appear
  3. 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

Related guides

All knowledge base articles | LeadLocator home | Get started