Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied when creating a new data set in Google Analytics

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?

like image 732
Maulik Kakadiya Avatar asked Jul 23 '18 08:07

Maulik Kakadiya


People also ask

Why does Google Analytics say Permission denied?

This is because some pages are loaded with wrong user permissions (such as the data set creation page in question).

How do I grant permissions on Google Analytics?

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.

What permissions do I have in Google Analytics?

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.

What is Permission denied?

A "Permission denied" error means that the server rejected your connection.


2 Answers

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.

like image 93
pfiddy Avatar answered Oct 13 '22 23:10

pfiddy


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.

like image 31
Martin Tajur Avatar answered Oct 13 '22 21:10

Martin Tajur