Skip to content

Commit

Permalink
fix: _app client build (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii authored Nov 29, 2023
1 parent f93314a commit ec01f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const tagManagerArgs = {
gtmId: process.env.NEXT_PUBLIC_GTM_ID,
}

if (tagManagerArgs.gtmId) {
if (tagManagerArgs.gtmId && typeof window !== 'undefined') {
TagManager.initialize(tagManagerArgs)
}

Expand Down

0 comments on commit ec01f4c

Please sign in to comment.