Bug Error in linking to Analytics

Discussion in 'Better Analytics' started by TheLoophole, Jan 20, 2016.

  1. #1
    When I try to link the widget to my Analytics account I keep getting the same error:

    Unknown Google API Error::
    NULL

    This happens both when I try:
    Google Analytics Web Property ID not selected. (Settings)
    Google Analytics account not linked for API functions. (API settings)

    How can I fix this?
     
    TheLoophole, Jan 20, 2016 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    When you use the option to link your Google Analytics account, are you taken to an authentication screen?
     
    digitalpoint, Jan 20, 2016 IP
  3. TheLoophole

    TheLoophole Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Jup, get the allow screen or code but when I use it I get this error
     
    TheLoophole, Jan 20, 2016 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    One other thing to check real quick... if you go through the process again and get the error, can you immediately reload the page? If there's an internal WordPress error with making the callback to Google's API servers, the WordPress error should show at the top of the page for up to 9 seconds afterwards. So if you go through it, get the error, then just reload the page you are on within 9 seconds after you get the error, does it show anything?
     
    digitalpoint, Jan 20, 2016 IP
  5. TheLoophole

    TheLoophole Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    Nope, nothing happening... just the same message
     
    TheLoophole, Feb 18, 2016 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Do you by chance have access to a different server to try it and check if whatever it is is specific to that one server?
     
    digitalpoint, Feb 18, 2016 IP
  7. TheLoophole

    TheLoophole Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    I have tried installing it at my work at a work laptop (this is a different server right?) Still the same error. I would really like to get this fixed and start tracking the traffic on my website... what would you recommend me?
     
    TheLoophole, Feb 22, 2016 IP
  8. TheLoophole

    TheLoophole Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #8
    OK. Spend another afternoon trying to get this to work. I have manually enabled the Analytics API, created a client ID and added the redirect URL. Still, when I try to give the plugin access; same unknown error. When I check which apps have access already Digital Point is listed there, but it is not functioning and my dashboard keeps turning red with errors. What is going on?
     
    TheLoophole, Feb 23, 2016 IP
  9. TheLoophole

    TheLoophole Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #9
    Failed to connect to 2a00:1450:4013:c00::54: Network is unreachable
     
    TheLoophole, Feb 25, 2016 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    Ah... now you are on to something. Sounds like your server has IPv6 setup, but not an IPv6 router... meaning it has an IPv6 address assigned, but can't reach IPv6 addresses. If your server uses IPv6, some IPs (like Google's API) will resolve to IPv6 addresses for the server. But then it can't *reach* them because it doesn't have an IPv6 router.

    Easiest thing to do would be to disable IPv6 on your server. The other option would be to have an IPv6 router that works that your server is connected to. Right now it seems like the server thinks it's IPv6 enabled, but it can't use it, and fails when it tries.
     
    digitalpoint, Feb 28, 2016 IP