Files
ruleset.skk.moe/Assets/www-googletagmanager-com_gtm.js
2022-12-08 15:51:38 +00:00

23 lines
514 B
JavaScript

(function () {
'use strict';
const noopfn = function () {
};
const w = window;
w.ga = w.ga || noopfn;
const dl = w.dataLayer;
if (dl instanceof Object === false) { return; }
if (dl.hide instanceof Object && typeof dl.hide.end === 'function') {
dl.hide.end();
}
if (typeof dl.push === 'function') {
dl.push = function (o) {
if (
o instanceof Object &&
typeof o.eventCallback === 'function'
) {
setTimeout(o.eventCallback, 1);
}
};
}
})();