diff --git a/.env.example b/.env.example index 63b44e3..2be6527 100644 --- a/.env.example +++ b/.env.example @@ -35,4 +35,6 @@ NEXT_PUBLIC_FREE_RECORD_QUOTA=3 NEXT_PUBLIC_FREE_URL_QUOTA=100 # Open Signup -NEXT_PUBLIC_OPEN_SIGNUP=1 \ No newline at end of file +NEXT_PUBLIC_OPEN_SIGNUP=1 + +NEXT_PUBLIC_GOOGLE_ID= \ No newline at end of file diff --git a/app/GoogleAnalytics.tsx b/app/GoogleAnalytics.tsx new file mode 100644 index 0000000..b3cb9a6 --- /dev/null +++ b/app/GoogleAnalytics.tsx @@ -0,0 +1,37 @@ +"use client"; + +import Script from "next/script"; +import * as gtag from "../gtag.js"; + +const GoogleAnalytics = () => { + return ( + <> + {gtag.GA_TRACKING_ID ? ( + <> +