feat: add google analytics

This commit is contained in:
Stevan Freeborn
2024-04-14 10:49:57 -05:00
parent 110c79a05e
commit 1c512e6875
7 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ function StartContainer {
$containerName = "blog.stevanfreeborn.com.$containerColor"
$postDirEnv = "FilePostServiceOptions__PostsDirectory=wwwroot/posts"
$containerId = docker run -d -p 8080 --name $containerName --env $postDirEnv $dockerTag
$googleTagEnv = "GoogleAnalyticsTag=$env:GOOGLE_ANALYTICS_TAG"
$containerId = docker run -d -p 8080 --name $containerName --env $postDirEnv --env $googleTagEnv $dockerTag
if ($LASTEXITCODE -ne 0)
{