Skip to content

Commit

Permalink
feat: add cookie management (#11061)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Nov 25, 2024
1 parent 04b9a2c commit eb54206
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
6 changes: 6 additions & 0 deletions web/app/components/base/ga/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ gtag('config', '${gaIdMaps[gaType]}');
nonce={nonce!}
>
</Script>
{/* Cookie banner */}
<Script
id="cookieyes"
src='https://cdn-cookieyes.com/client_data/2a645945fcae53f8e025a2b1/script.js'
nonce={nonce!}
></Script>
</>

)
Expand Down
15 changes: 0 additions & 15 deletions web/app/signin/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
import Script from 'next/script'
import Header from './_header'
import style from './page.module.css'

import cn from '@/utils/classnames'
import { IS_CE_EDITION } from '@/config'

export default async function SignInLayout({ children }: any) {
return <>
{!IS_CE_EDITION && (
<>
<Script strategy="beforeInteractive" async src={'https://www.googletagmanager.com/gtag/js?id=AW-11217955271'}></Script>
<Script
id="ga-monitor-register"
dangerouslySetInnerHTML={{
__html: 'window.dataLayer2 = window.dataLayer2 || [];function gtag(){dataLayer2.push(arguments);}gtag(\'js\', new Date());gtag(\'config\', \'AW-11217955271"\');',
}}
>
</Script>
</>
)}

<div className={cn(
style.background,
'flex w-full min-h-screen',
Expand Down

0 comments on commit eb54206

Please sign in to comment.