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/03/08 07:02:19 UTC

[apisix-website] branch master updated: feat: support tag manager (#949)

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 cbb13a4  feat: support tag manager (#949)
cbb13a4 is described below

commit cbb13a4e9fe79cceb18ba589bdf58486f68a25cf
Author: 琚致远 <ju...@apache.org>
AuthorDate: Tue Mar 8 15:02:01 2022 +0800

    feat: support tag manager (#949)
---
 website/config/ssrTemplate.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/website/config/ssrTemplate.js b/website/config/ssrTemplate.js
index b3c1361..d089a15 100644
--- a/website/config/ssrTemplate.js
+++ b/website/config/ssrTemplate.js
@@ -7,6 +7,11 @@ 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" />
       <% } %>
@@ -22,6 +27,7 @@ module.exports = {
       <% }); %>
     </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 %>