PageSourceSearch

https://www.tomsguide.com/shop-assets/sourcepoint-config.js

js tomsguide.com collected 2026-09-24 08:24:39 UTC 2,020 bytes, 45 lines download raw bytes

1/* Sourcepoint CMP config - loaded before wrapper so _sp_ is always defined */
2window._sp_queue = window._sp_queue || [];
3window._sp_ = window._sp_ || {};
4window._sp_.config = window._sp_.config || {};
5/* Merge full config so stub is not overwritten if stub ran first */
6(function () {
7  const hostname = window.location.hostname.toLowerCase();
8  const pathname = window.location.pathname;
9  const siteParam = new URLSearchParams(window.location.search).get('site');
10  const isGoCompare =
11    hostname === 'gocompare.com' ||
12    hostname === 'www.gocompare.com' ||
13    hostname === 'dev-gocompare.com' ||
14    hostname === 'www.dev-gocompare.com' ||
15    pathname === '/living' ||
16    pathname.indexOf('/living/') === 0 ||
17    siteParam === 'gocompare';
18
19  const sourcepointConfig = {
20    accountId: 200,
21    baseEndpoint: 'https://cdn.privacy-mgmt.com',
22    gdpr: {},
23    events: {
24      onMessageReady: function () { console.log('[event] onMessageReady', arguments); },
25      onMessageReceiveData: function () { console.log('[event] onMessageReceiveData', arguments); },
26      onSPReady: function () { console.log('[event] onSPReady', arguments); },
27      onError: function () { console.log('[event] onError', arguments); },
28      onMessageChoiceSelect: function () { console.log('[event] onMessageChoiceSelect', arguments); },
29      onConsentReady: function () { console.log('[event] onConsentReady', arguments); },
30      onPrivacyManagerAction: function () { console.log('[event] onPrivacyManagerAction', arguments); },
31      onPMCancel: function () { console.log('[event] onPMCancel', arguments); }
32    }
33  };
34
35  if (!isGoCompare) {
36    sourcepointConfig.ccpa = {};
37    sourcepointConfig.usnat = {};
38  }
39
40  Object.assign(window._sp_, {
41    config: Object.assign(window._sp_.config, sourcepointConfig)
42  });
43})();
44/* Allow wrapper to attach updateGoogleConsentMode (avoids "cannot create updateGoogleConsentMode" warning) */
45window._sp_.updateGoogleConsentMode = window._sp_.updateGoogleConsentMode || function () {};

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.