GA changes to allow functionality with strict CSP
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-01-31 21:50:34 -03:00
parent b58077d6e3
commit c0f812a155
3 changed files with 12 additions and 9 deletions

View File

@@ -10,7 +10,8 @@ services:
pull_policy: always
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/"]
test:
["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/"]
interval: 30s
timeout: 3s
start_period: 5s
@@ -20,7 +21,7 @@ services:
- "traefik.docker.network=marina-net"
- "traefik.http.routers.mifiventures.rule=Host(`mifi.ventures`) || Host(`www.mifi.ventures`)"
- "traefik.http.routers.mifiventures.entrypoints=websecure"
- "traefik.http.routers.mifiventures.middlewares=secure-all@file,redirect-www-to-non-www@file"
- "traefik.http.routers.mifiventures.middlewares=security-supermax-with-analytics@file,redirect-www-to-non-www@file"
- "traefik.http.routers.mifiventures.tls=true"
- "traefik.http.routers.mifiventures.tls.certresolver=letsencrypt"
networks:

View File

@@ -0,0 +1,8 @@
window.dataLayer = window.dataLayer || [];
function gtag(){ window.dataLayer.push(arguments); }
gtag("js", new Date());
gtag("config", "G-36F29PDKRT", {
// optional, but often helpful:
anonymize_ip: true,
});

View File

@@ -3,13 +3,7 @@
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-36F29PDKRT"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-36F29PDKRT');
</script>
<script src="/assets/js/ga-init.js"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />