Skip to main content

All Questions

1 vote
1 answer
339 views

I need Oauth2 token for Google Data API with client ID and client secret for React app

I want to fetch data from google analytics via google data api. The request is given below. export async function fetchAnalyticsData() { // getAccessToken(); const GA4_PROPERTY_ID = ""...
İbrahim Yılgör's user avatar
1 vote
2 answers
547 views

PERMISSION_DENIED with External Account when using BetaAnalyticsDataClient get ga4 data

Our service aims to assist users in retrieving GA4 data for the purpose of calculating ROAS. The actual processing flow is outlined below: Firstly, I set up the Google Client: $this->googleClient = ...
Zoey Chen's user avatar
0 votes
1 answer
357 views

Google's JS tutorial for Analytics Reporting API v4 fails due to outdated oauth library

I've set up API access for my (Universal) Analytics project and it works fine from Google's "Demos and Tools" via Request Composer. So then I picked up the simple tutorial HTML file from ...
Axonn's user avatar
  • 10.3k
1 vote
1 answer
231 views

How do I get the correct access token for my Google Analytics Embed API app?

I have this code made by Google and I want to make server-side authentication, but the access token I get on https://developers.google.com/oauthplayground/ doesn't seem to work. What am I doing wrong? ...
NicoleProgramming's user avatar
0 votes
1 answer
2k views

Google Analytics Data API has not been used in project 12345, but I have no access to this project

I'm running this code: var auth = "Bearer " + token; var myHeaders = { "Authorization": auth } var rawdata = JSON.stringify({ "dimensions": [ { "name&...
Elad Benda's user avatar
  • 36.6k
0 votes
1 answer
552 views

Google Oauth2 Server side flow java with Refresh token

I am trying to fetch some data from GoogleAnalytics through a java application running inside a VM. I have a refresh token ready with me available and I want to use this refresh token to generate an ...
Sriram R's user avatar
  • 2,229
1 vote
1 answer
256 views

How do I authenticate using OAuth2 in the Google Analytics Reporting API?

I'm coding in C#.NET, in a Windows console application, and trying to download Google Analytics metrics data. I've installed the Google.Apis.AnalyticsReporting.v4 NuGet library package, and it brought ...
Keith Tyra's user avatar
1 vote
0 answers
219 views

Google Analytics OAuth2 Client ID Localhost

I am trying out this Embed API tutorial which doesn't seem to be working for me: https://developers.google.com/analytics/devguides/reporting/embed/v1/getting-started This is my code following, with ...
Oludhe's user avatar
  • 89
4 votes
1 answer
2k views

Error getting access token for service account: 400 Bad Request issue with Oauth for Google Analytics API

I am trying to hit the google Analytics API with below code . On further analysis I found credentials.getAccessToken(); is returning null: @RequestMapping(value = "/process", method = ...
bhalkian's user avatar
  • 499
0 votes
1 answer
104 views

Google analytics measurement protocol authentication

I do not understand the reason for not having OAuth flow while using the measurement protocol. The user needs the track-id for sending the request, and there are possibilities of ghosting as well. So ...
astudent's user avatar
4 votes
1 answer
5k views

'Login Required' error. How to login after getting oauth2 token with Google API

I'm building a small Node/React app where I'm trying to implement OAuth2 Google to request the Google Analytics API. I'm using Passport.js to handle the authentification. I'm able to get the Token ...
Simon Breton's user avatar
  • 2,866
1 vote
1 answer
1k views

Google API Web Client Oauth 2 redirect uri for aws ec2 uri

I have developed a google analytics management app using google API's and oauth2. I could add localhots:8001 successfully in redirect URI. Now I have deployed my app in aws ec2 instance. I need to ...
Codengine's user avatar
0 votes
2 answers
145 views

How to make Google reporting API refresh the oauth2 access token when it expires?

I am working on an analytics API project and when the access token expires after an hour I get "code:401, Invalid Credentials" and have to unset the php session to be able to re-authenticate. I have ...
V1xIII's user avatar
  • 189
0 votes
0 answers
397 views

Google OAuth2 client secret in plugin

i will develope a wordpress plugin to access google analytics and visualize the data in a widget. So i checked some existing wordpress plugins, like the famous known "Google Analytics Dashboard for WP ...
woody100's user avatar
1 vote
1 answer
9k views

manage.py: error: unrecognized arguments: runserver 8000, Google Analytics API Django

Here is my Models.py import argparse import os from django.db import models from django.db import models from django.contrib.auth.models import User from oauth2client import tools from oauth2client....
Muhammad Asif's user avatar

15 30 50 per page
1
2 3 4 5
7