Skip to content

Commit

Permalink
Fix: gtag undefined 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
goeun208 committed May 25, 2024
1 parent 944636b commit d46bfb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/gtag.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const GA_TRACKING_ID = process.env.NEXT_PUBLIC_GA_ID;
export const GA_TRACKING_ID = 'G-8Q99GBN6CE';

// https://developers.google.com/analytics/devguides/collection/gtagjs/pages
export const pageview = (url: URL) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { RecoilRoot } from 'recoil';
import React, { useEffect } from 'react';
import Script from 'next/script';
import type { AppProps } from 'next/app';
import '../../src/output.css';
import { CookiesProvider } from 'react-cookie';
import '../../src/index.css';
import Head from 'next/head';
import Script from 'next/script';
import { useRouter } from 'next/router';
import * as gtag from '../lib/gtag';

Expand Down

0 comments on commit d46bfb5

Please sign in to comment.