I have to work with custom metrics and dimensions in Google Analytics. When I try to create a new data set in the admin section I see a message like permission denied. I want to upload a CSV for particular metrics, but am unable to create a dataset. Any ideas how I can grant permission for adding a new dataset?
This is because some pages are loaded with wrong user permissions (such as the data set creation page in question).
Sign in to Google Analytics. Click Admin, and navigate to the desired account/property/view. In the Account, Property, or View column (depending upon whether you want to add users at the account, property, or view level), click Access Management. In the Account permissions list, click +, then click Add users.
To get started, you'll need to sign into your Google Analytics account. Then, click the Admin option at the bottom of your Analytics panel on the left. Now, you'll see the 3 levels of access (i.e. Account, Property, and View). And, you'll also find the User Management option below all 3 access levels.
A "Permission denied" error means that the server rejected your connection.
There are two separate requirements to create a dataset:
1) As mentioned above, you need Edit, Collaborate, Read & Analyze Permissions on the property level
2) You also need to be authenticated using a gmail.com account. If you were given access to the property without a gmail account, you will not be able to do a data import.
Based on #2, if you go back and add a gmail account to the account that you are using to access GA, it should resolve the issue.
I had the same problem.
Short answer/solution — in case you have multiple Google accounts, make sure you are using Google Analytics with your first (default) Google user account (not the second, third, ...). This is because some pages are loaded with wrong user permissions (such as the data set creation page in question).
Longer answer/explanation —
Apparently this error seems to be caused by a bug in Google Analytics website (as of Nov 2020) which occurs whenever you are logged in to Google Analytics with a different Google account than the default, first account, and the default account not having access to your Google Analytics property. You can make sure you are using the default user account when you either have ?authuser=0
in the URL/address bar, or there is no such parameter present in the URL at all. This also likely explains why some users are able to create data sets in other browsers — because in other browsers, they are logging in to Google Analytics with their default user in the first place.
After I switched the default account to the one having access to the Google Analytics property, the "Permission denied" error disappeared just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With