Skip to content

Commit ee8781e

Browse files
committed
GA-lite testing again
Still not working
1 parent 37021d2 commit ee8781e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ module.exports = function (grunt)
245245
dist: {
246246
// Preserve all comments that start with a bang (!) or include a closure compiler style.
247247
options: {
248+
mangle: {
249+
reserved: ['galite']
250+
},
248251
output: {
249252
comments: require('uglify-save-license')
250253
}

src/assets/js/main.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,20 @@
103103
}
104104
});
105105

106+
// Google Analytics, via 'ga-lite'.
107+
// More info - https://github.com/jehna/ga-lite.
108+
109+
//require(['galite.@@timestamp'], function()
110+
//{
111+
// var galite = galite || {};
112+
//
113+
// if (whatDomain === 'docs.textpattern.io') {
114+
// galite.UA ='UA-89386022-1';
115+
// } else {
116+
// galite.UA ='UA-191562-10';
117+
// }
118+
//
119+
// galite.anonymizeIp = true;
120+
//});
121+
106122
})();

0 commit comments

Comments
 (0)