Skip to content

Commit d91f190

Browse files
prajwal-pai77azaddhirajkumar
authored andcommitted
undo change and add gtag
1 parent 2ef63ac commit d91f190

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

docusaurus/docusaurus.config.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@ 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-
],
2817
favicon: 'img/favicon.ico',
2918

3019
// GitHub pages deployment config.
@@ -55,6 +44,13 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5544
theme: {
5645
customCss: require.resolve('./src/css/custom.css'),
5746
},
47+
googleTagManager: {
48+
containerId: 'GTM-MVPNN2',
49+
},
50+
gtag: {
51+
trackingID: 'G-CVKKEY0D6B',
52+
anonymizeIP: true,
53+
},
5854
}),
5955
],
6056
],
@@ -153,4 +149,4 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
153149
],
154150
};
155151

156-
module.exports = config;
152+
module.exports = config;

0 commit comments

Comments
 (0)