Skip to content

Commit 2f0021b

Browse files
authored
docs: add gtm (#8936)
## Summary Adds GTM integration. GA4 tag G-RNYQG9GVFJ is now embedded inside GTM-PVLQ9XVM container.
1 parent e4437ed commit 2f0021b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

docs/docs-reanimated/docusaurus.config.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ const config = {
7171
theme: {
7272
customCss: require.resolve('./src/css/index.css'),
7373
},
74-
gtag: {
75-
trackingID: 'G-RNYQG9GVFJ',
76-
anonymizeIP: true,
77-
},
7874
blog: {
7975
routeBasePath: '/examples',
8076
blogSidebarTitle: 'Examples',
@@ -150,6 +146,15 @@ const config = {
150146
},
151147
}),
152148
plugins: [
149+
...[
150+
process.env.NODE_ENV === 'production' && '@docusaurus/plugin-debug',
151+
process.env.NODE_ENV === 'production' && [
152+
'@docusaurus/plugin-google-tag-manager',
153+
{
154+
containerId: 'GTM-PVLQ9XVM',
155+
},
156+
],
157+
].filter(Boolean),
153158
function svgModulePlugin() {
154159
return {
155160
name: 'svg-module-plugin',
@@ -180,9 +185,6 @@ const config = {
180185
},
181186
};
182187
},
183-
...[
184-
process.env.NODE_ENV === 'production' && '@docusaurus/plugin-debug',
185-
].filter(Boolean),
186188
async function reanimatedDocusaurusPlugin(context, options) {
187189
return {
188190
name: 'react-native-reanimated/docusaurus-plugin',

docs/docs-reanimated/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@dnd-kit/modifiers": "9.0.0",
2828
"@docusaurus/core": "3.9.2",
2929
"@docusaurus/plugin-debug": "3.9.2",
30+
"@docusaurus/plugin-google-tag-manager": "3.9.2",
3031
"@docusaurus/preset-classic": "3.9.2",
3132
"@docusaurus/theme-common": "3.9.2",
3233
"@docusaurus/theme-mermaid": "3.9.2",

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15678,6 +15678,7 @@ __metadata:
1567815678
"@docusaurus/core": "npm:3.9.2"
1567915679
"@docusaurus/module-type-aliases": "npm:3.9.2"
1568015680
"@docusaurus/plugin-debug": "npm:3.9.2"
15681+
"@docusaurus/plugin-google-tag-manager": "npm:3.9.2"
1568115682
"@docusaurus/preset-classic": "npm:3.9.2"
1568215683
"@docusaurus/theme-common": "npm:3.9.2"
1568315684
"@docusaurus/theme-mermaid": "npm:3.9.2"

0 commit comments

Comments
 (0)