PageSourceSearch

https://www.cloudkeeper.com/modules/contrib/google_tag/js/gtm.js?tm85k2

js cloudkeeper.com collected 2026-10-01 11:36:05 UTC 1,227 bytes, 30 lines download raw bytes

1const dl = drupalSettings.gtm.settings.data_layer || 'dataLayer'
2window[dl] = window[dl] || [];
3
4(function (drupalSettings) {
5    const config = drupalSettings.gtm;
6
7    window[dl].push({'gtm.start': new Date().getTime(), event:'gtm.js'});
8    const gtmSettings = config.settings;
9    if (gtmSettings.include_classes === true) {
10      window[dl].push({
11        'gtm.allowlist': gtmSettings.allowlist_classes ?? [],
12        'gtm.blocklist': gtmSettings.blocklist_classes ?? [],
13      });
14    }
15
16    let gtm_environment = '';
17    if (gtmSettings.include_environment === true) {
18      const gtm_auth = gtmSettings.environment_token ?? '';
19      const gtm_preview =  gtmSettings.environment_id ?? '';
20      gtm_environment = '&gtm_auth=' + gtm_auth + '&gtm_preview=' + gtm_preview + '&gtm_cookies_win=x';
21    }
22    config.tagIds.forEach(function(tagId) {
23        const script = document.createElement('script')
24        script.async = true;
25        const dLink = dl!='dataLayer'?'&l='+dl:'';
26        script.src = 'https://www.googletagmanager.com/gtm.js?id=' + tagId + gtm_environment + dLink;
27        script.type = 'text/javascript'
28        document.getElementsByTagName('head')[0].appendChild(script);
29    });
30})(drupalSettings);

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.