From 3ca8ce07a6c4f456cc70fe5c23b6f9f253c4d027 Mon Sep 17 00:00:00 2001 From: Sebastian Gallese Date: Tue, 28 Dec 2021 11:34:03 -0800 Subject: [PATCH 01/17] Add id to inline Segment script (#32878) When I don't include an `id`, I see the console error "VM1624:1 Segment snippet included twice." According to https://nextjs.org/docs/basic-features/script#inline-scripts, an id should be added for inline scripts. ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` --- examples/with-segment-analytics/pages/_app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/with-segment-analytics/pages/_app.js b/examples/with-segment-analytics/pages/_app.js index 402797f3fa0b1..5c2c2bf7d0a2d 100644 --- a/examples/with-segment-analytics/pages/_app.js +++ b/examples/with-segment-analytics/pages/_app.js @@ -24,7 +24,10 @@ function MyApp({ Component, pageProps }) { return ( {/* Inject the Segment snippet into the of the document */} -