Skip to content

Commit 16881bb

Browse files
committed
Configure Google Analytics
1 parent 831a773 commit 16881bb

File tree

1 file changed

+2
-47
lines changed

1 file changed

+2
-47
lines changed

docs/docusaurus.config.js

+2-47
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/*
2-
In swizzled components look for "SWM -" string to see our modifications
3-
*/
4-
51
const lightCodeTheme = require('./src/theme/CodeBlock/highlighting-light.js');
62
const darkCodeTheme = require('./src/theme/CodeBlock/highlighting-dark.js');
73
// @ts-check
@@ -36,8 +32,8 @@ const config = {
3632
theme: {
3733
customCss: require.resolve('./src/css/index.css'),
3834
},
39-
googleAnalytics: {
40-
trackingID: '...',
35+
gtag: {
36+
trackingID: 'G-TJND8QJM9P',
4137
anonymizeIP: true,
4238
},
4339
}),
@@ -85,47 +81,6 @@ const config = {
8581
indexName: 'react-native-executorch',
8682
},
8783
}),
88-
plugins: [
89-
// ...[
90-
// process.env.NODE_ENV === 'production' && '@docusaurus/plugin-debug',
91-
// ].filter(Boolean),
92-
// async function reanimatedDocusaurusPlugin(context, options) {
93-
// return {
94-
// name: 'react-native-reanimated/docusaurus-plugin',
95-
// configureWebpack(config, isServer, utils) {
96-
// const processMock = !isServer ? { process: { env: {} } } : {};
97-
98-
// const raf = require('raf');
99-
// raf.polyfill();
100-
101-
// return {
102-
// mergeStrategy: {
103-
// 'resolve.extensions': 'prepend',
104-
// },
105-
// plugins: [
106-
// new webpack.DefinePlugin({
107-
// ...processMock,
108-
// __DEV__: 'false',
109-
// setImmediate: () => {},
110-
// }),
111-
// ],
112-
// module: {
113-
// rules: [
114-
// {
115-
// test: /\.txt/,
116-
// type: 'asset/source',
117-
// },
118-
// ],
119-
// },
120-
// resolve: {
121-
// alias: { 'react-native$': 'react-native-web' },
122-
// extensions: ['.web.js', '...'],
123-
// },
124-
// };
125-
// },
126-
// };
127-
// },
128-
],
12984
};
13085

13186
module.exports = config;

0 commit comments

Comments
 (0)