You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/04/15 03:25:42 UTC
[apisix-website] branch master updated: fix: use correct gtag configuration (#1033)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new a9dc50fc154 fix: use correct gtag configuration (#1033)
a9dc50fc154 is described below
commit a9dc50fc154bc55d9b34343fa17327a1cd5ed8e3
Author: 琚致远 <ju...@apache.org>
AuthorDate: Fri Apr 15 11:25:38 2022 +0800
fix: use correct gtag configuration (#1033)
---
website/config/ssrTemplate.js | 6 ------
website/docusaurus.config.js | 6 +++---
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/website/config/ssrTemplate.js b/website/config/ssrTemplate.js
index 25ef282802e..86dba3b46e6 100644
--- a/website/config/ssrTemplate.js
+++ b/website/config/ssrTemplate.js
@@ -5,11 +5,6 @@ module.exports = {
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Docusaurus v<%= it.version %>">
-<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
-new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
-j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
-'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
-})(window,document,'script','dataLayer','GTM-K24PRPS');</script>
<% if (it.noIndex) { %>
<meta name="robots" content="noindex, nofollow" />
<% } %>
@@ -25,7 +20,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<% }); %>
</head>
<body <%~ it.bodyAttributes %>>
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K24PRPS" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<%~ it.preBodyTags %>
<div id="__docusaurus">
<%~ it.appHtml %>
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index f1494236b44..632c275a63f 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -89,9 +89,6 @@ module.exports = {
pages: {
exclude: ['**/downloads/ProjectCard.js'],
},
- gtag: {
- trackingID: 'G-WQLBQL6GY3',
- },
},
],
],
@@ -430,6 +427,9 @@ module.exports = {
content: 'summary',
},
],
+ gtag: {
+ trackingID: 'GTM-K24PRPS',
+ },
},
stylesheets: [
'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap',