add google adsense

This commit is contained in:
celebrateyang 2024-10-19 17:16:07 +08:00
parent d34c56b5f4
commit 99b677e450
2 changed files with 14 additions and 5 deletions

View File

@ -27,7 +27,8 @@
gtag('config', 'G-9LGPCDJK2R');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7122886750315936"
crossorigin="anonymous"></script>
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/icons/apple-touch-icon.png">
<link type="application/activity+json" href="" />

View File

@ -65,7 +65,11 @@ const config = {
"self",
"challenges.cloudflare.com",
"www.googletagmanager.com",
"www.google-analytics.com"
"www.google-analytics.com",
"pagead2.googlesyndication.com",
"googleads.g.doubleclick.net",
"tpc.googlesyndication.com",
"www.google.com"
],
"script-src": [
@ -73,14 +77,18 @@ const config = {
"wasm-unsafe-eval",
"challenges.cloudflare.com",
"www.googletagmanager.com",
"www.google-analytics.com",
"pagead2.googlesyndication.com",
"googleads.g.doubleclick.net",
"tpc.googlesyndication.com",
"www.google.com",
// eslint-disable-next-line no-undef
process.env.WEB_PLAUSIBLE_HOST ? process.env.WEB_PLAUSIBLE_HOST : "",
// hash of the theme preloader in app.html
"sha256-g67gIjM3G8yMbjbxyc3QUoVsKhdxgcQzCmSKXiZZo6s=",
"sha256-oQHnOU77SR8E/F28VTyS5XSYOYZVgdVbOb/tEkoMvfs="
"sha256-oQHnOU77SR8E/F28VTyS5XSYOYZVgdVbOb/tEkoMvfs=",
"sha256-g470uH8o3FuThko7QqgqCsn3Ue7t+nDxAGnzyiI1LnY="
],
"frame-ancestors": ["none"]