Aleem Ahmad
Aleem Ahmad

Reputation: 2539

Google Analytics Number of Requests Exceeded Exception

I am developing a website where I am integrating Google Analytics in the project. All is working fine but sometimes I get the error that "Number of Requests Limit exceeded. Please signup to Google Developers console" something like that. I have searched the internet and they have described that obtain the "Client ID" from Google Developers Console.

I have done that but now I cannot find that where to put that "Client ID" in the API file? I am using the "gapi" class for fetching the Google Analytics data. But in the "gapi.class.php" file there is no option for the "Client ID" which I have obtained from Google Developers Console.

Where to put the "client ID" OR there is something I am doing wrong?

Upvotes: 0

Views: 69

Answers (1)

255kb - Mockoon
255kb - Mockoon

Reputation: 6974

It seems that you are using this library which is a third party library that authenticate the user through email/password in order to access his analytics account.

If you need to access the GA API as documented here maybe you will have to use another library. Google is providing a PHP library to access the API. Also, if you look at the code samples you will see that they are using the API KEY and the Client ID to authenticate (the Client ID is not always needed depending on what you are requesting).

Upvotes: 1

Related Questions