Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

베타 서비스 배너 및 gtag 적용 #124

Merged
merged 10 commits into from
Oct 20, 2024
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
Loading