Weave Code
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

Mousetracker Laravel Package

benmacha/mousetracker

Self-hosted mouse/click/scroll tracker for Symfony 5.4–7.x. Records mouse moves, clicks, scroll, keyboard, form-blur values, and DOM snapshots, storing sessions in your own DB for Mouseflow-style heatmaps and replay. No jQuery.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Enables user behavior analytics (heatmaps, session replays, click tracking) for UX optimization, A/B testing, and conversion funnel analysis without relying on third-party tools (e.g., Hotjar, Mouseflow).
  • Privacy-Compliant Analytics: Supports GDPR/CCPA compliance by allowing self-hosted data storage and explicit consent management (via ignore_ips and firewall gating).
  • Roadmap Priorities:
    • Build vs. Buy: Justifies in-house development of analytics tools over SaaS alternatives for teams prioritizing data ownership, customization, or cost control.
    • Use Cases:
      • E-commerce: Track product page interactions (hover, clicks, scroll depth) to optimize layouts.
      • SaaS: Monitor feature adoption via session replays to identify UX pain points.
      • Marketing: Validate landing page effectiveness with heatmaps and click paths.
  • Technical Debt Reduction: Replaces legacy jQuery-dependent trackers with modern vanilla JS, reducing maintenance overhead.
  • Security: Mitigates risks of third-party trackers by self-hosting sensitive data (e.g., form inputs, DOM snapshots) behind role-based access controls.

When to Consider This Package

  • Adopt If:
    • Your team uses Symfony 5.4+ and needs self-hosted session replay/heatmaps without vendor lock-in.
    • Privacy regulations (GDPR, CCPA) require data residency or explicit consent flows.
    • You lack budget for SaaS tools (e.g., Hotjar) or need custom analytics integrations (e.g., tying events to CRM systems).
    • Your app has high-stakes pages (e.g., checkout, forms) where understanding micro-interactions is critical.
  • Look Elsewhere If:
    • You’re not using Symfony (package is framework-specific).
    • You need real-time analytics (this is batch-processed; consider WebSocket-based tools).
    • Your team lacks PHP/Symfony expertise to configure security/firewalls or debug client-side JS.
    • You require enterprise support (this is MIT-licensed with no vendor backing).
    • Your use case involves mobile-first tracking (mobile support is opt-in via disable_mobile).

How to Pitch It (Stakeholders)

For Executives: "This package lets us own our user behavior data—like a self-hosted Hotjar—while complying with GDPR. For ~$0 (vs. $X/month for SaaS), we get heatmaps, session replays, and click tracking to reduce bounce rates and boost conversions. No third-party scripts means lower privacy risk and full control over data retention. Pilot on [high-value page] to validate ROI before scaling."

For Engineering: *"A Symfony-native mouse/click tracker with:

  • No jQuery (modern vanilla JS, ~440 LOC).
  • Doctrine ORM integration (stores data in our DB).
  • Configurable sampling (e.g., track 10% of users to cut storage costs).
  • Security-first: Backend routes are public by default but must be gated (we’ll add ROLE_ADMIN checks).
  • Low maintenance: Actively developed (last release May 2026), with PHPStan/unit tests. Tradeoff: Basic UI (no dashboards)—we’d need to extend the /tracker/back/ endpoint or integrate with existing tools like Grafana."*

For Design/UX: *"This gives us real user data to:

  • Validate designs (e.g., ‘Users ignore this CTA—why?’).
  • Optimize funnels (e.g., ‘Scroll depth drops at step 3’).
  • A/B test layouts without guessing. Example: If our checkout abandonment is 40%, we can replay sessions to see where users drop off."*
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity