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:
8305334
)
Use a custom dimension instead of events for theme tracking
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 14 Mar 2015 14:08:13 +0000
(16:08 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 14 Mar 2015 14:08:13 +0000
(16:08 +0200)
js/90-ga.js
patch
|
blob
|
blame
|
history
diff --git
a/js/90-ga.js
b/js/90-ga.js
index 7e7feed6154e00a010b0a8a3863111bd8aaebc4e..fece905c0edce6689930a2afcc77d8be870a574f 100644
(file)
--- 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');
}
This page took
0.011146 seconds
and
4
git commands to generate.