Skip to content

How to track this project with GA? #32

@amber-moe

Description

@amber-moe

As title, I forked your project (thanks for this interesting project), I added GA in the header.tsx file but it never work. Any ideas?
Here is my code:

import { useEffect } from "react";


export default function Header() {
  useEffect(() => {
    // GA跟踪代码
    window.gtag("config", "G-DEWJBLD2BG");
  }, []);

My project: https://github.com/Amber1990Zhang/oceanbase-sql-gpt/blob/main/components/Header.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions