PageSourceSearch

https://aiven.io/docs/page_scripts/snowplow.js

js aiven.io collected 2026-09-24 08:42:29 UTC 1,341 bytes, 50 lines download raw bytes

1(function (p, l, o, w, i, n, g) {
2  if (!p[i]) {
3    p.GlobalSnowplowNamespace = p.GlobalSnowplowNamespace || [];
4    p.GlobalSnowplowNamespace.push(i);
5    p[i] = function () {
6      (p[i].q = p[i].q || []).push(arguments);
7    };
8    p[i].q = p[i].q || [];
9    n = l.createElement(o);
10    g = l.getElementsByTagName(o)[0];
11    n.async = 1;
12    n.src = w;
13    g.parentNode.insertBefore(n, g);
14  }
15})(
16  window,
17  document,
18  'script',
19  'https://storage.googleapis.com/aiven-dw-prod-snowplow-tracker/3.4.0/gh7rnaha.js',
20  'snowplow',
21);
22
23snowplow('newTracker', 'at', 'dc.aiven.io', {
24  appId: 'docs',
25  platform: 'web',
26  forceSecureTracker: true,
27  discoverRootDomain: true,
28  cookieSameSite: 'Lax',
29  anonymousTracking: {withSessionTracking: true, withServerAnonymisation: true},
30  stateStorageStrategy: 'cookieAndLocalStorage',
31  eventMethod: 'post',
32  postPath: '/aiven/dc2',
33  contexts: {
34    webPage: true,
35  },
36});
37
38// Must be called before snowplow('trackPageView')
39snowplow('enableActivityTracking', {
40  minimumVisitLength: 10,
41  heartbeatDelay: 10,
42});
43
44snowplow(
45  'addPlugin',
46  'https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-link-click-tracking@latest/dist/index.umd.min.js',
47  ['snowplowLinkClickTracking', 'LinkClickTrackingPlugin'],
48);
49
50snowplow('enableLinkClickTracking', {pseudoClicks: true, trackContent: true});

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.