Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Improving the analytics setup
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro committed Jan 10, 2022
1 parent 25c62a7 commit 2cc2579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ export const onRenderBody = ({ setHeadComponents }) => {
])
} else if (process.env.NODE_ENV === 'development') {
// eslint-disable-next-line
console.warn(
'gtmContainerId is not set. Google Tag Manager will not work until you provide a valid container id.'
)
console.warn('Check the analytics section on your store.config.js file.')
}
}
1 change: 1 addition & 0 deletions store.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = {
},

analytics: {
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
gtmContainerId: 'GTM-PGHZ95N',
},
}

0 comments on commit 2cc2579

Please sign in to comment.