Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics API Create New Property

The issue I'm having is when I try and insert a new web property using the Google Analytics Api I'm getting the error: "reason": "insufficientPermissions", "message": "Your project does not have access to this feature."

This is even when I use the page: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/webproperties/insert

Has anyone being able to successfully create a new web property and return its tracking code?

like image 263
sean Avatar asked Oct 01 '22 17:10

sean


1 Answers

At the time that this question was written, write operations were still in beta. At the time, it was required to request access to the beta. From the GA documentation at the time:

Write operations in the Management API (e.g. create, update, delete, patch) for Web Property, View (Profile), and Goal resources is currently available as a developer preview in limited beta. If you're interested in using these features, request access to the beta.

After applying for the beta, developers were unlikely to hear back from GA, but after 24 hours it normally worked.

like image 102
DaImTo Avatar answered Oct 22 '22 19:10

DaImTo