data-to-insight / quality-lac-data-beta

Quality LAC data Beta project
MIT License
8 stars 3 forks source link

Track LA when validating #74

Open dezog opened 2 years ago

dezog commented 2 years ago

At the moment we can only track when LA's select their LA and, I think, when the page sets the LA from localStorage. We're trying to track the LA every time validate is clicked so we can see if people are repeatedly using the tool in a session - not 100% sure if what I've done here is the right way to do it.

I've kept 'event('click' ,'validate') as a thing but added event('validate', 'LA_known', storedValue) (and event('validate', 'no_LA') in case getting the LA from localStorage doesnt work for some reason)