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

Add tracking to Editing Toolkit NUX #46705

Closed
ramonjd opened this issue Oct 22, 2020 · 9 comments
Closed

Add tracking to Editing Toolkit NUX #46705

ramonjd opened this issue Oct 22, 2020 · 9 comments
Assignees
Labels
[Goal] New Onboarding previously called Gutenboarding NUX

Comments

@ramonjd
Copy link
Member

ramonjd commented Oct 22, 2020

Let's add the following tracking to the NUX modal:

  • When it loads and appears to the user (include the current flow, e.g. isGutenboarding)
  • When it's dismissed
  • When a user interacts with it, sending some information about the requested slide as well.

We can important recordTracksEvent into the module (I think)

import { recordTracksEvent } from '@automattic/calypso-analytics';

Context p1603408699056900-slack-CRNF6A9DX

@ramonjd ramonjd added [Goal] New Onboarding previously called Gutenboarding NUX labels Oct 22, 2020
@ramonjd
Copy link
Member Author

ramonjd commented Oct 26, 2020

When a user interacts with it, sending some information about the requested slide as well.

This might require an extension to the <Guide /> component, so maybe it can be a nice to have for now.

https://github.com/WordPress/gutenberg/tree/master/packages/components/src/guide

@autumnfjeld
Copy link
Contributor

When a user interacts with it, sending some information about the requested slide as well.

@ramonjd Do you mean the "Next" and "Previous" buttons? Those two buttons and the final "Ge Started" button are the only UI elements the user can interact with, as far as I can tell.
Screenshot here: https://d.pr/i/2ejA1c

@ramonjd
Copy link
Member Author

ramonjd commented Oct 27, 2020

Do you mean the "Next" and "Previous" buttons? Those two buttons and the final "Ge Started" button are the only UI elements the user can interact with, as far as I can tell.

Thanks! Looks to be the case. As far as I can tell we can't track them without some hook into the core package (Guide), so it's something we can think about for the new Onboarding Experience. It might be helpful to know which content slides the user sees. 👍

@razvanpapadopol
Copy link

When a user interacts with it, sending some information about the requested slide as well.

What about recording an event when mounting NuxPage component so we track if the user got to slide 1/2/3/4 ?

@ramonjd
Copy link
Member Author

ramonjd commented Oct 28, 2020

What about recording an event when mounting NuxPage component so we track if the user got to slide 1/2/3/4 ?

Thanks for the idea @razvanpapadopol!

Do you know if there is an obvious way to do that?

I see that we're mapping over the array of nux pages .

We'll test, but do you think it's a matter of adding something like:

function NuxPage( { alignBottom = false, heading, description, imgSrc } ) {
      useEffect(() => {
          recordTracksEvent( 'calypso_ha_ha_ha', {title: heading } );
      }, []);
	return (
....

@razvanpapadopol
Copy link

Do you know if there is an obvious way to do that?

I see that we're mapping over the array of nux pages .

We'll test, but do you think it's a matter of adding something like:

function NuxPage( { alignBottom = false, heading, description, imgSrc } ) {
useEffect(() => {
recordTracksEvent( 'calypso_ha_ha_ha', {title: heading } );
}, []);
return (
....

Yup! Exactly that is what I had in mind 👍

Here is a fully-working draft PR: #46898
Please note that we're interested to see especially if the user got to the last slide.

@autumnfjeld feel free to bring it in #46796 or take over and merge separately since it's adding a different event (tracking each individual page and not the entire NUX modal).

@autumnfjeld
Copy link
Contributor

@razvanpapadopol Thanks for the draft PR and the input!! Finally got a working version with everyone's efforts. :). #46796

@autumnfjeld
Copy link
Contributor

Fixed in #46796
Just need Editing Toolkit backend deploy

@ramonjd
Copy link
Member Author

ramonjd commented Dec 13, 2020

This has been merged 🎉

@ramonjd ramonjd closed this as completed Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Goal] New Onboarding previously called Gutenboarding NUX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants