diff --git a/scripts/build/antora_build_docs.sh b/scripts/build/antora_build_docs.sh index b5a12d813..54a1102da 100755 --- a/scripts/build/antora_build_docs.sh +++ b/scripts/build/antora_build_docs.sh @@ -4,8 +4,5 @@ echo "npm analysis antora_build" npm ls -g --depth=0 if [ "$PROD_SITE" = true ] then - # Enable google analytics in docs - antora --fetch --stacktrace --key google-analytics=G-PXYTWCYE18 src/main/content/docs/antora-playbook.yml - else antora --fetch --stacktrace src/main/content/docs/antora-playbook.yml fi diff --git a/scripts/build/jekyll.sh b/scripts/build/jekyll.sh index e388831ac..6aaed7dee 100755 --- a/scripts/build/jekyll.sh +++ b/scripts/build/jekyll.sh @@ -80,7 +80,7 @@ mkdir -p target/jekyll-webapp # Enable google analytics if ga is true if [ "$PROD_SITE" = true ] then - jekyll build --source src/main/content --config src/main/content/_config.yml,src/main/content/_google_analytics.yml --destination target/jekyll-webapp + jekyll build --source src/main/content --config src/main/content/_config.yml --destination target/jekyll-webapp else # Set the --future flag to show blogs with date timestamps in the future jekyll build --future --source src/main/content --config src/main/content/_config.yml --destination target/jekyll-webapp diff --git a/src/main/content/_google_analytics.yml b/src/main/content/_google_analytics.yml deleted file mode 100644 index fe71b0ee9..000000000 --- a/src/main/content/_google_analytics.yml +++ /dev/null @@ -1 +0,0 @@ -google_tag_manager: G-PXYTWCYE18 \ No newline at end of file diff --git a/src/main/content/_includes/google_tag_manager_head.html b/src/main/content/_includes/google_tag_manager_head.html deleted file mode 100644 index abefdaa6c..000000000 --- a/src/main/content/_includes/google_tag_manager_head.html +++ /dev/null @@ -1,7 +0,0 @@ - - diff --git a/src/main/content/_includes/head.html b/src/main/content/_includes/head.html index 957c382c7..8016304dc 100644 --- a/src/main/content/_includes/head.html +++ b/src/main/content/_includes/head.html @@ -56,10 +56,6 @@ {% css {{css_name}} %} {% endfor %} - {% if jekyll.environment == 'production' and site.google_tag_manager %} - {% include google_tag_manager_head.html %} - {% endif %} - diff --git a/src/main/content/antora_ui/src/partials/google_tag_manager_head.hbs b/src/main/content/antora_ui/src/partials/google_tag_manager_head.hbs deleted file mode 100644 index 594a2810e..000000000 --- a/src/main/content/antora_ui/src/partials/google_tag_manager_head.hbs +++ /dev/null @@ -1,7 +0,0 @@ - - \ No newline at end of file diff --git a/src/main/content/antora_ui/src/partials/head-scripts.hbs b/src/main/content/antora_ui/src/partials/head-scripts.hbs index 97a634fe9..af1d8c1e5 100644 --- a/src/main/content/antora_ui/src/partials/head-scripts.hbs +++ b/src/main/content/antora_ui/src/partials/head-scripts.hbs @@ -1,6 +1,3 @@ - {{#if site.keys.googleAnalytics }} - {{> google_tag_manager_head }} - {{/if}}