The tracking Id should only be of the format UA-NNNNNN-N

Viewed 2363

The google analytics dashboard show my Tracking Code in G-XXXXXXXXXX format and the react-GA need it to be in UA-NNNNNN-N

How can I get it in UA-NNNNNN-N format, in my google console I searched tracking info but no page exists and it just show me

In web-only properties, this is referred to as Tracking ID in format UA-XXXXXXXX-

Everything is works for me, google analytics can collect data now, my problem is events, when I send the following event nothing happens in dashboard

ReactGA.event({
  category: 'User',
  action: 'Created an Account'
});

Also in dashboard, when I want to Add event there is no category and action just event name

1 Answers

I have to create a Universal Analytics Property (as shown in following image) and use the relative identifier UA-XXXXXXX-X:

enter image description here

Related