I am trying to integrate Google Analytics into my react app. And currently I'm using the react-ga
library.
It's a little confusing or unclear to understand the API set
.
ReactGA.set({ userId: 123 })
There is not too much explanation about its functionalities. So what's the purpose of this API, and how to get the data set in the API?