• Resolved Jos Klever

    (@josklever)


    Hi,

    In my browser console I noticed the following errors:
    GET https://joskleverwebsupport.nl/wp-content/plugins/genesis-blocks/lib/Analytics/js/gaClient.js?ver=1637017568
    (on every page in my dashboard), because it’s blocked by my ad blocker.

    And:

    react-dom.min.js?ver=17.0.1:141: TypeError: Cannot read properties of undefined (reading 'GAClient')
        at app.js?ver=0914c1e0c381a8c783622e66816de6e8:41:165
        at Le (react-dom.min.js?ver=17.0.1:100:3)
        at Pj (react-dom.min.js?ver=17.0.1:231:183)
        at di (react-dom.min.js?ver=17.0.1:168:305)
        at Nj (react-dom.min.js?ver=17.0.1:168:236)
        at sc (react-dom.min.js?ver=17.0.1:168:96)
        at gf (react-dom.min.js?ver=17.0.1:162:109)
        at react-dom.min.js?ver=17.0.1:73:230
        at unstable_runWithPriority (react.min.js?ver=17.0.1:24:26)
        at Za (react-dom.min.js?ver=17.0.1:73:8)
    Ye @ react-dom.min.js?ver=17.0.1:141
    Mh.c.callback @ react-dom.min.js?ver=17.0.1:141
    dh @ react-dom.min.js?ver=17.0.1:80
    Bj @ react-dom.min.js?ver=17.0.1:145
    Qj @ react-dom.min.js?ver=17.0.1:176
    unstable_runWithPriority @ react.min.js?ver=17.0.1:24
    Za @ react-dom.min.js?ver=17.0.1:73
    eb @ react-dom.min.js?ver=17.0.1:170
    gf @ react-dom.min.js?ver=17.0.1:162
    (anonymous) @ react-dom.min.js?ver=17.0.1:73
    unstable_runWithPriority @ react.min.js?ver=17.0.1:24
    Za @ react-dom.min.js?ver=17.0.1:73
    $g @ react-dom.min.js?ver=17.0.1:73
    ja @ react-dom.min.js?ver=17.0.1:73
    Tj @ react-dom.min.js?ver=17.0.1:180
    unstable_runWithPriority @ react.min.js?ver=17.0.1:24
    Za @ react-dom.min.js?ver=17.0.1:73
    Ra @ react-dom.min.js?ver=17.0.1:178
    (anonymous) @ react-dom.min.js?ver=17.0.1:178
    R @ react.min.js?ver=17.0.1:16
    ua.port1.onmessage @ react.min.js?ver=17.0.1:22
    react.min.js?ver=17.0.1:22: Uncaught TypeError: Cannot read properties of undefined (reading 'GAClient')
        at app.js?ver=0914c1e0c…2e66816de6e8:41:165
        at Le (react-dom.min.js?ver=17.0.1:100:3)
        at Pj (react-dom.min.js?ver=17.0.1:231:183)
        at di (react-dom.min.js?ver=17.0.1:168:305)
        at Nj (react-dom.min.js?ver=17.0.1:168:236)
        at sc (react-dom.min.js?ver=17.0.1:168:96)
        at gf (react-dom.min.js?ver=17.0.1:162:109)
        at react-dom.min.js?ver=17.0.1:73:230
        at unstable_runWithPriority (react.min.js?ver=17.0.1:24:26)
        at Za (react-dom.min.js?ver=17.0.1:73:8)
    (anonymous)	@	app.js?ver=0914c1e0c…83622e66816de6e8:41
    Le	@	react-dom.min.js?ver=17.0.1:100
    Pj	@	react-dom.min.js?ver=17.0.1:231
    di	@	react-dom.min.js?ver=17.0.1:168
    Nj	@	react-dom.min.js?ver=17.0.1:168
    sc	@	react-dom.min.js?ver=17.0.1:168
    gf	@	react-dom.min.js?ver=17.0.1:162
    (anonymous)	@	react-dom.min.js?ver=17.0.1:73
    unstable_runWithPriority	@	react.min.js?ver=17.0.1:24
    Za	@	react-dom.min.js?ver=17.0.1:73
    $g	@	react-dom.min.js?ver=17.0.1:73
    ja	@	react-dom.min.js?ver=17.0.1:73
    Tj	@	react-dom.min.js?ver=17.0.1:180
    unstable_runWithPriority	@	react.min.js?ver=17.0.1:24
    Za	@	react-dom.min.js?ver=17.0.1:73
    Ra	@	react-dom.min.js?ver=17.0.1:178
    (anonymous)	@	react-dom.min.js?ver=17.0.1:178
    R	@	react.min.js?ver=17.0.1:16
    ua.port1.onmessage	@	react.min.js?ver=17.0.1:22

    (on the page /wp-admin/admin.php?page=genesis-blocks-settings)

    This is also happening with a default theme and no other plugins active. I’m using PHP 8.0, but it’s the samen at another site with PHP 7.4.

    The Genesis Blocks – Settings page is totally empty. I’m not sure if there should be settings (you would expect it, so the page makes sense.

    In the file ./lib/Analytics/AssetManager.php I see code that looks like the plugin is calling Google Analytics, so it would be tracking my activities, although I didn’t opt-in for that.

    Can you please explain this and hopefully solve it?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Jos Klever

    (@josklever)

    When I disable my ad blocker the errors are gone and the settings page is loading, so to make the settings page work, I actually need to allow a script to load, that shouldn’t be loaded. That’s strange. It shouldn’t be needed just to enable/disable an option.

    Subscribed as I want to know this as well.

    @josklever and other people that stumble upon this who want to get rid of the script. I managed to remove the script with this code snippet;

     add_action('admin_enqueue_scripts', 'remove_unwanted_analytics');
    function remove_unwanted_analytics() {
        $jquery_ui = array(
            "genesis-analytics-client",
        );
    
        foreach($jquery_ui as $script){
            wp_deregister_script($script);
        }
    }

    The code can be placed in the child themes functions.php or a code snippets plugin.

    Thread Starter Jos Klever

    (@josklever)

    Hoi Bianca!

    Thanks for this workaround and I’ll try it out, but I do hope that the plugin author will respond and explain why this is how it is.

    Hoi,

    I noticed that @studiopress added this in the last update. It should be disabled by default so something seems off. The code I provided above works but disables the settings menu in Genesis Blocks. So maybe @studiopress is able to look at this and fix?

    Thread Starter Jos Klever

    (@josklever)

    I’ve escalated the issue via the Genesis WordPress group on Facebook to one of the team leads, because this might be a violation of GDPR or even the plugin guidelines. I got the reply that this post is flagged, so I expect someone will have a look at this today.

    Plugin Support Matthew Cardenas

    (@mkcardenas)

    Hey Jos and Bianca,

    Thanks for raising this issue, and I apologize for the alarm this has caused. Our engineering team took a look at the code this morning and we’ll continue investigating why the gaClient script is running.

    No data is being reported, but the script shouldn’t be running if a user isn’t opted in. I’ll keep you all updated on our progress with the issue.

    Thank you again for bringing this to our attention!

    Thread Starter Jos Klever

    (@josklever)

    Solved with version 1.5.0, because the gaClient script was completely removed.

    Thanks for reporting back ????

    • This reply was modified 2 years, 4 months ago by Bianca.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Why is GAClient called when I’m not using it?’ is closed to new replies.