PageSourceSearch

https://www.crazyrocket.io/scripts/cookie-consent-config.js

js crazyrocket.io collected 2026-10-02 05:52:42 UTC 5,948 bytes, 132 lines download raw bytes

1/**
2 * CrazyRocket Cookie Consent Configuration
3 * Uses CookieConsent v3 by Orestbida (https://cookieconsent.orestbida.com/)
4 *
5 * Categories:
6 *   - necessary:  Always enabled (auth, CSRF, session, consent cookie)
7 *   - analytics:  Google Analytics, Hotjar
8 *   - marketing:  Facebook Pixel, Apollo.io
9 */
10CookieConsent.run({
11    revision: 1,
12
13    cookie: {
14        name: 'cc_cookie',
15        expiresAfterDays: 365
16    },
17
18    guiOptions: {
19        consentModal: {
20            layout: 'box',
21            position: 'bottom left'
22        },
23        preferencesModal: {
24            layout: 'box'
25        }
26    },
27
28    categories: {
29        necessary: {
30            enabled: true,
31            readOnly: true
32        },
33        analytics: {
34            enabled: false,
35            autoClear: {
36                cookies: [
37                    { name: /^_ga/ },
38                    { name: /^_gid/ },
39                    { name: /^_hj/ }
40                ]
41            }
42        },
43        marketing: {
44            enabled: false,
45            autoClear: {
46                cookies: [
47                    { name: /^_fb/ },
48                    { name: /^_fbc/ },
49                    { name: /^_fbp/ }
50                ]
51            }
52        }
53    },
54
55    onConsent: function () {
56        if (CookieConsent.acceptedCategory('analytics')) {
57            if (typeof window.startAnalytics === 'function') window.startAnalytics();
58            if (typeof window.optinHotJar === 'function') window.optinHotJar();
59        }
60        if (CookieConsent.acceptedCategory('marketing')) {
61            if (typeof window.FbOptIn === 'function') window.FbOptIn();
62            if (typeof window.initApollo === 'function') window.initApollo();
63        }
64    },
65
66    onChange: function ({ changedCategories }) {
67        if (changedCategories.length > 0) {
68            window.location.reload();
69        }
70    },
71
72    language: {
73        default: 'en',
74        translations: {
75            en: {
76                consentModal: {
77                    title: '🍪 We use cookies',
78                    description: 'We use cookies to ensure you get the best experience on our site. You can choose which categories to allow. <a href="/home/privacypolicy#cookies">Cookie Policy</a>',
79                    acceptAllBtn: 'Accept all',
80                    acceptNecessaryBtn: 'Reject all',
81                    showPreferencesBtn: 'Manage preferences'
82                },
83                preferencesModal: {
84                    title: 'Cookie Preferences',
85                    acceptAllBtn: 'Accept all',
86                    acceptNecessaryBtn: 'Reject all',
87                    savePreferencesBtn: 'Save preferences',
88                    sections: [
89                        {
90                            title: 'Strictly Necessary Cookies',
91                            description: 'These cookies are essential for the website to function and cannot be switched off. They include authentication, security tokens, and session management.',
92                            linkedCategory: 'necessary',
93                            cookieTable: {
94                                headers: { name: 'Name', description: 'Purpose', duration: 'Duration' },
95                                body: [
96                                    { name: '__RequestVerificationToken', description: 'CSRF protection', duration: 'Session' },
97                                    { name: '.AspNet.ApplicationCookie', description: 'Authentication', duration: 'Session' },
98                                    { name: 'ASP.NET_SessionId', description: 'Session state', duration: 'Session' },
99                                    { name: 'cc_cookie', description: 'Stores your cookie consent preferences', duration: '12 months' }
100                                ]
101                            }
102                        },
103                        {
104                            title: 'Analytics Cookies',
105                            description: 'These cookies help us understand how visitors interact with our website by collecting information in an aggregated form.',
106                            linkedCategory: 'analytics',
107                            cookieTable: {
108                                headers: { name: 'Provider', description: 'Purpose', duration: 'Privacy Policy' },
109                                body: [
110                                    { name: 'Google Analytics', description: 'Website usage analysis and traffic measurement', duration: '<a href="https://policies.google.com/privacy">policies.google.com/privacy</a>' },
111                                    { name: 'Hotjar', description: 'User experience analytics (heatmaps, session recordings)', duration: '<a href="https://www.hotjar.com/privacy">hotjar.com/privacy</a>' }
112                                ]
113                            }
114                        },
115                        {
116                            title: 'Marketing Cookies',
117                            description: 'These cookies are used for advertising measurement, retargeting, and sales engagement. They require your consent.',
118                            linkedCategory: 'marketing',
119                            cookieTable: {
120                                headers: { name: 'Provider', description: 'Purpose', duration: 'Privacy Policy' },
121                                body: [
122                                    { name: 'Meta (Facebook Pixel)', description: 'Conversion tracking, advertising measurement, retargeting', duration: '<a href="https://www.facebook.com/privacy/explanation">facebook.com/privacy</a>' },
123                                    { name: 'Apollo.io', description: 'Sales engagement and visitor identification', duration: '<a href="https://www.apollo.io/privacy">apollo.io/privacy</a>' }
124                                ]
125                            }
126                        }
127                    ]
128                }
129            }
130        }
131    }
132});

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.