Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Utm Cookie Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: Despite being framed as a Laravel/PHP package, 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.
  • Integration feasibility: Low for Laravel as a direct dependency. There is no evidence of a Laravel service provider, publishable config, facade, or Laravel HTTP/cookie integration. A Laravel team would either need an adapter or, more realistically, reimplement the behavior in 0.5–2 engineering days for a basic, tested version. Symfony integration may be feasible, but with zero stars and zero dependents it is unproven in production.
  • Technical risk: High relative to the business value. The package has no visible ecosystem validation, no dependents, and a release date of 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.
  • Key questions: Is the repository actually a Symfony bundle rather than a Laravel package? Which PHP and Symfony versions are supported? Is there CI, test coverage, and a security policy? How does it handle cookie consent and GDPR/CCPA requirements? Does it implement first-touch, last-touch, or overwrite-on-every-URL behavior? How are cookie domain, 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.

Integration Approach

  • Stack fit: For Laravel, direct fit is poor. Build a Laravel middleware that runs on web routes, reads known UTM query keys, and queues a cookie only when parameters exist. Add a small UTM service/helper to read and normalize values. For Symfony shops, a timeboxed spike may be reasonable, but only behind a feature flag and after vendor review. For mixed or uncertain stacks, use the package as a behavioral reference.
  • Migration path: Do not install the Symfony bundle into Laravel and attempt to force compatibility. Inventory current UTM/attribution requirements, define a cookie schema (for example: 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.
  • Compatibility: Verify PHP version support, framework version support, PSR compliance, and cookie API behavior before any adoption. In Laravel, account for 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.
  • Sequencing: First confirm attribution and consent requirements. Second, perform a short code/metadata review or spike to decide build vs. adopt. Third, implement Laravel-native capture and retrieval with unit and feature tests. Fourth, integrate with analytics/CRM consumers and add a feature flag. Fifth, roll out to a small traffic slice and monitor cookie presence, size, and error rates. If pursuing Symfony, sequence a vendor audit, compatibility spike, internal wrapper, and limited pilot before production.

Operational Impact

  • Maintenance: A zero-star, zero-dependent package creates maintenance concentration risk. If adopted, the team owns version pinning, security review, fork readiness, and upgrade testing. For Laravel, an in-house middleware is smaller and easier to maintain than an adapter around a Symfony bundle. MIT licensing permits a fork, but forking still requires ownership.
  • Support: There is no commercial support path and little community support signal. Internal documentation, a runbook for cookie/consent issues, and clear ownership are required. If the Symfony bundle is used, support effectively depends on repository issue responsiveness and internal Symfony expertise.
  • Scaling: UTM cookie capture is lightweight and client-side; server scaling impact is minimal if middleware is kept small and does not perform network or database calls per request. The practical limits are cookie size, request header overhead, and analytics pipeline volume. Ensure the cookie stays well under browser limits and does not accumulate unbounded UTM history.
  • Failure modes: Cookies may not be set because of consent blockers, domain/subdomain mismatch, 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.
  • Ramp-up: The UTM concept is easy for most web engineers to learn; a Laravel-native implementation is low-to-medium ramp-up and suitable for a normal sprint. Adopting the Symfony bundle in a Laravel context raises ramp-up because engineers must understand both Symfony bundle conventions and Laravel integration workarounds. A TPM should budget a short spike or reimplementation rather than assume drop-in adoption.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core