Skip to content

Commit

Permalink
Merge pull request #58 from scientist-softserv/36-gtm-refactor
Browse files Browse the repository at this point in the history
36-gtm-refactor
alishaevn authored Feb 15, 2024
2 parents 25ce070 + 16570cf commit da4b193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ import {
headerAndFooterLinkColors,
} from '../utils'
import '../utils/theme/globals.scss'
const gtmId = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID

const WebStore = ({ Component }) => {
/**
@@ -41,7 +42,7 @@ const WebStore = ({ Component }) => {
enableCookies={enableCookies}
getCookieConsent={getCookieConsent()}
/> */}
<GoogleTagManager gtmId={process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID} />
{gtmId && <GoogleTagManager gtmId={gtmId} />}
<Header
auth={{
signIn: () => signIn(process.env.NEXT_PUBLIC_PROVIDER_NAME),

0 comments on commit da4b193

Please sign in to comment.