• Resolved haleeben

    (@haleeben)


    Hi

    I had my site setup with dual tracking, but I had to re-authorise two days ago, and now the Universal Analytics is automatically disabled, only GA4 is available.

    any help would be greatly appreciated.

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

    (@deconf)

    Hi,

    If universal analytics is disabled it means that no universal analytics properties are available on the Google account you’re authorizing with.

    Please make sure you are using the right Google account during authorization and also check the account’s properties on analytics.google.com.

    Thread Starter haleeben

    (@haleeben)

    Hi Alin

    Thanks for your response.

    It was working fine up until this week and it was connected to both Universal and GA4.

    But now when I re-authorize I do get an Error, here are the details

    Error Details
    Count: 4
    Last Error: 
    GAPI Error: 
    Array
    (
        [0] => 403
        [1] => Array
            (
            )
    
    )
    
    Sampled Data
    None

    Which I believe is a forbidden error.

    I have done some more testing and I think it may be an issue with the server and not your plugin.

    I run different sites on two VPS servers, on server2 the plugin works as expected and I get connected to Universal and GA4, but on server1 I now get the above error with all sites on that server when I try to re-authorise. This has only started to happen over the last few days.

    On server1 I also tried to install Google Site Kit and I get an error ‘google_api_connection_fail’, after reading some debugging tips I tried this command on the server curl -I https://sitekit.withgoogle.com it returns 403 as well.

    Do you have any insights into what might be the cause of this issue?

    And help is greatly appreciated.

    Thanks

    Plugin Author Alin Marcu

    (@deconf)

    I would start by checking server’s outgoing connection, and check if SSL connections are working properly (there are no outdated CA root certificates, and stuff).

    Related to SSL issues you may find this useful: https://www.ads-software.com/support/topic/cant-authenticate-on-local-dev-staging-installation/

    • This reply was modified 2 years, 4 months ago by Alin Marcu.
    Thread Starter haleeben

    (@haleeben)

    Hi Alin

    I spoke with my web host and they notice when testing that the curl requests to some Google URLs were rejected/forbidden through IP6, but forcing the requests to IP4 would work.

    I also noticed that when I tried to embed YouTube videos they were failing as well, I did manage to find a fix for the Youtube embeds which forces IP4.

    
    function gw_curl_setopt_ipresolve( $handle ){	
    	curl_setopt( $handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
    	return $handle;
    }
    add_action( 'http_api_curl', 'gw_curl_setopt_ipresolve', 10, 1);
    

    Is there a way to force IP4 connections with your plugin?

    Thanks

    Plugin Author Alin Marcu

    (@deconf)

    I added that feature to 5.8.4. If you would like to test it, here’s the pre-release:

    https://github.com/deconf/Analytics-Insights/releases/download/5.8.4a/analytics-insights.zip

    You’ll need to define at the end of your wp-config.php file this constant:

    define( 'AIWP_FORCE_IP_RESOLVE', 'v4');

    to force IPv4

    Thread Starter haleeben

    (@haleeben)

    Hi Alin

    Wow, that’s awesome.

    Thanks so much for the quick addition of this feature.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dual Tracking no longer available’ is closed to new replies.