PageSourceSearch

https://account.trainheroic.com/consent/google-tag-manager.js

js trainheroic.com collected 2026-09-24 09:56:43 UTC 1,558 bytes, 48 lines download raw bytes

1/* Block fbq calls until C0004 (Targeting) consent is granted */
2(function () {
3    if (window.fbq) return;
4    var queue = [];
5    function fbqProxy() {
6        queue.push(Array.prototype.slice.call(arguments));
7    }
8    fbqProxy.callMethod = null;
9    fbqProxy.queue = queue;
10    fbqProxy.loaded = false;
11    fbqProxy.version = '2.0';
12    fbqProxy.push = fbqProxy;
13    window.fbq = fbqProxy;
14    window._fbq = fbqProxy;
15    window._fbqConsentQueue = queue;
16})();
17
18/* Google Tag Manager — loaded after OneTrust C0002 consent */
19window.initGoogleTagManager = function () {
vendor: 487 bytes, lines 19-32
19
20    (function (w, d, s, l, i) {
21        w[l] = w[l] || [];
22        w[l].push({
23            'gtm.start': new Date().getTime(),
24            event: 'gtm.js'
25        });
26        var f = d.getElementsByTagName(s)[0],
27            j = d.createElement(s),
28            dl = l != 'dataLayer' ? '&l=' + l : '';
29        j.async = true;
30        j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
31        f.parentNode.insertBefore(j, f);
32    })(window, document, 'script', 'dataLayer', '
32GTM-MV5DJ89
vendor: 4 bytes, line 32
32');
33};
34
35/* Google tag (gtag.js) — loaded after OneTrust C0002 consent */
36window.initGoogleTag = function () {
37    var s = document.createElement('script');
38    s.async = true;
39    s.src = 'https://www.googletagmanager.com/gtag/js?id=G-PNYT91MHL9';
40    document.head.appendChild(s);
41    window.dataLayer = window.dataLayer || [];
42    function gtag() {
43        dataLayer.push(arguments);
44    }
45    window.gtag = gtag;
46    gtag('js', new Date());
47    gtag('config', 'G-PNYT91MHL9');
48};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.