mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-28 17:18:46 +00:00
Track language
This commit is contained in:
@@ -8,10 +8,11 @@
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-73024255-2', 'auto');
|
||||
ga('set', 'page', location.pathname.replace(/^\/dev/, ''))
|
||||
ga('set', 'page', location.pathname.replace(/^\/dev/, ''));
|
||||
ga('set', 'dimension1', localStorage.getItem('theme') ?? 'default');
|
||||
ga('set', 'dimension2', 'v2');
|
||||
ga('set', 'dimension3', localStorage.getItem('schema_version') ?? '1.17');
|
||||
ga('set', 'dimension4', localStorage.getItem('language') ?? 'en');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
||||
|
||||
Reference in New Issue
Block a user