tattali/utm-cookie-bundle
tattali/utm-cookie-bundle captures UTM parameters from incoming URLs and stores them in cookies, so your app can attribute visits, signups, or conversions to the right campaign long after the first click. Simple setup and configurable cookie lifetime for PHP apps.
tattali/utm-cookie-bundle is named and structured as a Symfony bundle. It is designed around Symfony’s bundle/DI/config/event model, not Laravel’s service-provider, middleware, facade, and cookie abstractions. For a Laravel application, architecture fit is low. The underlying capability—capturing UTM query parameters into a cookie and exposing retrieval helpers—is simple and better implemented as Laravel-native middleware plus a small service.2026-10-18 that appears anomalous relative to normal release metadata. MIT licensing reduces legal friction but does not offset maintenance, security-review, and compatibility risk. UTM capture also carries compliance and attribution-policy risk: consent handling, cookie flags, domain scope, first-touch vs. last-touch semantics, and PII leakage if UTM values are untrusted.Secure, SameSite, and expiry configured? Can UTM values be retrieved server-side reliably in Laravel? Is the maintainer active, and what is the bus factor?TPM recommendation: Treat this package as a reference implementation or specification, not a production dependency for a Laravel stack. Leverage the concept—middleware that captures UTM parameters into a scoped cookie and a service that retrieves them—while owning the small amount of code required.
utm_source, utm_medium, utm_campaign, utm_term, utm_content, capture timestamp, landing page), then implement native Laravel middleware and retrieval service. If the organization already uses Symfony, pilot the bundle in a branch, pin the version, and wrap retrieval behind an internal interface so it can be replaced.EncryptCookies, middleware order, config caching, queue/response cookie attachment, and route groups. Confirm that the package’s cookie names and retrieval API can coexist with existing analytics, consent-management, and session cookies.SameSite/Secure configuration, or middleware ordering. Later campaigns may overwrite earlier attribution unexpectedly. Malformed or oversized UTM values can create cookie bloat or downstream analytics errors. Encrypted-cookie mismatches in Laravel, bot/prerender traffic, and silent retrieval failures are also likely. UTM values containing email addresses or other PII create compliance exposure.How can I help you explore Laravel packages today?