Skip to content

Commit fc05fbc

Browse files
SnugugSam Richard
andauthored
🐛(site) Fix consent banner not rendering (#766)
Fix consent banner render Co-authored-by: Sam Richard <samrichard@google.com>
1 parent 98e81ee commit fc05fbc

2 files changed

Lines changed: 15 additions & 18 deletions

File tree

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
---
2-
import CookieConsent from '$components/CookieConsent.svelte';
3-
---
1+
<!-- Cookie Consent Banner -->
2+
<script
3+
src="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.js"
4+
data-glue-cookie-notification-bar-category="2A"
5+
data-glue-cookie-notification-bar-site-id="chromeos.dev"
6+
defer></script>
47

5-
<CookieConsent client:load />
8+
<link
9+
href="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.css"
10+
rel="stylesheet"
11+
/>
12+
<!-- End Cookie Consent Banner -->
613

714
<!-- Google Tag Manager -->
815
<script>
@@ -11,11 +18,11 @@ import CookieConsent from '$components/CookieConsent.svelte';
1118
</script>
1219
<!-- End Google Tag Manager -->
1320
<!-- Google Tag Manager (noscript) -->
14-
<noscript
15-
><iframe
21+
<noscript>
22+
<iframe
1623
src="https://www.googletagmanager.com/ns.html?id=GTM-P2W8H6G"
1724
height="0"
1825
width="0"
19-
style="display: none; visibility: hidden;"></iframe></noscript
20-
>
26+
style="display: none; visibility: hidden;"></iframe>
27+
</noscript>
2128
<!-- End Google Tag Manager (noscript) -->

site/src/components/CookieConsent.svelte

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)