Skip to content

Next.js V15 #90

@m7eng

Description

@m7eng

Hello, how do I used react-ga4 in NextJS V15 especially with the App Router?
Is it sufficient to put

import ReactGA from 'react-ga4'; (...) const TRACKING_ID = "G-R85LV3LZ4X"; ReactGA.initialize(TRACKING_ID);

into the page.tsx and it will track all other routes as well?

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