Answer the question
In order to leave comments, you need to log in
GAPI - Authentication Issues?
Getting data from google analytics reports to the site using GAPI - gapi-google-analytics-php-interface ( code.google.com/p/gapi-google-analytics-php-interface )
Since the beginning of March, authentication has failed: a
Fatal error is thrown : Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: ""' in /home/site/public_html/ga_test/gapi.class.php:418 Stack trace: #0 /home/site/public_html/ga_test/gapi.class.php(62): gapi->authenticateUser( user, pass') #1 /home/site/public_html/ga_test/stat.php(10): gapi->__construct( user, pass') ') #2 {main} thrown in /home/site/public_html/ga_test /gapi.class.php on line 418
Everything is fine on the hosting: curl ssl is installed, access is open, logins/passwords are correct
Could this be due to some changes in Google, such as two-step verification?
code.google.com/p/gapi-google-analytics-php-interf...
The guys on the GAPI support page already wrote to someone
"You need to create an application specific password in order to access it
https://accounts.google.com/b/0/IssuedAuthSubToken...
Create a new password by typing Analytics in the input box and use that password, it will work ..”
Answer the question
In order to leave comments, you need to log in
What is not clear in the text you quoted?
If you have two-factor authentication enabled, then you need to create a password for your application at accounts.google.com/b/0/IssuedAuthSubTokens#accesscodes and use it in scripts, and not your usual account password!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question