www-googletagmanager-com_gtm.js 514 B

12345678910111213141516171819202122
  1. (function () {
  2. 'use strict';
  3. const noopfn = function () {
  4. };
  5. const w = window;
  6. w.ga = w.ga || noopfn;
  7. const dl = w.dataLayer;
  8. if (dl instanceof Object === false) { return; }
  9. if (dl.hide instanceof Object && typeof dl.hide.end === 'function') {
  10. dl.hide.end();
  11. }
  12. if (typeof dl.push === 'function') {
  13. dl.push = function (o) {
  14. if (
  15. o instanceof Object &&
  16. typeof o.eventCallback === 'function'
  17. ) {
  18. setTimeout(o.eventCallback, 1);
  19. }
  20. };
  21. }
  22. })();