Track theme using Google Analytics
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Mar 2015 13:35:52 +0000 (15:35 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Mar 2015 13:35:52 +0000 (15:35 +0200)
js/90-ga.js

index 4c829f15cbd4b2b3cce9858980d17b604773d710..7e7feed6154e00a010b0a8a3863111bd8aaebc4e 100644 (file)
@@ -8,4 +8,7 @@ if(!dnt) {
 
        ga('create', 'UA-47497115-1', 'mindcoding.ro');
        ga('send', 'pageview');
+       var theme = localStorage.getItem("theme");
+       if(theme)
+               ga('send', 'event', 'theme', theme);
 }
This page took 0.010627 seconds and 4 git commands to generate.