Add analytics to the language switcher
We're curious how many people use the language switcher in the footer to change to a language other than what we initially serve them. Having some data on this would inform a proposed redesign of our language switcher. It seems like something we could do pretty easily with GA and an event on the switcher dropdown?
... we could do pretty easily with GA and an event on the switcher ...
To implement this, would we use dataLayer.push()?
It looks like we already capture this data in GA: https://github.com/mozilla/bedrock/blob/master/media/js/base/mozilla-utils.js#L52
It looks like we already capture this data in GA
Ah! So we do. I don't know why it didn't occur to me to check first before I assumed we didn't.