• Resolved wpkum

    (@wpkum)


    Why do CAOS adding <link rel='preconnect' href='//www.google-analytics.com' /> when the file was hosted locally?

    Page Speed Insights shows a Warning: A <link rel=preconnect> was found for “https://www.google-analytics.com&#8221; but was not used by the browser. Only use preconnect for important origins that the page will certainly request.

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

    (@daanvandenbergh)

    Because you still need to connect to the Google Analytics API (e.g. google-analytics.com/collect/) to send data to Google Analytics ??

    Are you using compatibility mode, by any chance? I just found out that CAOS still adds the preconnect even when Compatibilty Mode is enabled, which doesn’t make any sense, because the other plugin will/should do that, too.

    I’ll release a fix for that soon!

    Hello!

    I`m not sure if it’s related, but despite having the Pro version that enables the extended features. I also get the following warning in the browser developer tool, as well as not logging the events in Google Analytics.

    Failed to load resource: net::ERR_BLOCKED_BY_CLIENT (ublock extensión on Brave browser)

    https://www.google-analytics.com/g/collect?v=2&tid=G-XXXXXXXXXX&_p=884258048&sr&#8230;.

    CAOS’ setup

    – Basic Settings
    Service Provider: Google Analytics
    Allow tracking: Always (default)
    Tracking Code: Minimal analytics (GA4-beta)
    Tacking code position: Header (default)

    – Advanced Settings
    Compatibility mode: Unchecked
    Download file: Gtag.js (v4 API-Beta)

    Extensions
    Sealth mode (Pro): Checked
    Request handling (Pro): Fast (Super Stealh API)
    Cloudflare compatibility (Pro) Checked`

    Please can you guide me in the solution?
    Regards

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi @tchcs,

    This forum is for the free version of CAOS only. If you require support for CAOS Pro, please use this contact form.

    Please mention your site’s URL in your message, so I can take a look.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Fix for the preconnect header is fixed in the current release.

    Hi,

    I still have the issue and the plugin is up-to-date.

    SC: https://nimb.ws/dRueIL

    Kind regards,

    Marco

    same for me preconnect gtag.js?(V4 API)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Google Analytics preconnect’ is closed to new replies.