我react-ga在我的应用程序中使用,一切正常,但我想更改每个设备的客户端 ID。这就是我初始化 react-ga的方式。
ReactGA.initialize('UA-11xxxxxx-x', {
debug: true,
titleCase: false,
'cookieDomain': 'auto',
gaOptions: {
name: 'DyuserName',
userId: 'DyuserId'
}
});
通常在js中我们这样做

我如何在 react-ga 中更改客户端 ID