Skip to content

Commit 87c21bf

Browse files
committed
add ga in docusaurus.config
1 parent 7bf85d6 commit 87c21bf

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docusaurus/docusaurus.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ const config = {
1414
baseUrl: '/',
1515
onBrokenLinks: 'warn',
1616
onBrokenMarkdownLinks: 'warn',
17+
headTags: [
18+
{
19+
tagName: 'script',
20+
attributes: {},
21+
innerHTML: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'//metrics.couchbase.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-MVPNN2');`,
26+
},
27+
],
1728
favicon: 'img/favicon.ico',
1829

1930
// GitHub pages deployment config.

0 commit comments

Comments
 (0)