projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c2a2b7
)
Track theme using Google Analytics
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 14 Mar 2015 13:35:52 +0000
(15:35 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 14 Mar 2015 13:35:52 +0000
(15:35 +0200)
js/90-ga.js
patch
|
blob
|
blame
|
history
diff --git
a/js/90-ga.js
b/js/90-ga.js
index 4c829f15cbd4b2b3cce9858980d17b604773d710..7e7feed6154e00a010b0a8a3863111bd8aaebc4e 100644
(file)
--- 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);
}
This page took
0.010627 seconds
and
4
git commands to generate.