Reputation: 41
I am using google analytics data API. Making an API Call as listed here - https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-client-libraries.
My question is how do I enabled google analytics Data API for an already existing project. I need access to specific property ID.
any information is highly appreciated.
Upvotes: 1
Views: 931
Reputation: 1067
Following google support link, you should first log into analytics.google, then in admin page .
then click on GA4 setup Assistant like the photo
Upvotes: 0
Reputation: 14179
You have to follow Step 1 (Enable the API) and Step 2 (Add service account to the Google Analytics 4 property) in your link. Then use your property ID called Measurement ID (i.e. G-XXXXXXXX) that you can find in Data Streams (selecting a Data Stream) in Google Analytics 4 Admin Panel.
Upvotes: 1