ethereum / ethereum-org-website

Ethereum.org is a primary online resource for the Ethereum community.
https://ethereum.org/
MIT License
5k stars 4.76k forks source link

include event tracking for "edit" button globally #13422

Open konopkja opened 1 month ago

konopkja commented 1 month ago

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

Our markdown page template includes "edit" button leading users to github to edit the content. Currently we do not track how many people click on this. We would like to have more information about this component.

See examples where this button is: https://ethereum.org/en/guides/ https://ethereum.org/en/guides/how-to-create-an-ethereum-account/ https://ethereum.org/en/web3/ https://ethereum.org/en/developers/docs/

This is how the button looks like:

Screenshot 2024-07-18 at 17 44 02

Describe the solution you'd like

Implement custom event tracking code:

Event Category edit_page

Event Action gh_edit_click

Event Name {page url}

Describe alternatives you've considered

NA

Additional context

No response

Would you like to work on this issue?

Abhinav-Chdhary commented 1 month ago

Where do you want to store the counter?

konopkja commented 1 month ago

Where do you want to store the counter?

we are using Matomo analytics, perhaps @wackerow can assist with implementation details

rohitt-gupta commented 1 month ago

Hey @wackerow @konopkja , Please assign this issue to me. Will open a PR Soon

rohitt-gupta commented 1 month ago

@konopkja please check and review

github-actions[bot] commented 3 days ago

This issue is stale because it has been open 30 days with no activity.