Skip to content

Commit

Permalink
fix: temporarily remove GTM and Segment for performance concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Worrall committed Jun 18, 2020
1 parent efdeb1b commit 99cf90a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 46 deletions.
8 changes: 4 additions & 4 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

// You can delete this file if you're not using it
exports.onRouteUpdate = () => {
window.analytics && window.analytics.identify();
window.analytics && window.analytics.page();
};
//exports.onRouteUpdate = () => {
// window.analytics && window.analytics.identify();
// window.analytics && window.analytics.page();
//};
17 changes: 0 additions & 17 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ module.exports = {
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: 'GTM-TK2F7T',
includeInDevelopment: false
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
Expand All @@ -33,16 +26,6 @@ module.exports = {
minify: true
}
},
{
resolve: `gatsby-plugin-segment-js`,
options: {
prodKey: `jzjQisi3j3VvLyH9mc0QNEgYKpj4LlD1`,
devKey: `jzjQisi3j3VvLyH9mc0QNEgYKpj4LlD1`,
trackPage: false,
delayLoad: false,
delayLoadTime: 1000
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
Expand Down
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
"feather-icons": "^4.28.0",
"gatsby": "^2.22.11",
"gatsby-image": "^2.4.5",
"gatsby-plugin-google-tagmanager": "^2.3.3",
"gatsby-plugin-manifest": "^2.4.9",
"gatsby-plugin-mdx": "^1.2.12",
"gatsby-plugin-newrelic": "https://github.com/newrelic/gatsby-plugin-newrelic.git#5cd42e832f0588764dc332ce7ebd05794de5106a",
"gatsby-plugin-offline": "^3.2.7",
"gatsby-plugin-react-helmet": "^3.3.2",
"gatsby-plugin-sass": "^2.3.2",
"gatsby-plugin-segment-js": "^3.3.0",
"gatsby-plugin-sharp": "^2.6.9",
"gatsby-plugin-use-dark-mode": "^1.1.2",
"gatsby-remark-copy-linked-files": "^2.3.3",
Expand Down

0 comments on commit 99cf90a

Please sign in to comment.