spatie/laravel-referer
Store a visitor’s original referrer in the Laravel session. Detects from utm_source first, then the external domain from the Referer header, otherwise empty. Configurable session key and referrer sources via published config.
utm_source with user behavior (e.g., conversion rates, drop-off points).For Executives: *"This package lets us reliably track where users come from—whether from a marketing campaign (via UTM tags) or an external link—without building custom infrastructure. It’s a lightweight, open-source solution that plugs into Laravel’s session system, enabling us to:
For Engineering:
*"Spatie’s laravel-referer gives us a drop-in way to persist the original referrer (UTM or Referer header) in the user’s session. Key benefits:
session()->get('referer') anywhere.How can I help you explore Laravel packages today?