• Resolved walterkeener3

    (@walterkeener3)


    I have this on about 50 sites and every few weeks i have to keep reauthorizing google and its just not efficient for managing multiple websites. Could you please let me know if there is a work around to make the authorization more stable? After I authorize i lock the google analytics account tied to it. Is there anything else i need to do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author chriscct7

    (@chriscct7)

    Hi there,
    So the problem is a single Google account can only authenticate into a maximum of 25 applications at a time, so when you auth into the 26th site, you’re also actually deauthenticating the first site.

    What you should do is use multiple Google accounts to authenticate in. A lot of people use Gsuite accounts since each Gsuite user can auth 25 times.

    For safety, we recommend not anything more than 20 times per account

    -Chris

    Plugin Author chriscct7

    (@chriscct7)

    This by the way is a Google limitation. Unfortunately we can’t do anything about it as it’s not coming from us or related to us. I wish they would expand this limit.

    -Chris

    Thread Starter walterkeener3

    (@walterkeener3)

    so if i add another gmail as a second user to the master google analytics account this would work? Or do i have to move all the google analytics accounts completely to another account?
    (thanks for your fast response)

    Hi Walter

    I’m going through exactly the same thing as I have 100+ websites using this.

    You don’t need to create a second gmail account, your 1 google account is allowed up to 50 analytics accounts, and each analytic account can have up to 50 properties (websites).

    So each Analytics account has a limit of 25 refresh tokens, what I did was to create 4 accounts within analytics and put 25 sites in each.

    This sounds like it should work, although it doesn’t, because once your authorised then that’s not finalised, access tokens get refreshed regularly and this can still cause some of the 25 to become unlinked.

    I have no idea what the answer is and you can see my question to the devs about this here: https://wordpress.org/support/topic/problem-with-refresh-tokens-limit/

    Plugin Author chriscct7

    (@chriscct7)

    Hi there,

    > 1 google account is allowed up to 50 analytics accounts, and each analytic account can have up to 50 properties (websites).

    This part is semi-true (you can have more on a paid 360 account).

    > So each Analytics account has a limit of 25 refresh tokens, what I did was to create 4 accounts within analytics and put 25 sites in each.

    This part is false. Refresh tokens are not specific to Google Analytics at all. They can, and generally do, contain access to multiple Google services. For example in our case we ask for Search console + GA access in order to be able to provide search console reports and tie them to Google Analytics.

    As a result, none of the limitations of refresh tokens in terms of their use (not the underlying API use of those tokens) is or can be mandated by individual Google products. These come from the team that independently maintains the oAuth2 system that Google employs, a service called the Google Identity Platform.

    Thus, the limitation is per Google account. Not per Google Analytics property or even per Google service.

    If someone has told you otherwise, quite simply they’ve misled you.

    They change the actual hard limit quarterly, and it fluctuates between 20 and 50, thus why we recommend no more than 20. The last guidance change we received was 25. While this limit is currently publicly documented as 50, we’ve observed through automated testing and error monitoring for it to be approximately 25.

    As this limit is applied per client, as we rotate through API apps for Quota management you may be able to authorize more than 25 on a single Google account but this is not the norm.

    We are working on a system to allow for unlimited authorizations under a single account but it will not be ready for production user usage until next year.

    -Chris

    Hi Chris @chriscct7

    Just wondering if you had an update on your system which allows for unlimited authorisations under a single account as you mentioned in your reply above?

    Many thanks
    Adrian

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Have to Reauthorize Every 2-4 Weeks’ is closed to new replies.