Skip to content
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

Track stats on installed patterns #24

Open
iandunn opened this issue Nov 23, 2020 · 9 comments
Open

Track stats on installed patterns #24

iandunn opened this issue Nov 23, 2020 · 9 comments
Labels
[Component] Core/Gutenberg Changes that should happen in the core editor (tracking issues only) [Component] Pattern Directory API The pattern API on WordPress.org, and/or the CPT endpoint [Type] Enhancement New feature or request
Milestone

Comments

@iandunn
Copy link
Member

iandunn commented Nov 23, 2020

Similar to the plugin directory, it'd be useful for the pattern directory to track stats on which patterns are installed.

That could help the w.org front-end directly display popular patterns, etc.

This could be done by sending a list of installed pattern IDs to api.w.org when Core checks for updates, which is how it's done for plugins.

It's not clear yet how patterns will be "installed", since inserting a pattern into a post could detach it from the canonical version on w.org. The designs might include a way of "favoriting" a w.org pattern, or similar.

@iandunn iandunn added [Type] Enhancement New feature or request [Component] Pattern Directory API The pattern API on WordPress.org, and/or the CPT endpoint [Component] Core/Gutenberg Changes that should happen in the core editor (tracking issues only) labels Nov 23, 2020
@ryelle ryelle added this to the Initial Launch milestone Mar 30, 2021
@ryelle ryelle modified the milestones: Initial Launch, Later Jul 12, 2021
@ryelle
Copy link
Contributor

ryelle commented Jul 12, 2021

We can't really track installs, since patterns are more ephemeral - you don't really install them. We could track:

  • Number of favorites
  • Number of times (and reasons) reported
  • Number of times copied(? - I know how to do this in calypso, but not on wporg)

I'm taking this out of the "initial launch" milestone - while important, it wouldn't add or detract from the stability of the directory.

@iandunn
Copy link
Member Author

iandunn commented Jul 14, 2021

Those sound good 👍🏻

Number of favorites
Number of times (and reasons) reported

I'm guessing we've already got that data, by nature of it. Eventually we might want to build a public report like we have for WordCamp data, but the first step would just be collecting the important stuff early.

Number of times copied

This seems like a pretty important one, to show usage. I'd guess most of the installs would be done in Core, which we don't track, but the installs on w.org may be highly correlated?

if we save installs per-pattern, we could compare usage across locales.

It might be nice to have a snapshot of # of installs per month, so we can see usage trends over time?

@iandunn
Copy link
Member Author

iandunn commented Jul 14, 2021

Once Gutenberg starts allowing searches of remote patterns, then tracking the most popular terms seems helpful. we could use that to identify gaps where patterns that people want don't exist yet.

cc @shaunandrews , @andreamiddleton, @mtias in case y'all have any other ideas for stats that'd be useful to track

@mtias
Copy link
Member

mtias commented Jul 14, 2021

Favorites is likely going to be the best metric to rely on. Once we have a flow that doesn't involve copy / paste that would also be a good way to get a sense of installs.

@iandunn
Copy link
Member Author

iandunn commented Jul 14, 2021

Once we have a flow that doesn't involve copy / paste

Is that because copying doesn't guarantee that they'll paste & publish? I'd guess that it'd still be highly correlated.

@StevenDufresne
Copy link
Collaborator

Is that because copying doesn't guarantee that they'll paste & publish? I'd guess that it'd still be highly correlated.

I think the challenge will be that people may browse on .org but install through Gutenberg.

.... Maybe we should add a copy button next to the title, like how GitHub does for branch names 🤔 .

@mtias
Copy link
Member

mtias commented Jul 15, 2021

Is that because copying doesn't guarantee that they'll paste & publish? I'd guess that it'd still be highly correlated.

Yes, you might click copy even if you don't have a WordPress install just out of curiosity. It feels like a very indirect measure.

@ryelle
Copy link
Contributor

ryelle commented Jul 15, 2021

Does that mean that the method of using a pattern will change in core? Whether it's copied from wp.org or added from the inserter in the editor, it's only content added to the post.


What I'm hearing right now, for stats tracking on launch, is snapshot-style record keeping (using the 5ftf cron setup?) to track total number of favorite (and reported?) patterns.

Post launch, when the core feature is iterated on, we will want to track search terms, and however patterns are officially installed.

@mtias
Copy link
Member

mtias commented Jul 16, 2021

Whether it's copied from wp.org or added from the inserter in the editor, it's only content added to the post.

It won't change, but an action that performs insertion is an action that ensure selection + insertion happens, closer to an "activation".

What I'm hearing right now, for stats tracking on launch, is snapshot-style record keeping

That'd be my inclination as a start, it should be something that can be done on the patterns repository itself without having to deal with user actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Core/Gutenberg Changes that should happen in the core editor (tracking issues only) [Component] Pattern Directory API The pattern API on WordPress.org, and/or the CPT endpoint [Type] Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants