I get the message “Access blocked: Google Analyticator for WordPress’s request is invalid”. But I see this is a known issue and the developer has not responded. This is abandonware, waste your time with it at your peril!
]]>Hello,
We’re seeing a TypeError occur regularly on one of the sites we manage.
In /wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php, line 123, where getting the following uncaught error:
implode(): Argument #2 ($array) must be of type ?array, string given
Happy to share more details via a private channel with stack trace details, etc. if needed.
]]>I am receiving fatal errors with Analyticator. I reset the plugin and now when I try to authenticate, Google returns a 400 and says the request is not allowed. Google provides details: Access blocked: Google Analyticator for WordPress’s request is invalid. The error details say that out-of-band flow has been blocked for security reasons. And that the plugin developer must migrate: https://developers.google.com/identity/protocols/oauth2/resources/oob-migration
At this time, the plugin is useless.
]]>We recently upgraded to PHP 8.1 and are discovering some bugs in code that was just fine under 7.4. One that surfaced today when I tried to customize the appearance of the theme. It originated from the Analyticator plugin (version 6.5.7). Here’s the stack trace:
[27-Feb-2023 15:28:16 UTC] PHP Fatal error: Uncaught Error: Class "Google_ServiceResource" not found in /dom25963/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php:25
Stack trace:
#0 /dom25963/wp-content/plugins/google-analyticator/class.analytics.stats.php(34): require_once()
#1 /dom25963/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php(100): GoogleAnalyticsStats->__construct()
#2 /wordpress-versions/6.1.1/wp-includes/class-wp-widget.php(535): GoogleStatsWidget->form(Array)
#3 /wordpress-versions/6.1.1/wp-admin/includes/widgets.php(274): WP_Widget->form_callback(Array)
#4 /wordpress-versions/6.1.1/wp-includes/class-wp-customize-widgets.php(1128): wp_widget_control(Array, Array)
#5 /wordpress-versions/6.1.1/wp-includes/class-wp-customize-widgets.php(1076): WP_Customize_Widgets->get_widget_control(Array)
#6 /wordpress-versions/6.1.1/wp-includes/class-wp-customize-widgets.php(714): WP_Customize_Widgets->get_available_widgets()
#7 /wordpress-versions/6.1.1/wp-includes/class-wp-hook.php(308): WP_Customize_Widgets->enqueue_scripts('')
#8 /wordpress-versions/6.1.1/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#9 /wordpress-versions/6.1.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /wordpress-versions/6.1.1/wp-admin/customize.php(123): do_action('customize_contr...')
]]>
Hello,
If I write JS code with line breaks or simple quotes in the “Additional Tracking Code” settings area, the code is correctly printed in the page but the quotes are escaped with a backslash and new lines appeared as \n. Hence, the JS code is rendered invalid.
Regards,
]]>I was seeing errors in my logs for calls to Google_REST.php
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given
The fix seems to be to reverse the order of the arguments, since the old format was deprecated. See PHP: implode – Manual
]]>Hi, I updated the Analyticator plugin yesterday and since that Google Analytics is not getting data:
I can’t authenticate Analyticator with Google Analytics and this is the error message:
Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Detalles de la solicitud: redirect_uri=urn:ietf:wg:oauth:2.0:oob
]]>Getting error:
This app is blocked
This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.
I have seen other messages on this topic but no responses for over 3 weeks.
Is this plugin being supported? How can we solve this?
jQuery Migrate Helper has reported the following deprecation issue and recommends this to be fixed as soon as possible.
Issue: jQuery.fn.click() event shorthand is deprecated
File: google-analyticator/external-tracking.min.js
Line #25:
Currently we have: a.click( function() {...} );
Fix: a.on( 'click', function(){...} );
Line #45:
Currently we have: a.click( function() {...} );
Fix: a.on( 'click', function(){...} );
Hi again,
In my ongoing quest to stamp out bugs revealed by PHP 8.0, I found that an included file with Google Analyticator has the wrong order for the implode()
function.
The file is google-api-php-client/src/io/Google_REST.php
, and, on line 123, we have:
$requestUrl .= '?' . implode($queryVars, '&');
Now this used to be an acceptable syntax, but it became deprecated with PHP 7.4 (throws a warning) and finally removed under PHP 8.0 (throws a fatal error). The correct way of writing this line is:
$requestUrl .= '?' . implode('&', $queryVars);
I understand that this bit of code is actually inside an included library, originally developed by Google itself… in 2010 (!), when PHP 5.2 was still in use (!!!).
Indeed, the page for that library has been archived, and it continues to be maintained by Google in GitHub instead. While Google considers them ‘official’ (in the sense that they are kept up-to-date regarding their current services), the feature set is ‘frozen’ and doesn’t get any further updates. On the other hand, they do some maintenance (bug fixes, addressing security issues, removing obsolete/deprecated code, etc.(, in particular, the library is fully compatible with PHP 8.0. I’ve even checked the very same line on the source code, and, aye, the parameter order for implode()
is indeed correctly written: https://github.com/googleapis/google-api-php-client/blob/fa3641c1a6e3e8832d70e70e93b42327c4efab78/src/Service/Resource.php#L303
Google uses this library for Site Kit, their official plugin for WordPress. People seem to either love it or hate it, so there is still some place for Google Analyticator to ‘compete’ directly with Google. Since you already use their API libraries, all you need to do is to update them! ??
]]>I’ve been updating many of my sites to PHP 8.0 to see what breaks, and it looks like Google Analyticator is unfortunately among the ‘fail’ crowd:
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in <WP-PATH>/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_Utils.php on line 58
This is actually very easy to fix, just change line 58 from
$ordinalValue = ord($str{$ret});
to
$ordinalValue = ord($str[$ret]);
That’s it!
]]>hello
i’ve noticed that this plugin appears to be interfering with the display of the footer widgets in wordpress 5.5.3
if i disable it the widgets appear as normal, if enabled the widgets disappear and i’m unable to edit them
has anyone else noticed this? maybe it’s a problem more to do with wordpress than google ananlyticator?
plus i’m starting to receive the critical error messages across my sites: “In this case, WordPress caught an error with one of your plugins, Google Analyticator.”
]]>Is there a timeline for when this plugin will be updated to add compatibility with the latest Google Analytics tracking code (gtag.js)?
Also, the plugin shows as not being tested with the latest version of WordPress. Any idea when that will change?
Thanks!
]]>When will this plugin either be updated or checked for compability with wordpress 5.5.1
]]>Login with Google in this app has been temporarily disabled
We have not verified this app yet so you can use Google login.
Watch this video: https://www.loom.com/share/5725872d817f4a3da078b7b342054103
]]>Does this work with google tag manager or do i need to install another plugin to handle that?
]]>How hiding of Administrator visits without affecting Google Analytics’ site overlay feature?
]]>I can’t even uninstall it.
]]>Why do I get this notice?
]]>Loading failed for the <script> with source “https://mydomain/wp/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.5.4”.
So, when I try to “sign in to Google and grant this plugin access to your Google Analytics account”, Google will throw back this error message and refuses to proceed to allow me to get a Google Authentication Code:
<strong>Sign in with Google temporarily disabled for this app</strong>
This app has not been verified yet by Google in order to use Google Sign In.
A check of this support forum shows at least 2 other similar but unresolved posts in the last 4 months, even though this fantastic plugin, Google Analyticator (big thanks, by the way, for this great plguin! ?? ) was recently updated 3 weeks ago (as of the time this was posted).
Appreciate if the developer can advise ASAP as to when this issue can be resolved. THANK
]]>Google Analyticator has just worked for me, quietly sitting there in the background doing what it should without a complaint for many years ??
But a couple of days ago, having just gone into the front-end customiser it caused a “Critical Error”. WordPress sent me a nice recovery email, so I was able to get back in and start investigating.
Had just updated the theme, so tried rolling that back a version. Didn’t change anything.
Had just updated AllinoneSEO, so likewise tried rolling that back a version. Also changed nothing.
HADN’T updated Google Analytics, but that was the plugin that the error mentioned (and in the recovery login it said GA had failed to start correctly). Disabling this solved the problem – temporarily (obviously disabling this permanently isn’t a good solution!). Can anyone help?
Recovery email:
WordPress version 5.3.2
Current theme: Customizr Pro (version 2.1.41)
Current plugin: Google Analyticator (version 6.5.4)
PHP version 7.3.14
Error Details
=============
An error of type E_ERROR was caused in line 288 of the file /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php. Error message: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: ‘{
“error”: “invalid_grant”,
“error_description”: “Bad Request”
}’ in /home/sites/1b/f/f9ae20ea13/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288
Stack trace:
#0 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)
#1 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(‘**Deleted for public posting in case this is a security thing**’)
#2 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))
#3 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Google_ServiceRes
I’ve been using this plugin for years. Currently I’m on 6.5.4.
I don’t check my analytics often, but today I discovered that they stopped on November 19, 2019. Checking the source view of a page in a Private window, I see the Analyticator code; it is sending ‘UA-XXXXXXXX-X’ as the account. Nowhere in the back end do I see a warning that Analyticator has turned off tracking.
In Google Analyticator, the Analytics Account shows “UA-XXXXXXXX-X”. I don’t know if that’s obfuscated or if it has lost my tracking code. “Hide Google Analytics UID after saving” is not checked.
If I scroll to the bottom of the Settings page, I see “You have not authenticated with Google – you cannot use dashboard widgets!” I don’t need the dashboard widgets so I assume I do not need to authenticate with Google. I vaguely remember declining a prompt asking me to authenticate since I don’t use the widget. (Just tried to authenticate and can’t anyway–blocked for this app.)
After manually pasting in the tracking code on the Settings page, it is inserting it again. But now I see from other posts that others have been having lots of problems lately. I guess it’s time to use another plugin.
I appreciate the good service over the years.
]]>for Google Authentication Code have in eror :
Signing in with Google has been temporarily disabled for this app
This app has not yet been approved by Google for use with Google Sign In.
Does this plugin allow for sales/conversion tracking? I might think that Event tracking or Enhanced Link Attribution would need to be set for this but you don’t have it documented well enough to know what those do or what settings need to be changed to make sure it tracks this.
]]>I get this error when I try to setup the plugin:
Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In.
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: '{, referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: "error": "invalid_grant",, referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: "error_description": "Bad Request", referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: }' in /data/vhosts/prova.tld/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288, referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: Stack trace:, referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: #0 /data/vhosts/prova.tld/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array), referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: #1 /data/vhosts/prova.tld/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken('1/LV4-DsXQPXZYQ...'), referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: #2 /data/vhosts/prova.tld/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest)), referer: https://prova.tld/
[Wed Nov 06 18:22:33 2019] [warn] [client 51.179.109.252] mod_fcgid: stderr: #3 /data/vhosts/prova.tld/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(1010): Google_ServiceResource->__call('list', Ar in /data/vhosts/prova.tld/httpdocs/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288, referer: https://prova.tld/
With a blank page so for me is impossible to change the parameters and do anything.
]]>Hey,
we’d like to integrate Google Optimize but I can’t seem to find a way to integrate it with this plugin.
I tried to add some code snippets to “Additional Tracking Code” but it’s not working. What do I need to do?
Your help would be greatly appreciated!
Cheers.
]]>Does this plug in work with multi-sites if so how do i work it.
]]>Hi there.
I was wondering if anyone has done anything similar to the title?
Trying to remove the code based on User Agents.
Cheers.
]]>On [site-url]/wp-admin/customize.php?return=%2Femandminbeantown%2Fwp-admin%2Fnav-menus.php%3Fmenu%3D36&autofocus[control]=header_image , I am getting the following:
Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: ‘{ “error”: “invalid_grant”, “error_description”: “Bad Request” }’ in [site-url]/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288 Stack trace: #0 [site-url]/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array) #1 [site-url]/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(‘1/QrGirWBffoJy7…’) #2 [site-url]/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest)) #3 [site-url]/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Google_ServiceResource->__c in [site-url]/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288
WordPress 5.2.1 running Twenty Twelve theme.
Running PHP version: 7.3.1 on local site
Also had the error on PHP 7.2.11 on a staging site