-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Gutenboarding]: add analytics (tracks) #38799
Comments
I think the consensus is that:
See context in p1579140697040600-slack-gutenboarding |
I'm making a start on pulling the track analytics code into the shared lib. |
Subtask of EPIC #38701
Along with generating a temporary user account and site to allow users to interact with Gutenboarding, we’ll probably have to set up some way to track it all.
From the discussion in p1579140697040600-slack-gutenboarding I think the consensus is that:
lib/analytics
behemoth, we build a tiny tracks lib in @automattic/analytics package, which will furnish the necessary tracks methods:recordEvent
,recordPageView
Sub tasks
After account creation, and reassign events triggered by the anonymous ID
For WordPress.com, before users sign up, we set a cookie that assigns to them an anonymous ID.
After sign up, Calypso calls a method called identifyUser , which records the user’s new ID and username, both of which we send back in the API response after a successful account creation.
Tracks then (somehow) reassigns events triggered by the anonymous ID to the new user ID. 👍
We’d have to determine whether anonymous ID tracking in Gutenboarding before user sign up/sign in is acceptable.
Since it’s working currently on WordPress.com however, my guess is that it is appropriate. A conversion with folks from data might be enough to give us the greet tick.
Event validation
Double check with the data team that our events and props are okay in light of the product.
Related links
p1579140697040600-slack-gutenboarding
Some initial investigation on anonymous IDs: pbxlJb-4t-p2
The text was updated successfully, but these errors were encountered: