From 8a1d8d4b67187bf3357caaa78afa40c07ba030db Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Tue, 28 Dec 2021 16:50:05 +0000 Subject: [PATCH] track notice events --- site/.vuepress/components/JPTranslatorNotice.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/.vuepress/components/JPTranslatorNotice.vue b/site/.vuepress/components/JPTranslatorNotice.vue index 269ec3a..f2f3847 100644 --- a/site/.vuepress/components/JPTranslatorNotice.vue +++ b/site/.vuepress/components/JPTranslatorNotice.vue @@ -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 {} }, },