Skip to content

Commit cb4eaaa

Browse files
authored
add Script key for cache (#36627)
Script component manages the cache as src or id. But in this example, id is missed. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
1 parent 20e5fed commit cb4eaaa

File tree

1 file changed

+1
-0
lines changed
  • examples/with-google-tag-manager/pages

1 file changed

+1
-0
lines changed

examples/with-google-tag-manager/pages/_app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function MyApp({ Component, pageProps }) {
1616
<>
1717
{/* Google Tag Manager - Global base code */}
1818
<Script
19+
id="gtag-base"
1920
strategy="afterInteractive"
2021
dangerouslySetInnerHTML={{
2122
__html: `

0 commit comments

Comments
 (0)