PageSourceSearch

https://bezdroza.pl/assets/js/cookieconsent-config.js

js bezdroza.pl collected 2026-09-25 23:50:30 UTC 9,197 bytes, 213 lines download raw bytes

1import '../js/cookieconsent.umd.js';
2
3const CAT_NECESSARY = "necessary";
4const CAT_ANALYTICS = "statistics";
5const CAT_ADVERTISEMENT = "marketing";
6const CAT_FUNCTIONALITY = "preference";
7const CAT_SECURITY = "security";
8
9const SERVICE_AD_STORAGE = 'ad_storage'
10const SERVICE_AD_USER_DATA = 'ad_user_data'
11const SERVICE_AD_PERSONALIZATION = 'ad_personalization'
12const SERVICE_ANALYTICS_STORAGE = 'analytics_storage'
13const SERVICE_FUNCTIONALITY_STORAGE = 'functionality_storage'
14const SERVICE_PERSONALIZATION_STORAGE = 'personalization_storage'
15const SERVICE_SECURITY_STORAGE = 'security_storage'
16
17// Set default consent to 'denied' (this should happen before changing any other dataLayer)
18
19gtag('consent', 'default', {
20    [SERVICE_AD_STORAGE]: 'denied',
21    [SERVICE_AD_USER_DATA]: 'denied',
22    [SERVICE_AD_PERSONALIZATION]: 'denied',
23    [SERVICE_ANALYTICS_STORAGE]: 'denied',
24    [SERVICE_FUNCTIONALITY_STORAGE]: 'denied',
25    [SERVICE_PERSONALIZATION_STORAGE]: 'denied',
26    [SERVICE_SECURITY_STORAGE]: 'denied',
27});
28
29/** 
30 * Update gtag consent according to the users choices made in CookieConsent UI
31 */
32function updateGtagConsent() {
33    gtag('consent', 'update', {
34        [SERVICE_ANALYTICS_STORAGE]: CookieConsent.acceptedCategory(CAT_ANALYTICS) ? 'granted' : 'denied',
35        [SERVICE_AD_STORAGE]: CookieConsent.acceptedCategory(CAT_ADVERTISEMENT) ? 'granted' : 'denied',
36        [SERVICE_AD_USER_DATA]: CookieConsent.acceptedCategory(CAT_ADVERTISEMENT) ? 'granted' : 'denied',
37        [SERVICE_AD_PERSONALIZATION]: CookieConsent.acceptedCategory(CAT_ADVERTISEMENT) ? 'granted' : 'denied',
38        [SERVICE_FUNCTIONALITY_STORAGE]: CookieConsent.acceptedCategory(CAT_FUNCTIONALITY) ? 'granted' : 'denied',
39        [SERVICE_PERSONALIZATION_STORAGE]: CookieConsent.acceptedCategory(CAT_FUNCTIONALITY) ? 'granted' : 'denied',
40        [SERVICE_SECURITY_STORAGE]: CookieConsent.acceptedCategory(CAT_SECURITY) ? 'granted' : 'denied',
41    });
42    
43}
44
45/**
46 * All config. options available here:
47 * https://cookieconsent.orestbida.com/reference/configuration-reference.html
48 */
49
50CookieConsent.run({
51
52    // Trigger consent update when user choices change
53    onFirstConsent: () => {
54        updateGtagConsent();
55    },
56    onConsent: () => {
57        updateGtagConsent();
58    },
59    onChange: () => {
60        updateGtagConsent();
61    },
62
63    categories: {
64        [CAT_NECESSARY]: {
65            enabled: true,  
66            readOnly: true 
67        },
68        [CAT_FUNCTIONALITY]: {
69            enabled: true,
70            readOnly: false
71        },
72        [CAT_ADVERTISEMENT]: {
73            enabled: true,
74            readOnly: false
75        },
76        [CAT_ANALYTICS]: {
77            
78            autoClear: {
79                cookies: [
80                    {
81                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
82                        domain: 'sensus.pl',
83                    },
84                    {
85                        name: '_gid',   // string: exact cookie name
86                        domain: 'sensus.pl',
87                    },
88                    {
89                        name: /^_ga/,
90                        domain: 'onepress.pl',
91                    },
92                    {
93                        name: '_gid',
94                        domain: 'onepress.pl',
95                    },
96                     {
97                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
98                        domain: 'dlabystrzakow.pl',
99                    },
100                    {
101                        name: '_gid',   // string: exact cookie name
102                        domain: 'dlabystrzakow.pl',
103                    },
104                    {
105                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
106                        domain: 'bezdroza.pl',
107                    },
108                    {
109                        name: '_gid',   // string: exact cookie name
110                        domain: 'bezdroza.pl',
111                    },
112                    {
113                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
114                        domain: 'editio.pl',
115                    },
116                    {
117                        name: '_gid',   // string: exact cookie name
118                        domain: 'editio.pl',
119                    },
120                    {
121                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
122                        domain: 'helion.pl',
123                    },
124                    {
125                        name: '_gid',   // string: exact cookie name
126                        domain: 'helion.pl',
127                    },
128                    {
129                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
130                        domain: 'videopoint.pl',
131                    },
132                    {
133                        name: '_gid',   // string: exact cookie name
134                        domain: 'videopoint.pl',
135                    },
136                    {
137                        name: /^_ga/,   // regex: match all cookies starting with '_ga'
138                        domain: 'ebookpoint.pl',
139                    },
140                    {
141                        name: '_gid',   // string: exact cookie name
142                        domain: 'ebookpoint.pl',
143                    }
144                ],
145                reloadPage: true
146            },
147            
148            enabled: true,
149            readOnly: false
150        },
151        [CAT_SECURITY]: {
152            enabled: true,
153            readOnly: false
154        },
155        unclasified: {
156            enabled: true,
157            readOnly: false
158        },
159        ignore: {
160            enabled: true,
161            readOnly: true
162        }
163    },
164
165    language: {
166        default: 'pl',
167        translations: {
168            pl: {
169                consentModal: {
170                    title: 'Niniejsza strona korzysta z plików cookie',
171                    description: 'Wykorzystujemy pliki cookie do spersonalizowania treści i reklam, aby oferować funkcje społecznościowe i analizować ruch w naszej witrynie. Informacje o tym, jak korzystasz z naszej witryny, udostępniamy partnerom społecznościowym, reklamowym i analitycznym. Partnerzy mogą połączyć te informacje z innymi danymi otrzymanymi od Ciebie lub uzyskanymi podczas korzystania z ich usług.',
172                    acceptAllBtn: 'Zezwól na wszystkie',
173                    acceptNecessaryBtn: 'Odmowa',
174                    showPreferencesBtn: 'Spersonalizuj'
175                },
176                preferencesModal: {
177                    title: 'Zarządzaj preferencjami cookie',
178                    acceptAllBtn: 'Zezwól na wszystkie',
179                    acceptNecessaryBtn: 'Odrzuć wszystkie',
180                    savePreferencesBtn: 'Akceptuj zaznaczone',
181                    closeIconLabel: 'Zamknij',
182                    sections: [
183                        {
184                            title: 'Niezbędne',
185                            description: 'Niezbędne pliki cookie przyczyniają się do użyteczności strony poprzez umożliwianie podstawowych funkcji takich jak nawigacja na stronie i dostęp do bezpiecznych obszarów strony internetowej. Strona internetowa nie może funkcjonować poprawnie bez tych ciasteczek.',
186                            linkedCategory: CAT_NECESSARY
187                        },
188                        {
189                            title: 'Preferencje',
190                            description: 'Pliki cookie dotyczące preferencji umożliwiają stronie zapamiętanie informacji, które zmieniają wygląd lub funkcjonowanie strony, np. preferowany język lub region, w którym znajduje się użytkownik.',
191                            linkedCategory: CAT_FUNCTIONALITY
192                        },
193                        {
194                            title: 'Marketing',
195                            description: 'Marketingowe pliki cookie stosowane są w celu śledzenia użytkowników na stronach internetowych. Celem jest wyświetlanie reklam, które są istotne i interesujące dla poszczególnych użytkowników i tym samym bardziej cenne dla wydawców i reklamodawców strony trzeciej.',
196                            linkedCategory: CAT_ADVERTISEMENT
197                        },
198                        {
199                            title: 'Analityka',
200                            description: 'Analityczne pliki cookie stosowane są w celu zmierzenia ilości wizyt i zebrania informacji o źródłach ruchu. Celem jest zdobycie informacji które strony są najbardziej popularne lub jak odwiedzający poruszają się po witrynie.',
201                            linkedCategory: CAT_ANALYTICS
202                        },
203                        {
204                            title: 'Niesklasyfikowane',
205                            description: 'Nieklasyfikowane pliki cookie, to pliki, które są w procesie klasyfikowania, wraz z dostawcami poszczególnych ciasteczek.',
206                            linkedCategory: 'unclasified'
207                        }
208                    ]
209                }
210            }
211        }
212    }
213});

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.