Hi, am trying to connect Google Analytics(GA4). I ...
# replication-troubleshooting
f
Hi, am trying to connect Google Analytics(GA4). I am an admin and I can see GA_PROPERTY_ID in google analytics console but am getting following error when I try to connect."error": { "code": 403, "message": "User does not have sufficient permissions for this property. To learn more about Property ID, see https://developers.google.com/analytics/devguides/reporting/data/v1/property-id.", "status": "PERMISSION_DENIED" }
n
Hi, Felix! Could you please include the complete logs?
f
Hi @Nataly Merezhuk (Airbyte)! sure, see below:
Copy code
2023-02-14 11:49:14 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-02-14 11:49:14 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/source-google-analytics-v4:0.1.33 exists...
2023-02-14 11:49:14 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/source-google-analytics-v4:0.1.33 was found locally.
2023-02-14 11:49:14 INFO i.a.w.p.DockerProcessFactory(create):125 - Creating docker container = source-google-analytics-v4-check-ba1d80ad-c50d-4948-814d-48f7008313e8-0-mnbwh with resources io.airbyte.config.ResourceRequirements@657dcc65[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=] and allowedHosts null
2023-02-14 11:49:14 INFO i.a.w.p.DockerProcessFactory(create):170 - Preparing command: docker run --rm --init -i -w /data/ba1d80ad-c50d-4948-814d-48f7008313e8/0 --log-driver none --name source-google-analytics-v4-check-ba1d80ad-c50d-4948-814d-48f7008313e8-0-mnbwh --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e FIELD_SELECTION_WORKSPACES= -e USE_STREAM_CAPABLE_STATE=true -e WORKER_ENVIRONMENT=DOCKER -e AIRBYTE_ROLE= -e APPLY_FIELD_SELECTION=false -e WORKER_CONNECTOR_IMAGE=airbyte/source-google-analytics-v4:0.1.33 -e WORKER_JOB_ATTEMPT=0 -e AUTO_DETECT_SCHEMA=true -e AIRBYTE_VERSION=0.40.32 -e WORKER_JOB_ID=ba1d80ad-c50d-4948-814d-48f7008313e8 airbyte/source-google-analytics-v4:0.1.33 check --config source_config.json
2023-02-14 11:49:14 INFO i.a.w.i.VersionedAirbyteStreamFactory(create):107 - Reading messages from protocol version 0.2.0, messages will be upgraded to protocol version 1.0.0
2023-02-14 11:49:16 ERROR i.a.w.i.DefaultAirbyteStreamFactory(internalLog):163 - {
  "error": {
    "code": 403,
    "message": "User does not have sufficient permissions for this profile.",
    "status": "PERMISSION_DENIED"
  }
}
2023-02-14 11:49:16 ERROR i.a.w.i.DefaultAirbyteStreamFactory(internalLog):163 - Check failed
2023-02-14 11:49:17 INFO i.a.w.g.DefaultCheckConnectionWorker(run):114 - Check connection job received output: io.airbyte.config.StandardCheckConnectionOutput@1450686d[status=failed,message="Please check the permissions for the requested view_id: 301143201. {'code': 403, 'message': 'User does not have sufficient permissions for this profile.', 'status': 'PERMISSION_DENIED'}"]
2023-02-14 11:49:17 INFO i.a.w.t.TemporalAttemptExecution(get):163 - Stopping cancellation check scheduling...
2023-02-14 11:49:17 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-02-14 11:49:17 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END CHECK -----
2023-02-14 11:49:17 INFO i.a.c.i.LineGobbler(voidCall):114 -
user has adminstrator role in google analytics. I am able to retrieve access token using a refresh_token with the scope below(used postman to retrieve below)
Copy code
{
  "access_token": "*****",
  "expires_in": 3599,
  "scope": "https://www.googleapis.com/auth/analytics.readonly https://www.googleapis.com/auth/adsense",
  "token_type": "Bearer"
}
n
Are you able to hit this endpoint with something other than Airbyte- Postman, curl?