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

Matomo Analytics Laravel Package

agencetwogether/matomo-analytics

A Laravel package for integrating Matomo Analytics into your application. Configure your Matomo URL and site ID, then track page views and custom events from Blade templates or PHP using a simple, framework-friendly API.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for analytics plumbing: This package is a thin integration layer between a Laravel application and a Matomo instance. It answers the recurring "do we hand-roll server-side event tracking or adopt an existing adapter?" question — relevant whenever we need conversion, funnel, or feature-adoption data without adding a third-party JS tag to the app.
  • Privacy-first / self-hosted analytics roadmap: Matomo is the usual candidate when legal or procurement constraints rule out sending user data to Google. Adopting this package is effectively a decision to keep analytics data in infrastructure we control, which is a compliance and data-residency decision as much as an engineering one.
  • Server-side event tracking for flows client-side JS cannot see: Background jobs, webhook handlers, API-only endpoints, queued processes, and checkout steps that complete server-side. This supports roadmap items like accurate conversion attribution and internal product metrics for B2B or non-browser clients.
  • De-risking consent and ad-blocker loss: If a meaningful share of our traffic is blocked or consent-gated before load, server-side tracking recovers signal. That directly affects the credibility of dashboards leadership uses for prioritisation — worth modelling before we commit a quarter's roadmap to numbers we can't trust.
  • Feature-flag / experimentation measurement: Only if we confirm the package exposes a generic "track event with dimensions" surface. Instrumentation fidelity determines whether we can measure experiments at all; a package that only auto-tracks page views is a reporting tool, not an experimentation tool.
  • Buy-in on a smaller dependency footprint: A single-purpose adapter is easier to audit and replace than a full analytics SDK. This favours the package over larger marketing suites when the requirement is narrow.

When to Consider This Package

Consider it when all of the following hold:

  • We run Laravel on a supported version and are willing to track the package's compatibility matrix against our PHP version.
  • A Matomo instance already exists or is budgeted for. This package is not a substitute for the Matomo server; without one it delivers nothing.
  • Our tracking needs are event-oriented — page views, events, goals, dimensions — rather than warehouse-grade session stitching or raw event export.
  • We need server-side dispatch, or we want a single Laravel-native config surface instead of maintaining hand-rolled HTTP calls to Matomo's tracking API.
  • The team values low conceptual overhead: a small adapter that wraps one external system beats a bespoke abstraction layer we'd own forever.

Look elsewhere when:

  • Maintenance signal is weak. The available evidence for this release is a bare changelog link from 1.1.0 to 1.1.1 with no described changes. A patch bump implies fixes only, but we have no confirmed information about what changed, no maintainer activity record, no issue-response history, and no security policy. Before adopting, check commit cadence over the last 12 months, open-issue age, whether releases are tagged and signed, and whether previous minors shipped migration notes.
  • We need vendor-backed SLAs. This reads as a small-agency package. Acceptable for internal tooling; a poor fit for anything where tracking is a contractual deliverable.
  • Analytics is a core product capability. If measurement drives revenue or contractual reporting, we should own the client — a direct HTTP client to Matomo's API with our own retry, batching, and schema — rather than depend on a third party's release cadence.
  • We need warehouse/ETL, identity resolution, or cross-device stitching. Matomo plus this adapter won't deliver that; look at a proper CDP or event pipeline.
  • We require first-party consent orchestration. Server-side tracking shifts consent logic to us. The package will not solve that, and using it to bypass consent where consent is legally required is a decision we should not make.

Also weigh data governance: adoption means user identifiers and behavioural data flow to a host we operate. Confirm retention policy, IP anonymisation settings, and whether our DPA and privacy notice cover server-side collection. That is a prerequisite, not a follow-up.

How to Pitch It (Stakeholders)

To executives (one paragraph): We're evaluating a small open-source Laravel add-on that lets our application send analytics events to Matomo, our self-hosted analytics platform, from the server rather than the browser. The upside is better data on journeys that browsers can't reliably report — checkout completion, backend processes, and traffic lost to ad-blockers or consent prompts — while keeping user data on infrastructure we control, which supports our privacy posture. The cost is a low-risk, narrow dependency plus the operational overhead of the Matomo host we already need. I am not recommending adoption yet: the only evidence for the current release is a patch-version bump with no published change description, so I want a maintenance and security review before we commit. Expect a go/no-go with a recommendation within a week.

To engineering leads: This is a thin adapter, not a platform. The decision is whether to own the Matomo tracking-API client ourselves or delegate it to this package. My read is that delegation is the right default if the package exposes the event and dimension surface we need and its recent release history looks healthy — we shouldn't be maintaining HTTP plumbing to a single vendor. Before I sign off I want three things: the actual diff and release notes for 1.1.1 (the published notes contain only a changelog link), confirmation of compatibility with our Laravel and PHP versions, and a view on whether the tracking call belongs on the request path or behind a queue — I'd assume queued by default so analytics can never degrade checkout latency. If any of those come back badly, we fall back to a ~150-line internal client and revisit in two quarters.

Ask: approve a time-boxed spike — one engineer, roughly two days — covering a maintenance-health check, a queued-integration proof of concept behind a feature flag, and a short note on data governance with legal. No production commitment requested at this stage.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console