PageSourceSearch

https://www.sktime.org/files/_/static/javascript/readthedocs-analytics.js

js sktime.org collected 2026-10-03 23:44:04 UTC 1,999 bytes, 46 lines download raw bytes

1// For more details on analytics at Read the Docs, please see:
2// https://docs.readthedocs.io/en/stable/advertising/advertising-details.html#analytics
3
4
5// Skip analytics for users with Do Not Track enabled
6if (navigator.doNotTrack === '1') {
7    console.debug('Respecting DNT with respect to analytics...');
8} else {
9    if (typeof READTHEDOCS_DATA !== 'undefined' && READTHEDOCS_DATA.global_analytics_code) {
10        (function () {
11            // New Google Site Tag (gtag.js) tagging/analytics framework
12            // https://developers.google.com/gtagjs
13            var script = document.createElement("script");
14            script.src = "https://www.googletagmanager.com/gtag/js?id=" + READTHEDOCS_DATA.global_analytics_code;
15            script.type = "text/javascript";
16            script.async = true;
17            document.getElementsByTagName("head")[0].appendChild(script);
18        }())
19
20        window.dataLayer = window.dataLayer || [];
21        function gtag(){dataLayer.push(arguments);}
22        gtag('js', new Date());
23
24        // Setup the RTD global analytics code and send a pageview
25        gtag('config', READTHEDOCS_DATA.global_analytics_code, {
26            'anonymize_ip': true,
27            'cookie_expires': 0,  // Session cookie (non-persistent)
28            'dimension1': READTHEDOCS_DATA.project,
29            'dimension2': READTHEDOCS_DATA.version,
30            'dimension3': READTHEDOCS_DATA.language,
31            'dimension4': READTHEDOCS_DATA.theme,
32            'dimension5': READTHEDOCS_DATA.programming_language,
33            'dimension6': READTHEDOCS_DATA.builder,
34            'groups': 'rtfd'
35        });
36
37        // Setup the project (user) analytics code and send a pageview
38        if (READTHEDOCS_DATA.user_analytics_code) {
39            gtag('config', READTHEDOCS_DATA.user_analytics_code, {
40                'anonymize_ip': true,
41                'cookie_expires': 0,  // Session cookie (non-persistent)
42            });
43        }
44    }
45    // end RTD Analytics Code
46}

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.