UPDATE: Google Analytics

This commit is contained in:
Tony Air 2020-04-01 00:24:58 +07:00
parent 7a8d38d15e
commit 45c8942770

View File

@ -4,7 +4,7 @@ import $ from 'jquery';
import Events from './_events';
const LayoutUI = (($) => {
const LayoutUI = ($ => {
// Constants
const W = window;
const D = document;
@ -37,27 +37,11 @@ const LayoutUI = (($) => {
);
/*google analytics */
/*(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
(i[r] =
i[r] ||
function() {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(
window,
document,
'script',
'//www.google-analytics.com/analytics.js',
'ga',
);
/*$.getScript('https://www.google-analytics.com/analytics.js', () => {
ga('create', 'UA-********-*', 'auto');
ga('send', 'pageview');*/
ga('send', 'pageview');
});*/
}
static dispose() {