Google Analytics Widget Errors – (401) Invalid Credentials

This topic contains 5 replies, has 3 voices, and was last updated by  Lauren Randolph 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #402228

    Lauren Randolph
    Expired Member
    Post count: 40

    I was getting a null response back when I would click on the Google Analytics button on the listing. It seems to be an issue with WooCommerce Google Analytics Pro by Skyverge. I dug into the issue a bit more and got this stack trace:

    #0 /home/laurenr9/public_html/dev/wp-content/plugins/woocommerce-google-analytics-pro/lib/google/google-api-php-client/src/Google/Http/REST.php(62): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request), Object(Google_Client))
    #1 [internal function]: Google_Http_REST::doExecute(Object(Google_Client), Object(Google_Http_Request))
    #2 /home/laurenr9/public_html/dev/wp-content/plugins/woocommerce-google-analytics-pro/lib/google/google-api-php-client/src/Google/Task/Runner.php(174): call_user_func_array(Array, Array)
    #3 /home/laurenr9/public_html/dev/wp-content/plugins/woocommerce-google-analytics-pro/lib/google/google-api-php-client/src/Google/Http/REST.php(46): Google_Task_Runner->run()
    #4 /home/laurenr9/public_html/dev/wp-content/plugins/woocommerce-google-analytics-pro/lib/google/google-api-php-client/src/Google/Client.php(590): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
    #5 /home/laurenr9/public_html/dev/wp-content/plugins/woocommerce-google-analytics-pro/lib/google/google-api-php-client/src/Google/Service/Resource.php(237): Google_Client->execute(Object(Google_Http_Request))
    #6 /home/laurenr9/public_html/dev/wp-content/plugins/woocommerce-google-analytics-pro/lib/google/google-api-php-client/src/Google/Service/Analytics.php(3162): Google_Service_Resource->call(‘list’, Array, ‘Google_Service_…’)
    #7 /home/laurenr9/public_html/dev/wp-content/plugins/geodirectory/geodirectory-admin/class.analytics.stats.php(124): Google_Service_Analytics_ManagementProfiles_Resource->listManagementProfiles(‘XXXXXXXX’, ‘UA-XXXXXXX-X’)
    #8 /home/laurenr9/public_html/dev/wp-content/plugins/geodirectory/geodirectory-functions/google_analytics.php(112): GDGoogleAnalyticsStats->getSingleProfile()
    #9 /home/laurenr9/public_html/dev/wp-content/plugins/geodirectory/geodirectory-functions/ajax_handler_functions.php(429): geodir_getGoogleAnalytics(‘/hotels/united-…’, ”, ”)
    #10 [internal function]: geodir_show_ga_stats(”)
    #11 /home/laurenr9/public_html/dev/wp-includes/class-wp-hook.php(298): call_user_func_array(‘geodir_show_ga_…’, Array)
    #12 /home/laurenr9/public_html/dev/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #13 /home/laurenr9/public_html/dev/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #14 /home/laurenr9/public_html/dev/wp-admin/admin-ajax.php(91): do_action(‘wp_ajax_gdga’)
    #15 {main}

    It looks like it’s using their copy of the Google API PHP Client, which is slightly different than yours (http://www.mergely.com/7zE1ykpc/). I’m using https://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/ instead, but I thought I’d let you guys know about the issue.

    #402246

    Kor
    Moderator
    Post count: 16516

    Hi Lauren,

    Looks like it is conflicting with GD. I’ll forward this to a developer.

    Thanks!

    #402297

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Lauren,

    I am guessing that plugin is not free? If you can provide it i will take a look, if its an easy fix i will look into it if you still intend to use it?

    Stiofan

    #402364

    Lauren Randolph
    Expired Member
    Post count: 40
    This reply has been marked as private.
    #402471

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the link, it seems they are using a older version of the Google API, if they upgrade to the latest V1 version (1.1.8) it should work, there is not much else we can suggest.

    Thanks,

    Stiofan

    #404495

    Lauren Randolph
    Expired Member
    Post count: 40

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket