freeCodeCamp / freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn to code for free.
https://contribute.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
405.47k stars 38.04k forks source link

Analytics for /email-sign-up #50581

Open ojeytonwilliams opened 1 year ago

ojeytonwilliams commented 1 year ago

Is your feature request related to a problem? Please describe.

It would be useful to know how people behave on the /email-sign-up page, since this is the first page they see after creating an account.

Describe the solution you'd like

We could record if a visitor clicks the "Yes please" or "No thanks" buttons. i.e. they've actively made a choice. If we compare this with the total page views, we can get an idea how many people make that choice vs simply navigating away.

Describe alternatives you've considered

Carrying on without it.

Additional context

For the statistics to be meaningful, we would need to add context to the page view. Specifically that the visitor was signed in and had not already clicked one of the buttons. If we know this then we can be (reasonably) confident the visitor has just arrived from the api.

If that's not good enough, we can do cleverer things, but I think that's probably enough to start with.

ojeytonwilliams commented 1 year ago

The initial discussion that inspired this can be found here: https://github.com/freeCodeCamp/freeCodeCamp/pull/50555#discussion_r1211628003

ahmaxed commented 1 year ago

Related Analytics

Screenshot 2023-06-09 at 9 50 12 AM