From 4171edac1af1a55b79a6a47d8f0135134517f455 Mon Sep 17 00:00:00 2001 From: "sebastien.hattry" Date: Wed, 29 Nov 2023 11:29:01 +0000 Subject: [PATCH] Remove GA + Add Matomo --- .env-example | 3 + .vscode/settings.json | 3 +- wp-config.php | 3 + wp-content/themes/pole-sbv/footer.php | 271 ++++++++++++-------------- 4 files changed, 129 insertions(+), 151 deletions(-) diff --git a/.env-example b/.env-example index 48692652..d4173c2a 100644 --- a/.env-example +++ b/.env-example @@ -19,6 +19,9 @@ SMTP_USER=null SMTP_PASS=null SMTP_SECURE= +# Matomo +MATOMO_SITE_ID= + #RECAPTCHA RECAPTCHA_SITE= RECAPTCHA_KEY= diff --git a/.vscode/settings.json b/.vscode/settings.json index aba3872a..72ff9fdb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,7 +16,8 @@ "titleBar.activeBackground": "#c20b19", "titleBar.activeForeground": "#e7e7e7", "titleBar.inactiveBackground": "#c20b1999", - "titleBar.inactiveForeground": "#e7e7e799" + "titleBar.inactiveForeground": "#e7e7e799", + "commandCenter.border": "#e7e7e799" }, "peacock.remoteColor": "#C20B19" } diff --git a/wp-config.php b/wp-config.php index 95082a21..ff712074 100755 --- a/wp-config.php +++ b/wp-config.php @@ -160,6 +160,9 @@ define('CRM_PASSWORD', $_ENV['CRM_PASSWORD']); define('MESBR_REF_CAMP', $_ENV['MESBR_REF_CAMP']); define('MESBR_ENDPOINT', $_ENV['MESBR_ENDPOINT']); +/* Matomo analytics */ +define('MATOMO_SITE_ID', $_ENV['MATOMO_SITE_ID']); + /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ diff --git a/wp-content/themes/pole-sbv/footer.php b/wp-content/themes/pole-sbv/footer.php index 96f197bc..5c06f5c7 100644 --- a/wp-content/themes/pole-sbv/footer.php +++ b/wp-content/themes/pole-sbv/footer.php @@ -1,4 +1,5 @@