Jashwanth H S
Jashwanth H S

Reputation: 3

How to use google analytics Api without using google account

we are provide saas plugin to our customers, we need to get events for each customer's website without creating seperate GTM container and GA property , All the process will takes place in background. There should be no login requried ,insted we will send the username and password to Google Aalytics through code(JavaScript).

so we need to use google analytics Api without google sign in

is there a way to do this

Upvotes: 0

Views: 318

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116918

we are provide saas plugin to our customers, we need to get events for each customer's website

If you want to connect to the analytics accounts for your customers websites they you need to be authorized to access their private data.

no login requried ,insted we will send the username and password to Google Aalytics through code(JavaScript).

You can not login to anyones google account using login and password that was called client login and google disabled that in 2015. You will need to use Oauth2 request consent and gain authorization to access their private data.

so we need to use google analytics Api without google sign in

Sign in is authentication, the Google analytics api operations on authorization. The user needs to consent and grate you authorization to access their data.

is there a way to do this

No you can not access private user data without the owner of that data authorizing your access to that data.

Upvotes: 1

Related Questions