diff --git a/packages/next-plugin-google-analytics/package.json b/packages/next-plugin-google-analytics/package.json index a1cd6adcbef2c..1b6a47d69fc9c 100644 --- a/packages/next-plugin-google-analytics/package.json +++ b/packages/next-plugin-google-analytics/package.json @@ -8,7 +8,7 @@ "nextjs": { "name": "Google Analytics", "required-env": [ - "GA_TRACKING_ID" + "NEXT_PUBLIC_GA_TRACKING_ID" ] }, "peerDependencies": { diff --git a/packages/next-plugin-google-analytics/src/document-head-tags-server.js b/packages/next-plugin-google-analytics/src/document-head-tags-server.js index d10a05b41f925..b27a7c47fcc23 100644 --- a/packages/next-plugin-google-analytics/src/document-head-tags-server.js +++ b/packages/next-plugin-google-analytics/src/document-head-tags-server.js @@ -5,7 +5,7 @@ export default async function headTags() { <>