diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aa1fec0ed82e1a2e42ed5ac95b2e0cdec76ba178..9f52d17ce9952846c2bde241677c29408bfd749b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,7 @@ variables:
   MINDMAP_OUT_PATH: ./layouts/shortcodes/mindmap.html
   MINDMAP_IN_PATH: ./mindmap_gen/mindmap.md
   MINDMAP_SCRIPT_PATH: ./mindmap_gen/mindmap_gen.py
+  HUGO_ENV: production
 
 .job_templae: &script
   before_script:
@@ -19,7 +20,7 @@ variables:
   - python3 $MINDMAP_SCRIPT_PATH -d $(pwd)/content                # Generate the mindmap md file
   - npx markmap-cli -o $MINDMAP_OUT_PATH $MINDMAP_IN_PATH         # Convert mindmap md file to html
   - sed -i 's/100v/60v/g' $(pwd)/layouts/shortcodes/mindmap.html  # Replaces the width and hight of mindmap with suitable values
-  - hugo --minify --gc
+  - hugo --minify --gc --environment production
 
 test:
   <<: *script
diff --git a/config.toml b/config.toml
index 6187881457451115f792ddeabb6cdaa3bc975fed..9705a2c92d5eb1002ec37ec1aca58373223ba8cb 100644
--- a/config.toml
+++ b/config.toml
@@ -52,6 +52,10 @@ anchor = "smart"
       # Uncomment if you want your chosen highlight style used for code blocks without a specified language
       # guessSyntax = "true"
 
+# Google Analytics Settings
+# Requires adding env to build: HUGO_ENV="production" hugo
+[services.googleAnalytics]
+id = "UA-202391736-1"
 
 [params]
 copyright = "Darmstadt University of Applied Sciences"