From 15b3e87bd1488dadcec847f8f2f172e433156694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 20 Jan 2021 17:30:11 +0100 Subject: [PATCH] Renaming TRACKING_NUMBER to GA_TRACKING_ID --- front/templater.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/templater.sh b/front/templater.sh index aa6534b3..e63617c5 100755 --- a/front/templater.sh +++ b/front/templater.sh @@ -15,10 +15,10 @@ if [[ "${INSERT_ANALYTICS:-NO}" == "NO" ]]; then echo "" > "${tmp_trackcodefile}" fi -# Automatically insert analytics if TRACKING_NUMBER is set -if [[ "${TRACKING_NUMBER:-}" != "" || "${INSERT_ANALYTICS:-NO}" != "NO" ]]; then +# Automatically insert analytics if GA_TRACKING_ID is set +if [[ "${GA_TRACKING_ID:-}" != "" || "${INSERT_ANALYTICS:-NO}" != "NO" ]]; then echo "Templating code from ${ANALYTICS_CODE_PATH}" - sed "s##${TRACKING_NUMBER:-}#g" "${ANALYTICS_CODE_PATH}" > "$tmp_trackcodefile" + sed "s##${GA_TRACKING_ID:-}#g" "${ANALYTICS_CODE_PATH}" > "$tmp_trackcodefile" fi echo "Templating ${generated_file_index} from ${template_file_index}"