PageSourceSearch

https://www.ncpc.org.sg/assets/js/google-tag.js

js ncpc.org.sg collected 2026-09-25 23:57:19 UTC 753 bytes, 30 lines download raw bytes

1// We use layout:blank to make use of jekyll config params
2// Imported script so it isn't blocked by our CSP
3const perfObserver = new PerformanceObserver((observedEntries) => {
4  const entry =
5    observedEntries.getEntriesByType('navigation')[0]
6  window.dataLayer.push({ 
7    event: 'performance',
8    entryType: entry.entryType,
9    pageLoadTime: Math.round(entry.duration / 100) / 10, 
10  })
11})
12
13perfObserver.observe({
14  type: 'navigation',
15  buffered: true
16})
17
18window.dataLayer = window.dataLayer || [];
19function gtag(){
20  window.dataLayer.push(arguments);
21}
22gtag('js', new Date());
23
24// Set Isomer's ga tag
25gtag('config', 'G-3RT85MXN6L');
26
27// Set site specific ga tag
28if ('G-SCWFGH5DZK' && 'G-SCWFGH5DZK' != "") {
29  gtag('config', 'G-SCWFGH5DZK');
30}

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.