next.js
aa1ee599 - Mark most GTMParams as optional (#57153)

Commit
2 years ago
Mark most GTMParams as optional (#57153) Fixes #57126 The `<GoogleTagManager>` types in `@next/third-parties` seem incorrect compared to [e2e test usage](https://github.com/vercel/next.js/blob/canary/test/e2e/third-parties/pages/gtm.js#L11) where only the `gtmId` is shown/needed. ``` <GoogleTagManager gtmId="GTM-XYZ" /> ``` The extra options (datalayer name etc) are not needed as the `GoogleTagManager` has defaults: https://github.com/vercel/next.js/blob/v13.5.7-canary.11/packages/third-parties/src/google/gtm.tsx#L24-L32
Parents
Loading