Skip to content

Not seeing user-id event parameter in GA4 dashboard #85

@ChenCodes

Description

@ChenCodes

Hi there!

I'm trying to use ReactGA.send to pass user_id to React GA4.

useEffect(() => {
    ReactGA.send({ hitType: 'pageview', page: location.pathname, user_id: user?.id ?? '' })
    // Track the pageview with react-ga
  }, [location, user])

In my local environment, I do see an event call being made with the user id as uid.
Screen Shot 2024-08-16 at 2 23 42 PM

In Google Analytics 4 dashboard, I tried viewing the page_view events, but I don't see user_id or anything of the sort as one of the event parameters. Is there something that I may be missing on the GA dashboard side to be able to see the event parameter show up?

Screen Shot 2024-08-16 at 2 25 14 PM

Any help / insights would be greatly appreciated!

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