diff options
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/git/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nixos/git/default.nix b/modules/nixos/git/default.nix index 5fe4391..9fb43db 100644 --- a/modules/nixos/git/default.nix +++ b/modules/nixos/git/default.nix @@ -73,9 +73,9 @@ in { fastcgi_param QUERY_STRING $args; fastcgi_param HTTP_HOST $server_name; - # This makes `go get ...` work. + # This makes `go get ...` work and adds analytics. sub_filter '</head>' - '<meta name="go-import" content="$host$uri git https://$host$uri"></head>'; + '<meta name="go-import" content="$host$uri git https://$host$uri"><script defer data-domain="${cfg.server.domain}" src="https://plausible.shire.net/js/script.js"></script></head>'; sub_filter_once on; ''; "~* ^.+(cgit.css|robots.txt)$".extraConfig = '' |