Generate Refresh token for Google Analytic using JavaScript

Wasfa

I am using Embed API to display Google Analytics statistics on charts by following this tutorial https://github.com/googleanalytics/embed-api-demos/blob/master/site/1-basic-dashboard.html According to this user has to login each time to see charts.But the problem is that for deployed applications we dont want to give our email id and pass to client.Os there is a way to generate a access or refresh token using java script.If so then show an example sniped code. Thanks in advance!

DaImTo

It sounds like you are trying to give others access to see your own Google Analytics account. Unfortunately there is no secure way to do this with the embedded API. It will always require authentication because its JavaScript and runs client side.

What I recommend you do instead would be to create a service account to access the Google Analytics API and then use Google charts to display similar graphics your users will then be able to see your data. You will have to create all of this in a server sided programing language.

Due to security reasons it is not possible use a service account with JavaScript.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Using ADFS OAuth Refresh Token

分類Dev

Google API Refresh Token Security Vulnerability

分類Dev

Get Access Token from Refresh Token using cURL

分類Dev

How to generate Google Place API session token?

分類Dev

Generate bearer token using c#

分類Dev

Get access token on server side javascript (nodejs) using google authorization code received from client side

分類Dev

How to generate a Google ReCaptcha V2 secure token with PHP?

分類Dev

CAS protocol - refresh token?

分類Dev

how to test my app with google analytic in sandbox mode

分類Dev

OpenIddict - Refresh token flow causes entity error when using custom key

分類Dev

Disable F5 and browser refresh using JavaScript

分類Dev

google oauth2 get token javascript post request

分類Dev

Get Google Client API access token using CURL

分類Dev

How do I get access token using Google plus

分類Dev

How to generate a Token in Symfony 3.4

分類Dev

FOSOAuthServerBundle - generate manually an access token

分類Dev

Javascript generate array from given array using recursion

分類Dev

Generate html for ArcGIS popupInfo using JavaScript without the map

分類Dev

How to generate a clickable array/list in HTML using JavaScript

分類Dev

Javascript: Generate a random number within a range using crypto.getRandomValues

分類Dev

How to generate proper csv file format using javascript

分類Dev

Angular 4.3 - HTTP Interceptor - refresh JWT token

分類Dev

Refresh OAuth token with jersey 2 client

分類Dev

iOS Facebook Login Access Token refresh

分類Dev

Token refresh fails with invalid_client error

分類Dev

Identity Server 4 Refresh Token Expiration Not Working

分類Dev

Is stealing a cookie any different to stealing a refresh token?

分類Dev

Refresh a page using PHP

分類Dev

Google Analytic PHPAPIを使用したGoogleeコマース

Related 関連記事

  1. 1

    Using ADFS OAuth Refresh Token

  2. 2

    Google API Refresh Token Security Vulnerability

  3. 3

    Get Access Token from Refresh Token using cURL

  4. 4

    How to generate Google Place API session token?

  5. 5

    Generate bearer token using c#

  6. 6

    Get access token on server side javascript (nodejs) using google authorization code received from client side

  7. 7

    How to generate a Google ReCaptcha V2 secure token with PHP?

  8. 8

    CAS protocol - refresh token?

  9. 9

    how to test my app with google analytic in sandbox mode

  10. 10

    OpenIddict - Refresh token flow causes entity error when using custom key

  11. 11

    Disable F5 and browser refresh using JavaScript

  12. 12

    google oauth2 get token javascript post request

  13. 13

    Get Google Client API access token using CURL

  14. 14

    How do I get access token using Google plus

  15. 15

    How to generate a Token in Symfony 3.4

  16. 16

    FOSOAuthServerBundle - generate manually an access token

  17. 17

    Javascript generate array from given array using recursion

  18. 18

    Generate html for ArcGIS popupInfo using JavaScript without the map

  19. 19

    How to generate a clickable array/list in HTML using JavaScript

  20. 20

    Javascript: Generate a random number within a range using crypto.getRandomValues

  21. 21

    How to generate proper csv file format using javascript

  22. 22

    Angular 4.3 - HTTP Interceptor - refresh JWT token

  23. 23

    Refresh OAuth token with jersey 2 client

  24. 24

    iOS Facebook Login Access Token refresh

  25. 25

    Token refresh fails with invalid_client error

  26. 26

    Identity Server 4 Refresh Token Expiration Not Working

  27. 27

    Is stealing a cookie any different to stealing a refresh token?

  28. 28

    Refresh a page using PHP

  29. 29

    Google Analytic PHPAPIを使用したGoogleeコマース

ホットタグ

アーカイブ