Fix - Analytics not working
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ Thumbs.db
|
||||
.idea
|
||||
.next
|
||||
out
|
||||
.env
|
||||
build
|
||||
node_modules
|
||||
yarn-error.log
|
||||
|
@ -56,8 +56,6 @@ const Helmet = (props) => (
|
||||
<link rel="icon" href="/static/manifest/favicon.ico" type="image/x-icon" />
|
||||
|
||||
{ /* Global Site Tag (gtag.js) - Google Analytics */ }
|
||||
{ !PHASE_DEVELOPMENT_SERVER && (
|
||||
<>
|
||||
<script async src={ `https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}` } />
|
||||
<script dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@ -67,8 +65,6 @@ const Helmet = (props) => (
|
||||
gtag('config', '${GA_TRACKING_ID}');
|
||||
`,
|
||||
}} />
|
||||
</>
|
||||
)}
|
||||
</NextHead>
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user