track notice events

This commit is contained in:
Matteias Collet 2021-12-28 16:50:05 +00:00 committed by GitHub
parent 3c82f46c72
commit 8a1d8d4b67

View file

@ -46,6 +46,7 @@ export default {
try {
if (localStorage.getItem('jp-translator-notice-dismissed') !== 'y') {
this.dismissed = false;
window._paq.push(['trackEvent', 'GCT Generator', 'Translator Notice', 'Show Notice']);
}
} catch {}
},
@ -54,6 +55,7 @@ export default {
try {
localStorage.setItem('jp-translator-notice-dismissed', 'y');
this.dismissed = true;
window._paq.push(['trackEvent', 'GCT Generator', 'Translator Notice', 'Dismiss Notice']);
} catch {}
},
},