Add GDPR cookie-consent banner (Consent Mode v2)
- consent.js: self-contained, non-blocking bottom banner in EN/MK/SI, remembers the choice in localStorage, links to the per-language cookie policy. Accept -> gtag consent 'update' granted; Decline stays denied. - Head GA snippet restores a returning visitor's prior "granted" choice before the first hit; loads /consent.js on every page. - Re-openable via window.msosOpenConsent() for a "manage cookies" link. Verified in-browser: shows for new visitors, Accept grants + remembers, reload keeps consent without re-prompting, Slovene text + /si/ policy link. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9a6d2c335c
commit
f24fc704d6
203 files changed
+1100
No files matched your search
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Започнете со штрукљи, јота, жликрофи, фрика, бограч и потица. Заедно тие покажуваат кујна обликувана од региони, а не од едно фиксно мени.">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/a-first-taste-of-slovenian-food/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/a-first-taste-of-slovenian-food/">
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Словенија можеби е мала на картата, но меѓу Алпите, Јадранското Море, зелените реки, старите градови и мирните места има многу што да се открие. Преку овие…">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/">
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Островот е сликата што сите ја знаат. Вистинскиот карактер на Блед се појавува кога ќе го обиколиме езерото и ќе дозволиме погледот постојано да се менува.">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/lake-bled-beyond-the-famous-view/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/lake-bled-beyond-the-famous-view/">
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Не целосен водич низ градот, туку збирка од места и навики преку кои многумина од нас почнаа да се чувствуваат како дома.">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/ljubljana-through-our-eyes/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/ljubljana-through-our-eyes/">
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Не правила што го опишуваат секој човек, туку мали обрасци што многумина од нас ги забележаа додека го учеа секојдневниот ритам.">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/slovenian-habits-that-may-surprise-you/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/slovenian-habits-that-may-surprise-you/">
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Наследството не е само замок или музеј. Може да биде мост што се користи секој ден, река што исчезнува под земја, рударски град обликуван од жива или знаење…">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/slovenias-stories-in-stone-and-tradition/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/slovenias-stories-in-stone-and-tradition/">
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied',
|
||||
analytics_storage: 'denied', wait_for_update: 500
|
||||
});
|
||||
// Restore a returning visitor's prior choice before the first hit.
|
||||
try { if (localStorage.getItem('msos-consent') === 'granted') {
|
||||
gtag('consent', 'update', { ad_storage:'granted', ad_user_data:'granted',
|
||||
ad_personalization:'granted', analytics_storage:'granted' }); } } catch(e){}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-WVYV807VSS');
|
||||
</script>
|
||||
<script src="/consent.js" defer></script>
|
||||
<meta name="description" content="Мала земја со многу различни предели, тивки откритија и места што полека почнуваат да се чувствуваат како дом.">
|
||||
<link rel="canonical" href="https://msosorg.com/mk/get-to-know-slovenia/welcome-to-slovenia/">
|
||||
<link rel="alternate" hreflang="en" href="https://msosorg.com/en/get-to-know-slovenia/welcome-to-slovenia/">
|
||||
|
||||
Reference in new issue
Block a user