Skip to content

Commit

Permalink
베타 서비스 배너 및 gtag 적용 (#124)
Browse files Browse the repository at this point in the history
* feat: 베타 서비스 오픈 배너 적용 (#ATR-617)

* feat: gtag 연결 (#ATR-618)
  • Loading branch information
LC-02s authored Oct 20, 2024
1 parent e495569 commit 32760e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions apps/service/public/script/gtag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'G-1WN6EE9VE8')
5 changes: 5 additions & 0 deletions apps/service/src/app/(service)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export default async function ServiceRootLayout({
strategy="beforeInteractive"
/>
<Script src="/script/amplitude.js" strategy="afterInteractive" />
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-1WN6EE9VE8%22%3E"
strategy="beforeInteractive"
/>
<Script src="/script/gtag.js" strategy="afterInteractive" />
</>
)}
</body>
Expand Down
6 changes: 3 additions & 3 deletions apps/service/src/widgets/main/ui/MainAds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export default function MainAds() {
return (
<div className="px-5 md:px-0">
<Image
src="/images/ads.jpg"
width={1500}
height={1100}
src="/images/beta-service-banner.jpg"
width={1680}
height={640}
className="h-auto w-full rounded-2xl object-cover"
alt="ads"
/>
Expand Down

0 comments on commit 32760e1

Please sign in to comment.