Title: Opt-in Usage Tracking in Gutenberg
Author: James Nylen
Published: August 6, 2017
Last modified: January 25, 2018

---

 [  ](https://profiles.wordpress.org/jnylen0/) [James Nylen](https://profiles.wordpress.org/jnylen0/)
5:13 pm _on_ August 6, 2017     
Tags: [gutenberg ( 555 )](https://make.wordpress.org/core/tag/gutenberg/)

# Opt-in Usage Tracking in Gutenberg

Starting in last Friday’s [version 0.7.0](https://make.wordpress.org/core/2017/08/04/whats-new-in-gutenberg-4th-august/),
the GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress.
The editor improves the process and experience of creating new content, making writing
rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes,
custom HTML etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
pluginPlugin A plugin is a piece of software containing a group of functions that
can be added to a WordPress website. They can extend functionality or add new features
to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. contains a mechanism to count how
often specific actions occur over time.  Before anything is tracked, each WordPress
user on each site must opt in to the tracking via an opt-in screen shown when loading
the new version of the plugin.  Here is what that screen looks like:

[[

Whether a user clicks “Yes” or “No”, this preference is remembered as a user option.

If the user has previously clicked “Yes” on this screen, and an event occurs that
has an associated [`bumpStat` call](https://github.com/WordPress/gutenberg/search?utf8=%E2%9C%93&q=bumpStat&type=)
in the Gutenberg code, then this event is sent to WordPress.comWordPress.com An 
online implementation of WordPress code that lets you immediately access a new WordPress
environment to publish your content. WordPress.com is a private company owned by
Automattic that hosts the largest multisite in the world. This is arguably the best
place to start blogging if you have never touched WordPress before. [https://wordpress.com/](https://wordpress.com/)
servers by loading a special “pixel” image.  The following data is stored for future
analysis:

 * The “group” and “name” sent with the `bumpStat` call (short strings of text)
 * The time the event was recorded.

We’ll use this data to look at usage patterns and make the editor experience better
over time.

As Gutenberg is an open-source community project, we view this data as belonging
to the WordPress community, so we also plan to make this data available via a public
dashboard.  In the meantime, here is a preview of the number and type of blocks 
added to posts in the editor over the few days since the 0.7.0 release:

[[

Finally, for more details about the technical implementation of this feature, see
the GitHubGitHub GitHub is a website that offers online implementation of git repositories
that can easily be shared, copied and modified by other developers. Public repositories
are free to host, private repositories require a paid subscription. GitHub introduced
the concept of the ‘pull request’ where code changes done in branches by contributors
can be reviewed and discussed before being merged by the repository owner. [https://github.com/](https://github.com/)
pull requests where it was developed:  [2140](https://github.com/WordPress/gutenberg/pull/2140),
[2205](https://github.com/WordPress/gutenberg/pull/2205), and [2217](https://github.com/WordPress/gutenberg/pull/2217).

[#gutenberg](https://make.wordpress.org/core/tag/gutenberg/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2017/08/06/opt-in-usage-tracking-in-gutenberg/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2017/08/06/opt-in-usage-tracking-in-gutenberg/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2017/08/06/opt-in-usage-tracking-in-gutenberg/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2017/08/06/opt-in-usage-tracking-in-gutenberg/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2017/08/06/opt-in-usage-tracking-in-gutenberg/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2017/08/06/opt-in-usage-tracking-in-gutenberg/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/a436ab0e9c96432f9852e6c89a6efba387bbbd837e6f3eb29d1c97edad80f6ec?
     s=32&d=mm&r=g)
 2.   [Drivingralle](https://profiles.wordpress.org/drivingralle/)  11:22 am _on_ August
     7, 2017
 3.  If the data belonging to the WordPress community why are they send to WordPress.
     comWordPress.com An online implementation of WordPress code that lets you immediately
     access a new WordPress environment to publish your content. WordPress.com is a
     private company owned by Automattic that hosts the largest multisite in the world.
     This is arguably the best place to start blogging if you have never touched WordPress
     before. [https://wordpress.com/](https://wordpress.com/)?
 4.   * ![](https://secure.gravatar.com/avatar/1718b7c2f2afc31b4e94805b6f1f6ae2b802cc4c696f99b11fde2186006c82c9?
        s=32&d=mm&r=g)
      *  [Pascal Birchler](https://profiles.wordpress.org/swissspidy/)  8:02 pm _on_
        August 8, 2017
      * In this case, we should probably think of WordPress.comWordPress.com An online
        implementation of WordPress code that lets you immediately access a new WordPress
        environment to publish your content. WordPress.com is a private company owned
        by Automattic that hosts the largest multisite in the world. This is arguably
        the best place to start blogging if you have never touched WordPress before.
        [https://wordpress.com/](https://wordpress.com/) more as an analytics provider
        like Google Analytics, not the hosting platform. Many contributors to GutenbergGutenberg
        The Gutenberg project is the new Editor Interface for WordPress. The editor
        improves the process and experience of creating new content, making writing
        rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes,
        custom HTML etc.
         [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
        work for Automattic and thus were able to easily and quickly set up the tracking
        using the infrastructure they already knew. Setting up something similar on
        WordPress.orgWordPress.org The community site where WordPress code is created
        and shared by the users. This is where you can download the source code for
        WordPress core, plugins and themes as well as the central location for community
        conversations and organization. [https://wordpress.org/](https://wordpress.org/)
        infrastructure would have taken ages. See also [#38418](https://core.trac.wordpress.org/ticket/38418).
      * As mentioned in the post, using WordPress.com as an analytics service doesn’t
        mean the data won’t be public.
 5.  ![](https://secure.gravatar.com/avatar/96804ac655933f5b6380e992610d6ff9029c6d04db1042d4bec381312ff7ff1b?
     s=32&d=mm&r=g)
 6.   [James Nylen](https://profiles.wordpress.org/jnylen0/)  8:07 am _on_ August 10,
     2017
 7.  There’s been quite a lot of discussion on this topic across the community, much
     of which stems from earlier discussions like [#38418](https://core.trac.wordpress.org/ticket/38418),
     which I wasn’t aware of.
 8.  Usage tracking in CoreCore Core is the set of software required to run WordPress.
     The Core Development Team builds WordPress. and feature projects is a much bigger
     topic than fits into the scope of GutenbergGutenberg The Gutenberg project is 
     the new Editor Interface for WordPress. The editor improves the process and experience
     of creating new content, making writing rich content much simpler. It uses ‘blocks’
     to add richness rather than shortcodes, custom HTML etc.
      [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
     right now, so I’ve removed it from the GitHubGitHub GitHub is a website that offers
     online implementation of git repositories that can easily be shared, copied and
     modified by other developers. Public repositories are free to host, private repositories
     require a paid subscription. GitHub introduced the concept of the ‘pull request’
     where code changes done in branches by contributors can be reviewed and discussed
     before being merged by the repository owner. [https://github.com/](https://github.com/)
     repo, and it will be removed in the 0.8 Gutenberg release.
 9.  The data that it was tracking, while interesting, probably wouldn’t have been 
     a significant factor in the long-term growth and development of Gutenberg. The
     discussion surrounding the data collection, however, would take up a disproportionate
     amount of the team’s time.
 10. The data that was collected will be deleted after 0.8 rolls out. Because it’s 
     still so early in Gutenberg’s development, there was not enough collected to provide
     any sort of picture of usage.
 11.  * ![](https://secure.gravatar.com/avatar/0509076ca524e6b63d7e3140882ce03793c426135a2b939dd9224d271c5467ae?
        s=32&d=mm&r=g)
      *  [zakkath](https://profiles.wordpress.org/zakkath/)  7:39 pm _on_ August 11,
        2017
      * I have to say that I strongly disagree with the decision to yank the telemetry
        functionality out of the GutenbergGutenberg The Gutenberg project is the new
        Editor Interface for WordPress. The editor improves the process and experience
        of creating new content, making writing rich content much simpler. It uses ‘
        blocks’ to add richness rather than shortcodes, custom HTML etc.
         [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
        betaBeta A pre-release of software that is given out to a large group of users
        to trial under real conditions. Beta versions have gone through alpha testing
        in-house and are generally fairly close in look, feel and function to the final
        product; however, design changes often occur as part of the process. pluginPlugin
        A plugin is a piece of software containing a group of functions that can be
        added to a WordPress website. They can extend functionality or add new features
        to your WordPress websites. WordPress plugins are written in the PHP programming
        language and integrate seamlessly with WordPress. These can be free in the 
        WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
        or can be cost-based plugin from a third-party.. It seems antithetical to remove
        it when it would literally hand its developers vital data on a silver platter
        that it needs right now.
      * I’ve been lurking around discussions of fields, blocks, etc. and it seems to
        me that data collected would show what blocks/embeds were being used, how they
        were being used, which ones were not, etc. It would then provide a means to
        look deeper into questions like “Why isn’t anyone using the X blockBlock Block
        is the abstract term used to describe units of markup that, composed together,
        form the content or layout of a webpage using the WordPress editor. The idea
        combines concepts of what in the past may have achieved with shortcodes, custom
        HTML, and embed discovery into a single consistent API and user experience.?”
        Without any data, the team is either restricted to people who run the beta 
        plugin and provide the level of feedback the team needs or they’re just simply
        flying blind.
      * If you’ve seen my avatarAvatar An avatar is an image or illustration that specifically
        refers to a character that represents an online user. It’s usually a square
        box that appears next to the user’s name. in the WP SlackSlack Slack is a Collaborative
        Group Chat Platform [https://slack.com/](https://slack.com/). The WordPress
        community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/),
        it’s pretty obvious that I play Blizzard games. Everything I do in any game
        I play made by them is logged right down to what I say in chat channels. They
        USE that data to great advantage in their development and they will openly 
        attribute decisions to certain things. I can go on and on about what’s popped
        into their games and evolved specifically from data collection. And sometimes
        those features get refined further.
      * More importantly, and this speaks directly to Morton Rand-Hendrickson’s tracTrac
        An open source project by Edgewall Software that serves as a bug tracker and
        project management tool for WordPress. ticketticket Created for both bug reports
        and feature development on the bug tracker. on the issue, putting it and keeping
        it in Gutenberg provides guidance on a) how useful the data collected is, and
        b) how to integrate the capabilitycapability A **capability** is permission
        to perform one or more types of task. Checking if a user has a capability is
        performed by the `current_user_can` function. Each user of a WordPress site
        might have some permissions but not others, depending on their role. For example,
        users who have the Author role usually have permission to edit their own posts(
        the “edit_posts” capability), but not permission to edit other users’ posts(
        the “edit_others_posts” capability). into coreCore Core is the set of software
        required to run WordPress. The Core Development Team builds WordPress. for 
        5.0 or beyond.
      * The issue of informed consent is twice taken care of by the fact that a) one
        has to enable it to begin with and b) Gutenberg is a beta plugin that one has
        to actively seek out and install anyways. The same model could be used for 
        core with just notification that the plug-in exists that shows once per install
        and then an addition to the dashboard that shows status of telemetry (enabled/
        disabled).

Comments are closed.

# Post navigation

[← What’s new in Gutenberg? (4th August)](https://make.wordpress.org/core/2017/08/04/whats-new-in-gutenberg-4th-august/)

[Multisite Recap for the week of July 31st →](https://make.wordpress.org/core/2017/08/07/multisite-recap-for-the-week-of-july-31st/)