Skip to content

New Stats: Analytics#24702

Merged
kean merged 8 commits intofeature/jetpack-statsfrom
task/stats-analytics
Jul 30, 2025
Merged

New Stats: Analytics#24702
kean merged 8 commits intofeature/jetpack-statsfrom
task/stats-analytics

Conversation

@kean
Copy link
Contributor

@kean kean commented Jul 30, 2025

Add analytics for JetpackStats. The way it works, JetpackStats sends new StatsEvent via new StatsTracker. The app has an adapter that uses WPAnalyticsEvent to map and track these. I considered using StatsEvent as raw string values, but I think this is clearer (and it was all auto-generated anyway so I didn't have to spent time writing it).

I also added a new new_stats field to the existing stats_accessed event:

🔵 Tracked: stats_accessed <blog_id: 239619264, new_stats: 1, site_type: blog, tab_source: site_menu, tap_source: row>

@kean kean added this to the 26.1 milestone Jul 30, 2025
@kean kean added the Stats label Jul 30, 2025
@dangermattic
Copy link
Collaborator

2 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@kean kean merged commit 6a031ab into feature/jetpack-stats Jul 30, 2025
1 of 23 checks passed
@kean kean deleted the task/stats-analytics branch July 30, 2025 21:53
@kean kean mentioned this pull request Jul 30, 2025
@sonarqubecloud
Copy link

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number28332
VersionPR #24702
Bundle IDorg.wordpress.alpha
Commit08796e3
Installation URL0hnpqetnrlkig
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number28332
VersionPR #24702
Bundle IDcom.jetpack.alpha
Commit08796e3
Installation URL3crk5udnkkifo
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants