Skip to content

Commit

Permalink
chore(config): remove google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsneighbour committed Sep 28, 2024
1 parent 696d42e commit 9ae2b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
7 changes: 2 additions & 5 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,17 @@ script-src = [
"'unsafe-eval'",
"'unsafe-inline'",
"'wasm-unsafe-eval'",
#"'strict-dynamic'",
"https://d33wubrfki0l68.cloudfront.net",
"https://giscus.app/",
'https://unpkg.com',
"https://identity.netlify.com",
#"'nonce-dnb-components-sw'",
"static.cloudflareinsights.com",
"www.googletagmanager.com/gtag/js",
'https://analytics.dnbhub.xyz/',
]
style-src = ["'self'", "'unsafe-inline'", "https://d33wubrfki0l68.cloudfront.net", "https://giscus.app/"]
img-src = ["'self'", 'https://analytics.dnbhub.xyz/', "https://d33wubrfki0l68.cloudfront.net", "data:", "https://i.ytimg.com", "*.googletagmanager.com"]
img-src = ["'self'", 'https://analytics.dnbhub.xyz/', "https://d33wubrfki0l68.cloudfront.net", "data:", "https://i.ytimg.com"]
font-src = ["'self'", "https://d33wubrfki0l68.cloudfront.net"]
connect-src = ["'self'", 'https://analytics.dnbhub.xyz/', "https://api.github.com/", 'cloudflareinsights.com', "*.google-analytics.com", "region1.google-analytics.com"]
connect-src = ["'self'", 'https://analytics.dnbhub.xyz/', "https://api.github.com/", 'cloudflareinsights.com']
media-src = ["'self'"]
object-src = ["'none'"]
child-src = ["'self'"]
Expand Down
13 changes: 0 additions & 13 deletions layouts/partials/hooks/body-end.html
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
<click-effect style="--click-spark-color: #ff4359;"></click-effect>

{{- /* @todo move into configuration and proper setup */ -}}
{{- if not hugo.IsServer -}}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J35Y2G8WDZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-J35Y2G8WDZ');
</script>
{{- end -}}

0 comments on commit 9ae2b82

Please sign in to comment.