Add analytics event for langauge selection (#198)

* Add analytics event for language

* Action per language pack

* Missing underscore in action
pull/200/head
Matt (IPv4) Cowley 4 years ago committed by GitHub
parent d58b6e08d9
commit 7340e0df74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -213,6 +213,11 @@ THE SOFTWARE.
// Update the locale
this.$i18n.locale = data.computed;
// Analytics
const pack = data.computed.match(/^([a-z]+)([A-Z]*)$/).slice(1)
.map(x => x.toLowerCase()).filter(x => !!x).join('_');
analytics(`set_language_${pack}`, 'Language');
},
deep: true,
},

Loading…
Cancel
Save