0

How to add custom dimensions in ReactGA (event)?

I tried below approach :

GoogleAnalytics.set({
 email: 'my_email',
 id: 'my_id', 
})

but it's not working.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

1

You can do it by using below snippet:

import ReactGA from 'react-ga';

ReactGA.set({
  'email': 'my_email',
  'id': 'my_id'
})
harish kumar
  • 1,732
  • 1
  • 10
  • 21