From f855e7b24ccfaf75e8096d1097a7f57c606ceb34 Mon Sep 17 00:00:00 2001 From: Sergey Avramenko Date: Fri, 16 Feb 2024 11:55:56 +0200 Subject: [PATCH] analytics fix --- .github/workflows/update-gh-pages-branch.yml | 2 +- .template/partials/head.tmpl.partial | 52 +++----------------- 2 files changed, 9 insertions(+), 45 deletions(-) diff --git a/.github/workflows/update-gh-pages-branch.yml b/.github/workflows/update-gh-pages-branch.yml index c8394b1d4..974820cd1 100644 --- a/.github/workflows/update-gh-pages-branch.yml +++ b/.github/workflows/update-gh-pages-branch.yml @@ -20,7 +20,7 @@ jobs: run: Expand-Archive ../docfx.zip -DestinationPath ../docfx - name: Build site with docfx - run: "../docfx/docfx.exe build docfx.json --globalMetadata \"{ '_matomoContainerId': 'kE7MWPi0' }\" --warningsAsErrors" + run: "../docfx/docfx.exe build docfx.json --globalMetadata \"{ '_matomoContainerUrl': 'https://matomo.devexpress.com/js/container_kE7MWPi0.js' }\" --warningsAsErrors" - name: Archive site run: Compress-Archive -Path _site/* -DestinationPath ${{ runner.temp }}/site.zip diff --git a/.template/partials/head.tmpl.partial b/.template/partials/head.tmpl.partial index 4d742fe08..9ad30b1ec 100644 --- a/.template/partials/head.tmpl.partial +++ b/.template/partials/head.tmpl.partial @@ -7,15 +7,6 @@ - {{#_matomoContainerId}} - - - {{#_description}}{{/_description}} @@ -26,41 +17,14 @@ {{#_noindex}}{{/_noindex}} {{#_enableSearch}}{{/_enableSearch}} {{#_enableNewTab}}{{/_enableNewTab}} - - -{{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}} - - - - - {{/_matomoContainerId}} - {{#_googleAnalyticsTagId}} - + {{#_matomoContainerUrl}} + - {{/_googleAnalyticsTagId}} - {{#redirect_url}} - - {{/redirect_url}} - {{^redirect_url}} - - {{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}} - - - {{#_description}}{{/_description}} - {{#description}}{{/description}} - - - - - - - {{#_noindex}}{{/_noindex}} - {{#_enableSearch}}{{/_enableSearch}} - {{#_enableNewTab}}{{/_enableNewTab}} - {{/redirect_url}} + + {{/_matomoContainerUrl}}