Title: Not always loading stats + errors
Last modified: December 26, 2020

---

# Not always loading stats + errors

 *  Resolved [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/not-always-loading-stats-errors/)
 * Used to plugin for years without any issues and domain has been authorized successfully.
   Use the same plugin on two other websites using the same Google API login without
   any issues. Recently, however, it started behaving strangely. Stats are not always
   displayed, but are stuck on load. Also, I get a bunch of errors:
 * 2020-12-26 21:49:16: Deconfin_Service_Exception: Error calling GET https:// www.
   googleapis.com/analytics/v3/data/ga?ids=ga%3A165928924&start-date=today&end-date
   =today&metrics=ga%3Asessions%2Cga%3Ausers%2Cga%3Apageviews%2Cga%3ABounceRate%
   2Cga%3AorganicSearches%2Cga%3ApageviewsPerSession%2Cga%3AavgTimeOnPage%2Cga%3AavgPageLoadTime%
   2Cga%3AavgSessionDuration&quotaUser=u1s1p165928924&samplingLevel=HIGHER_PRECISION:(
   401) Request had invalid authentication credentials. Expected OAuth 2 access 
   token, login cookie or other valid authentication credential. See https:// developers.
   google.com/identity/sign-in/web/devconsole-project. in /home/public_html/wp-content/
   plugins/ga-in/tools/src/Deconfin/Http/REST.php:110
    Stack trace: #0 /home/public_html/
   wp-content/plugins/ga-in/tools/src/Deconfin/Http/REST.php(62): Deconfin_Http_REST::
   decodeHttpResponse(Object(Deconfin_Http_Request), Object(Deconfin_Client)) #1/
   home/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Task/Runner.php(
   174): Deconfin_Http_REST::doExecute(Object(Deconfin_Client), Object(Deconfin_Http_Request))#
   2 /home/public_html/wp-content/plugins/ga-in/tools/src/Deconfin/Http/REST.php(
   46): Deconfin_Task_Runner->run() #3 /home/public_html/wp-content/plugins/ga-in/
   tools/src/Deconfin/Client.php(611): Deconfin_Http_REST::execute(Object(Deconfin_Client),
   Object(Deconfin_Http_Request)) #4 /home/public_html/wp-content/plugins/ga-in/
   tools/src/Deconfin/Service/Resource.php(240): Deconfin_Client->execute(Object(
   Deconfin_Http_Request)) #5 /home/public_html/wp-content/plugins/ga-in/tools/src/
   Deconfin/Service/Analytics.php(2052): Deconfin_Service_Resource->call(‘get’, 
   Array, ‘Deconfin_Servic…’) #6 /home/public_html/wp-content/plugins/ga-in/tools/
   gapi.php(361): Deconfin_Service_Analytics_DataGa_Resource->get(‘ga:165928924’,‘
   today’, ‘today’, ‘ga:sessions,ga:…’, Array) #7 /home/public_html/wp-content/plugins/
   ga-in/tools/gapi.php(515): GAINWP_GAPI_Controller->handle_corereports(‘165928924’,‘
   today’, ‘today’, ‘ga:sessions,ga:…’, Array, ‘qr3_702481147’) #8 /home/public_html/
   wp-content/plugins/ga-in/tools/gapi.php(953): GAINWP_GAPI_Controller->get_bottomstats(‘
   165928924’, ‘today’, ‘today’, false) #9 /home/public_html/wp-content/plugins/
   ga-in/admin/ajax-actions.php(116): GAINWP_GAPI_Controller->get(‘165928924’, ‘
   bottomstats’, ‘today’, ‘today’, false, ‘sessions’) #10 /home/public_html/wp-includes/
   class-wp-hook.php(287): GAINWP_Backend_Ajax->ajax_item_reports(”) #11 /home/public_html/
   wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #12 /home/
   public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #13 /home/
   public_html/wp-admin/admin-ajax.php(184): do_action(‘wp_ajax_gainwp_…’) #14 {
   main}
    -  This topic was modified 5 years, 3 months ago by [danniee](https://wordpress.org/support/users/danniee/).
    -  This topic was modified 5 years, 3 months ago by [danniee](https://wordpress.org/support/users/danniee/).

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

 *  [Asad Shahbaz](https://wordpress.org/support/users/artisticasad/)
 * (@artisticasad)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/not-always-loading-stats-errors/#post-13838044)
 * Hi [@danniee](https://wordpress.org/support/users/danniee/)
 * I have checked the error stack trace and it appears to be a conflict with “GAinWP”
   plugin, The errors you are seeing are related to it.
 * Please try disabling that plugin and check stats again if you see any error in
   the dashboard.
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/not-always-loading-stats-errors/#post-13838840)
 * Hi,
 * Thanks for the reply. I’m a bit confused however. Isn’t GainWP your plugin?
 *  [Asad Shahbaz](https://wordpress.org/support/users/artisticasad/)
 * (@artisticasad)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/not-always-loading-stats-errors/#post-13842224)
 * No, GAinWP is not our plugin. 🙂
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/not-always-loading-stats-errors/#post-13843389)
 * Sorry about this :/

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

The topic ‘Not always loading stats + errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-analytify/assets/icon-256x256.png?rev=2901093)
 * [Analytify - Google Analytics Dashboard For WordPress (GA4 analytics tracking)](https://wordpress.org/plugins/wp-analytify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-analytify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-analytify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-analytify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-analytify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-analytify/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [danniee](https://wordpress.org/support/users/danniee/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/not-always-loading-stats-errors/#post-13843389)
 * Status: resolved