FirefoxUX / photon

Firefox’s Photon Design System.
https://design.firefox.com/photon/
Mozilla Public License 2.0
274 stars 74 forks source link

Add a JS event listener to the interactive radio button example #251

Closed aminalhazwani closed 6 years ago

aminalhazwani commented 6 years ago

The current radio buttons page on staging features an interactive example accessible via the image caption.

We would like to append a GA JS event in order to understand if this is something we should purse more. The things that we would like to measure are two: first if users actually use the caption and switch from the static image to the interactive example and second, once they switch, if they actually interact with said example.

Side note: we might change the code of the interactive example, would that be possible also after the JS events are set up?

ericawright commented 6 years ago

In order to set up the second case - interacting with the example - I need to remove the iframe. So yes, the code can change, and will have to change

aminalhazwani commented 6 years ago

@ericawright ok, thanks for the feedback! So for now let's keep the iframe and track only the interaction with the image caption ☺️