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

Takt Laravel Laravel Package

vskstudio/takt-laravel

A Laravel integration for Takt that registers the package's services, publishes configuration, and exposes a convenient facade. Bring Takt's functionality into Laravel apps with minimal setup and Laravel-native conventions.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Privacy-first analytics rollout: Supports shipping first-party, server-rendered analytics in a Laravel app without relying on third-party client-side tags. The inherited takt-core-php 0.7 behavior enforces HTTPS endpoints and redacts/masks URLs in template mode, which directly reduces PII exposure and compliance review scope.
  • Build vs. buy / vendor posture: Gives product and engineering a credible “buy/integrate” option for lightweight product analytics when the organization wants event/pageview tracking without a heavy analytics SDK. The package’s route-template and redaction controls make it viable for apps with sensitive paths.
  • Feature and roadmap instrumentation: Enables roadmap decisions from pageview and event data (e.g., adoption of new flows, funnel entry points) while avoiding raw URLs. Useful for teams that need basic instrumentation and can accept a narrow analytics surface.
  • Data governance decisions: The HTTPS-only enforcement means API keys are not sent in clear text; invalid or downgraded endpoints fail fast. This supports security review and local/prod parity decisions, though teams must plan for TLS in local development.
  • Release readiness decision: v0.7.1 is a patch fix for a browser tracker regression: the inline @takt snippet no longer reassigns window.takt, and later events no longer carry an empty URL that ingest rejects with a 400. This reduces silent data loss and broken event tracking, making the upgrade low-risk and worth taking before wider instrumentation rollout.

When to Consider This Package

Consider adoption when:

  • The product is a Laravel/PHP application where server-rendered templates or Blade views are the primary surface, and the team wants a lightweight analytics integration rather than a large client-side SDK.
  • The organization needs privacy-conscious defaults: HTTPS-only endpoints, referrer reduction to origin in template mode, non-http(s) referrers dropped, and unresolved routes masked as /[redacted] or via redact_routes.
  • The team can enforce HTTPS even in local development or is willing to work around the package’s InvalidArgumentException for http://localhost and scheme-less //host endpoints. This is the main adoption constraint to validate before committing.
  • Engineering can manage Composer dependency updates and wants regression coverage: v0.7.1 adds a regression test that fails if the inline bundle reassigns the global again.
  • The analytics need is basic pageview/event tracking with route-aware redaction, not full session replay, raw URL analysis, or advanced product analytics.

Look elsewhere when:

  • Local development must run over plain HTTP without TLS, or the team cannot change endpoint configuration.
  • The product needs raw URL capture, full session replay, deep user-level attribution, or a broad analytics suite.
  • The stack is not Laravel/PHP or the team cannot adopt the @takt directive / Takt service model.
  • The organization requires vendor-hosted analytics with no self-managed endpoint or cannot accept the package’s redaction/masking behavior.

How to Pitch It (Stakeholders)

Executive summary: This Laravel package gives us a privacy-conscious analytics option with minimal integration surface. The v0.7.1 patch fixes a real tracking regression — the browser tracker was losing window.takt, and subsequent events were being sent with an empty URL and rejected with HTTP 400. That means broken or incomplete data in any rollout using 0.7.0. The upgrade is a Composer bump with no configuration change, plus a regression test to prevent recurrence.

Why it matters: The inherited 0.7 behavior strengthens the privacy story: endpoints must be HTTPS, so API keys are never sent in clear; in template mode, referrers are reduced to origin, non-HTTP(S) referrers are dropped, and unresolved routes are masked instead of sent raw. For product, this supports instrumentation of sensitive flows with less compliance overhead.

Engineering guidance: Run composer update vskstudio/takt-core-php to pull 0.7.3. Verify the analytics endpoint is https:// in every environment, including local; http://localhost and //host will throw. No config changes are required beyond that check. Treat the HTTPS requirement as a deliberate security control, not a bug.

Recommendation: Adopt or upgrade to v0.7.1 if we are using this package or evaluating it for privacy-sensitive Laravel instrumentation. Validate HTTPS endpoint configuration first, then proceed with a limited instrumentation rollout and monitor event ingestion for 400s.

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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk