Let's instrumentt the share button (T181195) to verify users need this functionality.
We can share 2the following metrics:
- number of - [[https://en.wikipedia.org/wiki/Click-through_rate|clicks onthrough rate]] of the Share button
- the number of pageviews from shared links.
####Open questions:
How can we track pageviews from the- abandonment rate (defined as the percentage of share button? clicks, i.e. There are at least two possible ways:
openings of the share menu, - add a query parameter tothat are not followed by the shared URL - Something like `?election of a share_link` and then track it on the backending app from that menu)
- add a hash parameter to the- the number of pageviews from shared URL - something like `#share_link`, and track it on the frontend.links (by adding a [[https://wikitech.wikimedia.org/wiki/Provenance | wprov]] URL parameter)
I think that a better way is to track it on the backend by using `?share_link, but I'm afraid there might be some
performance impact (requests not hitting cache).
Are there any performance issues related to adding a parameter to the URL and tracking it on the backend?
Are we able to easily check the number of requests with an additional query parameter?Draft schema: https://meta.wikimedia.org/wiki/Schema:MobileWebShareButton