Title: Error when trying to authorize plugin
Last modified: February 9, 2018

---

# Error when trying to authorize plugin

 *  [buzz1000](https://wordpress.org/support/users/buzz1000/)
 * (@buzz1000)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-when-trying-to-authorize-plugin/)
 * The Google Analytics plugin was working fine, then this morning, I did a few 
   things:
 * 1. Redirected my domain name “travelmyheart.com” to “travelmyheart.org” (via 
   HTTP 301s)
    2. Updated WordPress to handle this change — Meaning just updated
   the relevant fields in the Database to recognize travelmyheart.org as the domain
   for the website 3. Upgraded WordPress from 4.9.2 to 4.9.4 4. Upgraded the “Google
   Analytics Dashboard for WP” plugin to 5.2 5. Created a new property in Google
   Analytics for the new .org domain
 * I then removed the previous authorization for the Google Analytics plugin and
   tried to reauthorize it with Google Analytics so that I could send the analytics
   data to the new property.
 * However, when I try to authorize the plugin, I get the following error:
 * “””
    Last Error: 2018-02-09 16:18:02: (2) HTTP Error: Unable to connect: ‘fopen(
   [https://accounts.google.com/o/oauth2/token](https://accounts.google.com/o/oauth2/token)):
   failed to open stream: operation failed’
 * GAPI Error:
    “””
 * What can i do to fix it?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-when-trying-to-authorize-plugin/#post-9959870)
 * Hi,
 * Do you experience the same issue with GADWP v5.2.1?
 *  [Alin Marcu](https://wordpress.org/support/users/deconf/)
 * (@deconf)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/error-when-trying-to-authorize-plugin/#post-9964478)
 * Hi,
 * Contact your hosting provider and see if enabling PHP cURL with SSL support is
   available for your hosting package.
 *  [Epco](https://wordpress.org/support/users/epco/)
 * (@epco)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/error-when-trying-to-authorize-plugin/#post-9973746)
 * Had the same issue. The link in the plugin had a lot of %2A and the like. Changing
   them to : and / made the link work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error when trying to authorize plugin’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-dashboard-for-wp/assets/icon.svg?rev=2243225)
 * [ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Epco](https://wordpress.org/support/users/epco/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/error-when-trying-to-authorize-plugin/#post-9973746)
 * Status: not resolved