]> iEval git - plack-app-gruntmaster.git/blobdiff - js/90-ga.js
Use a custom dimension instead of events for theme tracking
[plack-app-gruntmaster.git] / js / 90-ga.js
index 4c829f15cbd4b2b3cce9858980d17b604773d710..fece905c0edce6689930a2afcc77d8be870a574f 100644 (file)
@@ -7,5 +7,8 @@ if(!dnt) {
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
        ga('create', 'UA-47497115-1', 'mindcoding.ro');
+       var theme = localStorage.getItem("theme");
+       if(theme)
+               ga('set', 'dimension1', theme);
        ga('send', 'pageview');
 }
This page took 0.023449 seconds and 4 git commands to generate.