From 24890c52744f722b07b08c03d6f4fc1d45de4d1d Mon Sep 17 00:00:00 2001 From: Fabian Rodriguez Date: Mon, 15 Jun 2026 12:10:18 +0200 Subject: [PATCH] feat: add adobe analytics --- app/_layouts/default.html | 8 ++++++++ app/_plugins/generators/environment_variables.rb | 1 + 2 files changed, 9 insertions(+) diff --git a/app/_layouts/default.html b/app/_layouts/default.html index 21c106f7ee..d24f52233b 100644 --- a/app/_layouts/default.html +++ b/app/_layouts/default.html @@ -210,6 +210,14 @@ {% endif %} {% endif %} + {% if site.ENABLE_ADOBE %} + {% if jekyll.environment == "production" %} + + {% elsif jekyll.environment == "preview" %} + + {% endif %} + {% endif %} + {% include structured_data.html %} {% vite_client_tag %} diff --git a/app/_plugins/generators/environment_variables.rb b/app/_plugins/generators/environment_variables.rb index 799266a8c8..b56a36bbc4 100644 --- a/app/_plugins/generators/environment_variables.rb +++ b/app/_plugins/generators/environment_variables.rb @@ -7,6 +7,7 @@ class EnvironmentVariablesGenerator < Generator def generate(site) site.config['git_branch'] = ENV['HEAD'] || 'main' site.config['ENABLE_KAPA_AI'] = ENV['ENABLE_KAPA_AI'] + site.config['ENABLE_ADOBE'] = ENV['ENABLE_ADOBE'] site.config['ENABLE_ALGOLIA'] = enable_algolia end