-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blueprints: Collect usage statistics #1022
Comments
Would
Is the flat data structure a technical requirement? Or is it possible to log a deeply nested data structure? Perhaps we could send over a subset of a Blueprint extracted based on a schema? We're already building the TypeScript types to a JSON schema, it wouldn't be that difficult to add a |
We should also add a flag to blueprints that will allow users to opt-out of sending these events. |
It would be the third installed plugin. The numbers would be based on the order of keys added and wouldn't have any additional meaning.
From what I could find in the GA docs it's flat. Now after reading more, it seems like we need to register parameters, so even the naming with numbers wouldn't work. Alternatively, we can send one event for load with phpVersion, wpVersion, networking, login, and phpExtensionBundles.
Let's do that. |
Such a flag would make sense on the web, but not in Node.js or VS Code or in WordPress core. This sounds like a good query API candidate, e.g. |
Makes sense, we can add it to the query API. The implementation I had in mind would run only in the browser, so there is no need to add it to blueprints. |
Implemented in #1040 |
We would like to understand better how blueprints are used by the community to answer questions like how much certain steps are used what PHP and WP versions users use and similar.
To get some statistics we need to start collecting anonymous data about blueprints.
Playground has a Google Analytics (GA) integration, so we could send custom events to GA and create reports there.
I suggest that we send one event to GA on page load with a structure like this:
In places where we can have multiple values for a key, I suggest we add a number at the end (plugins1, plugins2).
This way we can still filter all keys that start with plugins in GA to get the values.
@adamziel what do you think about this data structure?
My main concern is that we would need to keep this event up to date as we add new blueprint features, but this way we ensure no sensitive data is sent.
The text was updated successfully, but these errors were encountered: