Trying to Authorize Plugin, but it won't Authorize

QUESTIONS & ANSWERSCategory: WordPressTrying to Authorize Plugin, but it won't Authorize
Ken Matthews asked 3 months ago

I click get Access Code, get it from google, click save access code.  It then takes me back to the Plugin Auth page, and it says something went wrong.  I click the Errors and Debug and it says this below:

Last Error detected

Last Error: 2017-05-16 12:05:52: exception 'Google_Auth_Exception' with message 'Error fetching OAuth2 access token, message: 'invalid_grant: Invalid code.'' in /home/kbmatth/public_html/
Stack trace:
#0 /home/kbmatth/public_html/ Google_Auth_OAuth2->authenticate('4/zOx22qRpMxomZ...')
#1 /home/kbmatth/public_html/ Google_Client->authenticate('4/zOx22qRpMxomZ...')
#2 [internal function]: GADWP_Settings::general_settings('')
#3 /home/kbmatth/public_html/ call_user_func_array(Array, Array)
#4 /home/kbmatth/public_html/ WP_Hook->apply_filters('', Array)
#5 /home/kbmatth/public_html/ WP_Hook->do_action(Array)
#6 /home/kbmatth/public_html/ do_action('toplevel_page_g...')
#7 {main}

Not sure why google would give me a code that doesn't work with your plugin
1 Answers
Alin Marcu Staff answered 3 months ago


Try to authorize using a diffrent browser. Also make sure the entire code is copied while authorizing.

I assume you’ve followed the documentation page and already created a Google Analytics account and a Property.