From f71f73b3854b206f618d1f3a783e0ce00f7de3d2 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 14 Mar 2015 15:35:52 +0200 Subject: [PATCH] Track theme using Google Analytics --- js/90-ga.js | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.2