Yes, HeyLead works with Laravel and plain PHP sites. Paste one line into the head of your shared Blade layout or header include, and every form on your site is tracked with the channel, campaign and page that brought the lead. Your controllers and validation don't change.
Setup
Updated
Laravel: open your main layout (often resources/views/layouts/app.blade.php). Plain PHP: open the header file every page includes.
Paste this inside <head>:
<script async
src="https://cdn.heylead.io/t.js"
data-site="YOUR_SITE_KEY"></script>Deploy. Every form is captured automatically.
Done. New leads arrive with their source in your dashboard.
Watch the setup
This walkthrough connects a WordPress site. On Laravel & PHP, only the connect step is different; the steps above show exactly what to do.
How HeyLead worksA common setup: Laravel & PHP → Webhooks → Salesforce.
How teams like yours use HeyLead with Laravel & PHP.
Yes. HeyLead captures form submissions in the browser, whether the page posts normally or sends the form with JavaScript.
No. One line in your layout is all it takes.
Yes. Put the key in .env and print it in the layout, for example data-site="{{ config('services.heylead.key') }}".
Get started
Connect your website in minutes. From then on, every new lead shows which ad, search, post or AI assistant brought it.