From: Marius Gavrilescu Date: Sat, 14 Mar 2015 14:08:13 +0000 (+0200) Subject: Use a custom dimension instead of events for theme tracking X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d7914dea8a59068b1d0b03ba948e5584f266e8e1;hp=8305334ceb509ee08dff5ad026731577846954da;p=plack-app-gruntmaster.git Use a custom dimension instead of events for theme tracking --- diff --git a/js/90-ga.js b/js/90-ga.js index 7e7feed..fece905 100644 --- a/js/90-ga.js +++ b/js/90-ga.js @@ -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'); }