Skip to content

Commit

Permalink
add goole tag manager (#3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Oct 30, 2024
1 parent 6939899 commit 9219903
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docSite/layouts/docs/baseof.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<!DOCTYPE html>
{{ $.Scratch.Delete "social_list" }}
{{ $.Scratch.Set "pathName" (printf "%s" (.Site.Params.docs.pathName | default "docs")) }}
<!-- Google Tag Manager -->
<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-W9HPZZ22');</script>
<!-- End Google Tag Manager -->
<!-- social_list -->
<!-- change -->
{{ $social_params := slice "github" "twitter" "instagram" "rss" "wechat" "lark" }}
Expand All @@ -12,6 +19,10 @@
<html lang="{{ site.LanguageCode }}">
{{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "head.html") . -}}
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W9HPZZ22"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="content">
<div class="page-wrapper toggled">
{{- partial (printf "%s/%s" ($.Scratch.Get "pathName") "sidebar.html") . -}}
Expand Down

0 comments on commit 9219903

Please sign in to comment.