PageSourceSearch

https://www.grenke.co.uk/webfiles/1789554250756/js/inline-scripts/piwik/piwik.js

js grenke.co.uk collected 2026-10-07 05:56:24 UTC 1,948 bytes, 55 lines download raw bytes

1(function (window, document, script, dataLayer) {
2  function stgCreateCookie (a, b, c) {
3    var d = ''
4    if (c) {
5      var e = new Date()
6      e.setTime(e.getTime() + 24 * c * 60 * 60 * 1e3), (d = '; expires=' + e.toUTCString())
7    }
8    document.cookie = a + '=' + b + d + ';path=/;SameSite=Lax'
9  }
10
11  let currentScript = document.getElementById('piwik-loader-script')
12  let id = currentScript.getAttribute('data-piwikid') ?? 'notfound'
13  let nonce = currentScript.getAttribute('data-nonce') ?? ''
14
15  var isStgDebug =
16    (window.location.href.match('stg_debug') || window.document.cookie.match('stg_debug')) &&
17    !window.location.href.match('stg_disable_debug')
18  stgCreateCookie('stg_debug', isStgDebug ? 1 : '', isStgDebug ? 14 : -1);
19  (window[dataLayer] = window[dataLayer] || []),
20    window[dataLayer].push({
21      start: new Date().getTime(),
22      event: 'stg.start',
23    })
24  var scripts = document.getElementsByTagName(script)[0],
25    tags = document.createElement(script),
26    dl = 'dataLayer' != dataLayer ? '?dataLayer=' + dataLayer : '';
27  (tags.async = !0);
28  (tags.src = 'https://grenke.containers.piwik.pro/' + id + '.js' + dl);
29  isStgDebug && (tags.src = tags.src + '?stg_debug');
30
31  if (nonce) {
32    tags.nonce = nonce;
33  }
34  
35  scripts.parentNode.insertBefore(tags, scripts)
36  !(function (a, n, i, t) {
37    a[n] = a[n] || {}
38    for (var c = 0; c < i.length; c++)
39      !(function (i) {
40        (a[n][i] = a[n][i] || {}),
41          (a[n][i].api =
42            a[n][i].api ||
43            function () {
44              var a = [].slice.call(arguments, 0),
45                t = a
46              'string' == typeof a[0] &&
47              (t = {
48                event: n + '.' + i + ':' + a[0],
49                parameters: [].slice.call(arguments, 1),
50              }),
51                window[dataLayer].push(t)
52            })
53      })(i[c])
54  })(window, 'ppms', ['tm', 'cp', 'cm'])
55})(window, document, 'script', 'dataLayer')

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.