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

Optimize stats_accessed event #20398

Closed
2 tasks done
irfano opened this issue Mar 3, 2024 · 9 comments
Closed
2 tasks done

Optimize stats_accessed event #20398

irfano opened this issue Mar 3, 2024 · 9 comments
Assignees
Labels
Observability Telemetry and Crash Logs Stats [Type] Bug

Comments

@irfano
Copy link
Member

irfano commented Mar 3, 2024

Tasks

@dangermattic
Copy link
Collaborator

dangermattic commented Mar 3, 2024

Thanks for reporting! 👍

@aditi-bhatia aditi-bhatia self-assigned this Mar 26, 2024
@aditi-bhatia
Copy link
Contributor

Hi @irfano, sorry if this is an obvious question, what are the steps I should follow to trigger the StatsLaunchedFrom.JETPACK_CONNECTION event?

@irfano
Copy link
Member Author

irfano commented Mar 28, 2024

Thanks for working on this, @aditi-bhatia! You can check the testing instructions for jetpack_connection at #20194.

@aditi-bhatia
Copy link
Contributor

Hi @irfano thank you 👍 Just to double check, it should be fine to replace StatsLaunchedFrom.JETPACK_CONNECTION with QUICK_ACTIONS?

  • In the app, the Jetpack connection prompt only appears in My Site -> Stats (which is tap_source: QUICK_ACTIONS) or from notifications.
  • The only place JETPACK_CONNECTION is used is line 145 of JetpackConnectionResultActivity, where mSource == JetpackConnectionSource.STATS.
  • It seems like the only way Stats can be launched after a Jetpack connection is via My Site -> Stats (it's not launched after connecting Jetpack via notifications).

Just wanted to do a confidence check since the ticket description mentioned Instead, tap_source should be set to other StatsLaunchedFrom values based on where stats is launched from. but there only seems to be one way that stats is launched from a Jetpack connection. Thanks again!

@irfano
Copy link
Member Author

irfano commented Mar 29, 2024

🤔 Good call @aditi-bhatia! Actually we can also launch stats from shortcut and link but that flow is broken. I'm sharing the video here and will open an issue for it.

it should be fine to replace StatsLaunchedFrom.JETPACK_CONNECTION with QUICK_ACTIONS

Yes, I agree.

jetpack-connection-issue.mov

@aditi-bhatia
Copy link
Contributor

Hi @irfano, I'm working on verifying the second portion of this task and had a few questions:

  1. When I try to launch stats from notifications using the debug notification steps Update stats analytics #20194, I don't get a roundup notification. Is there something else I need to do in order to get one?
  2. I couldn't find a way to access Stats from the activity log. I noticed Povilas had the same issue in the steps here: Update stats analytics #20194. Have we found a way to test this?

Besides the two entry points above, I've tested all other entry points and they have the correct tap_source property.

@irfano
Copy link
Member Author

irfano commented Apr 5, 2024

Is there something else I need to do in order to get one?

I am using the Jetpack Wasabi variant with enabled notification permission, and I can receive a roundup notification. Are you using the same settings?

Have we found a way to test this?

I still don't know. However, we can skip it for this issue because I've already handled it in #20194 and decided that the implementation is correct even though I couldn't test it.

@aditi-bhatia
Copy link
Contributor

Hmm, I've been using Jetpack Jalapeno Debug with enabled notification permissions (both app and system), but I can try to see if Wasabi is any different

@aditi-bhatia
Copy link
Contributor

Ah okay, I tried again a few more times and reinstalled the app as well. I'm finally seeing the notification and the event works as expected 👍 I'll go ahead and mark the second item as resolved + resolve this ticket as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Observability Telemetry and Crash Logs Stats [Type] Bug
Projects
None yet
Development

No branches or pull requests

3 participants