Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 349
WebMaster Avatar asked Dec 20 '20 09:12

WebMaster


People also ask

What is Google Analytics tracking ID format?

The tracking ID is a string like UA-000000-2. It must be included in your tracking code to tell Analytics which account and property to send data to.

What is a tracking ID for?

Tracking numbers are useful for knowing the location of time sensitive deliveries. It is a unique ID number or code assigned to a package or parcel. The tracking number is typically printed on the shipping label as a bar code that can be scanned by anyone with a bar code reader or smartphone.

What is UA for Google Analytics?

Universal Analytics is a version of Google Analytics that set a new standard for how user data is collected and organized. Introduced in the fall of 2012, Universal Analytics offers new tracking codes for websites and features that can more accurately measure user behavior (1).

What is the difference between a measurement ID and tracking ID?

If you're working with an Google Analytics 4 property, you have a Measurement ID instead of a Tracking ID. A Measurement ID uses the format G-XXXXXXX, and identifies the data stream sending data to your Google Analytics 4 property.

How do I get a tracking ID that starts with UA?

If you need a Tracking ID (i.e. an ID that begins with "UA-"), you will need to create a Universal Analytics property instead. Follow these instructionscarefully, because the Universal Analytics property option is hidden under Show advanced options.

Why don't I see a tracking ID in Google Analytics 4?

If you don't see a Tracking ID, you have a Google Analytics 4 property. (Google Analytics 4 properties do not have a Tracking ID.) If you need a Tracking ID (i.e. an ID that begins with "UA-"), you will need to create a Universal Analytics property instead.

How do I Find my Universal Analytics tracking ID?

To find your Universal Analytics Tracking ID: Open Google Analytics Click the ‘Admin’ tab In the left-hand column, click Tracking Info Click ‘Tracking Code’  Your code will be available here. For Universal Analytics users, the codes start with “UA.”


2 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

like image 162
Michele Pisani Avatar answered Oct 18 '22 21:10

Michele Pisani


Universal Analytics properties will stop collecting data starting 1 July 2023. It’s recommended that you create a Google Analytics 4 property instead.

enter image description here

So you can use this node package with GA_MEASUREMENT_ID

like image 1
zemil Avatar answered Oct 18 '22 22:10

zemil