From: Marius Gavrilescu Date: Sat, 14 Mar 2015 13:35:52 +0000 (+0200) Subject: Track theme using Google Analytics X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=f71f73b3854b206f618d1f3a783e0ce00f7de3d2;p=gruntmaster-page.git Track theme using Google Analytics --- diff --git a/js/90-ga.js b/js/90-ga.js index 4c829f1..7e7feed 100644 --- a/js/90-ga.js +++ b/js/90-ga.js @@ -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); }