Merged PR 1233: build fix for async scripts
build fix for async scripts Related work items: #12123
This commit is contained in:
@@ -6,12 +6,14 @@ export const Tracking = ({ googleTagManagerID, nonce, cookieObj }) => {
|
||||
return (
|
||||
<Fragment>
|
||||
<script
|
||||
strategy="afterInteractive"
|
||||
async
|
||||
// strategy="afterInteractive"
|
||||
src={`https://www.googletagmanager.com/gtag/js?id=${googleTagManagerID}`}
|
||||
/>
|
||||
<script
|
||||
async
|
||||
id="google-analytics"
|
||||
strategy="afterInteractive"
|
||||
// strategy="afterInteractive"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
Reference in New Issue
Block a user