Added umami analytics to HTML template.

This commit is contained in:
DebaucheryLibrarian 2024-06-06 02:58:35 +02:00
parent 408821e0bc
commit 6aa3b0e7f6
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ async function onRenderHtml(pageContext) {
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,interactive-widget=resizes-content" /> <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,interactive-widget=resizes-content" />
<meta name="description" content="${desc}" /> <meta name="description" content="${desc}" />
${config.analytics.enabled ? dangerouslySkipEscape(`<script src="${config.analytics.address}" data-website-id="${config.analytics.siteId}" async></script>`) : ''}
<title>${title}</title> <title>${title}</title>
</head> </head>
<body> <body>