Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 9e25134

Browse files
authored
fix: temporarily remove GTM and Segment for performance concerns (#474)
1 parent 95b4e97 commit 9e25134

File tree

4 files changed

+4
-46
lines changed

4 files changed

+4
-46
lines changed

gatsby-browser.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
// You can delete this file if you're not using it
8-
exports.onRouteUpdate = () => {
9-
window.analytics && window.analytics.identify();
10-
window.analytics && window.analytics.page();
11-
};
8+
//exports.onRouteUpdate = () => {
9+
// window.analytics && window.analytics.identify();
10+
// window.analytics && window.analytics.page();
11+
//};

gatsby-config.js

-17
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ module.exports = {
1010
},
1111
plugins: [
1212
`gatsby-plugin-react-helmet`,
13-
{
14-
resolve: 'gatsby-plugin-google-tagmanager',
15-
options: {
16-
id: 'GTM-TK2F7T',
17-
includeInDevelopment: false
18-
}
19-
},
2013
{
2114
resolve: `gatsby-source-filesystem`,
2215
options: {
@@ -33,16 +26,6 @@ module.exports = {
3326
minify: true
3427
}
3528
},
36-
{
37-
resolve: `gatsby-plugin-segment-js`,
38-
options: {
39-
prodKey: `jzjQisi3j3VvLyH9mc0QNEgYKpj4LlD1`,
40-
devKey: `jzjQisi3j3VvLyH9mc0QNEgYKpj4LlD1`,
41-
trackPage: false,
42-
delayLoad: false,
43-
delayLoadTime: 1000
44-
}
45-
},
4629
{
4730
resolve: `gatsby-source-filesystem`,
4831
options: {

package-lock.json

-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
"feather-icons": "^4.28.0",
1010
"gatsby": "^2.22.11",
1111
"gatsby-image": "^2.4.5",
12-
"gatsby-plugin-google-tagmanager": "^2.3.3",
1312
"gatsby-plugin-manifest": "^2.4.9",
1413
"gatsby-plugin-mdx": "^1.2.12",
1514
"gatsby-plugin-newrelic": "https://github.com/newrelic/gatsby-plugin-newrelic.git#5cd42e832f0588764dc332ce7ebd05794de5106a",
1615
"gatsby-plugin-offline": "^3.2.7",
1716
"gatsby-plugin-react-helmet": "^3.3.2",
1817
"gatsby-plugin-sass": "^2.3.2",
19-
"gatsby-plugin-segment-js": "^3.3.0",
2018
"gatsby-plugin-sharp": "^2.6.9",
2119
"gatsby-plugin-use-dark-mode": "^1.1.2",
2220
"gatsby-remark-copy-linked-files": "^2.3.3",

0 commit comments

Comments
 (0)