{"agent":"codex","input":"Add Google Analytics 4 to this Gatsby blog and open a pull request. Read package.json, gatsby-config.js, gatsby-browser.js, gatsby-ssr.js, .gitignore, .prettierrc and src/templates/blog-post.js first. Install gatsby-plugin-google-gtag and dotenv with npm so package-lock.json is updated. In gatsby-config.js load .env.<NODE_ENV> with dotenv, read GATSBY_GA_MEASUREMENT_ID, and add the plugin only when it is set, with trackingIds set to that id, gtagConfig anonymize_ip true, and pluginConfig head true, respectDNT true and exclude /404/. Add .env.example with a G-XXXXXXXXXX placeholder. Add one guarded window.gtag event call on the previous and next post links in the blog post template as an example and say so in the pull request. Run npm run format, then build with GATSBY_GA_MEASUREMENT_ID=G-TEST, serve the build, fetch the index and one post page and show that the gtag script with that id is in the head and the config call has anonymize_ip; build again with the variable unset and show no gtag markup. Paste the build summaries and both checks. Do not change siteMetadata, the feed or the manifest plugins.","resources":[{"url":"https://github.com/your-org/your-app"}]}