feat: Add anonymous usage tracking#15
Merged
Merged
Conversation
Tracks installer/updater usage to help understand adoption and diagnose issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| /** | ||
| * @param array<string, string|int|float|bool> $tags | ||
| */ | ||
| public function track(string $eventName, string $userId, array $tags = []): void |
There was a problem hiding this comment.
maybe enum for the event names?
Michael Telgmann (mitelg)
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds anonymous usage tracking via UDP (same approach as deployment-helper) to understand how the web installer is used.
Tracked events
All events are sent as UDP JSON payloads to
udp.usage.shopware.io:9000with a random per-session user ID.web_installer.visitsource(adminordirect),language,php_version,osweb_installer.install.startedshopware_versionweb_installer.install.completedshopware_versionweb_installer.install.failedshopware_versionweb_installer.update.startedshopware_version_from,shopware_version_to,is_flex_projectweb_installer.update.completedshopware_version_from,shopware_version_toweb_installer.update.failedshopware_version_from,shopware_version_toReferer normalization
On the initial visit, the HTTP
Refererheader is normalized:/admin→ source isadmin(triggered from Shopware admin)direct(user accessed the installer directly)Opt-out
Tracking is disabled when the
DO_NOT_TRACKenvironment variable is set. The tracking endpoint can be overridden viaSHOPWARE_TRACKING_DOMAIN.Changes
Services/TrackingService.php— Lightweight UDP tracking service (fire-and-forget, non-blocking)Listener/TrackingListener.php— Request listener that generates a session-scoped tracking ID and fires thevisitevent onceController/InstallController.php— Tracks install started/completed/failedController/UpdateController.php— Tracks update started/completed/failedTrackingServicedependencyTest plan
🤖 Generated with Claude Code