简体   繁体   中英

Getting data from a analytics account using Google Analytics API and PHP

I'm developing a backoffice for a website in PHP.

In that backoffice I would like to output some google analytics info refering to that site. And only that site.

For that, I looked into the google analytics API, but I'm having some problems that I don't know if can overcome.

I don't want the API to ask for the user to login or authorization. I want the API to access always the same account (mine) and not another google analytics account, so no authorization required.

Can that be done? Can someone point me to a good tutorial about using the API in the context I'm looking for?

Thank You.

You can't do this with the regular API; as you mentioned, it requires the user to login. However, you can do this with the Google Analytics superProxy API .

Yes - it's possible.

You CAN connect directly to the API without it asking for authorization.

See: Service Applications and Google Analytics API V3: Server-to-server OAuth2 authentication?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM