Title: WPAdverts &#8211; Google Analytics &#8211; Setup
Last modified: October 3, 2017

---

# WPAdverts – Google Analytics – Setup

 *  Resolved [abdm](https://wordpress.org/support/users/abdm/)
 * (@abdm)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/)
 * Hi, I followed [the guide](https://wpadverts.com/documentation/google-analytics-integration-paid-addon/)
   but I get this error when try to save de config data:
 * `Google Service Exception: stdClass Object ( [error] => stdClass Object ( [errors]
   => Array ( [0] => stdClass Object ( [domain] => global [reason] => required [
   message] => Login Required [locationType] => header [location] => Authorization))[
   code] => 401 [message] => Login Required ) )`
 * Cheers.

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

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/#post-9551006)
 * Hi, have you added your service account email to Google Analytics? From the error
   you posted it looks like the credentials you are using are incorrect, this might
   mean few various things (email not added to GA, email copied to configuration
   incorrectly or something else).
 *  Thread Starter [abdm](https://wordpress.org/support/users/abdm/)
 * (@abdm)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/#post-9551233)
 * The email is copied from the generated json file. About the service account, 
   yes, is added. Look:
    [capture](https://abasedemusica.es/share/borrar/2017-10-03 11_06_28-Analytics.png)
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/#post-9554574)
 * I have no idea to be honest, can you email me here [https://wpadverts.com/contact/](https://wpadverts.com/contact/)
   a screen from your WPAdverts Google Analytics configuration, maybe this will 
   help?
 *  [rudolfnuessl](https://wordpress.org/support/users/rudolfnuessl/)
 * (@rudolfnuessl)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/#post-9666545)
 * Hi, I followed the installation guide mentioned above, tried to save it, but 
   I get the same error message:
 * Google Service Exception: stdClass Object ( [error] => stdClass Object ( [errors]
   => Array ( [0] => stdClass Object ( [domain] => global [reason] => required [
   message] => Login Required [locationType] => header [location] => Authorization))[
   code] => 401 [message] => Login Required )
 * My service account email is added to Google Analytics, any ideas?
    Thanks so 
   much for your help!
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/#post-9669287)
 * Hi, please make sure you are pasting the whole key into the Key field, that is
   starting with
 *     ```
       {
         "type": "service_account",
         ...
       ```
   

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

The topic ‘WPAdverts – Google Analytics – Setup’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/wpadverts-google-analytics-setup/#post-9669287)
 * Status: resolved