diff --git a/gatsby-config.js b/gatsby-config.js index b028b70938b..3f27e279a20 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -491,11 +491,13 @@ module.exports = { '6LeGFt8UAAAAANfnpE8si2Z6NnAqYKnPAYgMpStu', }, newRelicRequestingServicesHeader: 'docs-website', - segment: { + // Segment analytics commented out to avoid costs and unnecessary data collection + // Uncomment if Segment tracking is needed again + /* segment: { segmentWriteKey: 'noviNOFjASOSPcSEAkwoRxOt0Y1719KD', section: 'docs', platform: 'docs_pages', - }, + }, */ }, }, ], diff --git a/gatsby/on-render-body.js b/gatsby/on-render-body.js index cb08126f327..05561a908f4 100644 --- a/gatsby/on-render-body.js +++ b/gatsby/on-render-body.js @@ -1,4 +1,8 @@ const onRenderBody = async ({ setPostBodyComponents }) => { + // Analytics tracking commented out to avoid Netlify edge function costs + // and unnecessary data collection. Uncomment if tracking is needed again. + + /* const linkedInId = (