]> iEval git - plack-app-gruntmaster.git/commitdiff
Use a custom dimension instead of events for theme tracking
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Mar 2015 14:08:13 +0000 (16:08 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Mar 2015 14:08:13 +0000 (16:08 +0200)
js/90-ga.js

index 7e7feed6154e00a010b0a8a3863111bd8aaebc4e..fece905c0edce6689930a2afcc77d8be870a574f 100644 (file)
@@ -7,8 +7,8 @@ if(!dnt) {
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
        ga('create', 'UA-47497115-1', 'mindcoding.ro');
-       ga('send', 'pageview');
        var theme = localStorage.getItem("theme");
        if(theme)
-               ga('send', 'event', 'theme', theme);
+               ga('set', 'dimension1', theme);
+       ga('send', 'pageview');
 }
This page took 0.022919 seconds and 4 git commands to generate.