• Resolved mikeaustria

    (@mikeaustria)


    Unfortunately, my detailed error description was deleted by Mr. Jan Dembowski. (review section – my mistake)

    Short version:
    Authorization has worked perfectly since the update, but AIWP no longer records any data.
    After manually inserting code (Google Analytics) into the homepage, the data is displayed correctly in the widget.

    It looks to me like the ID is missing from the code? (/gtag/js?id=”)
    I deleted the plugin, reauthorized, cleared cache, tested everything with 3 websites… same error everywhere. – no received data in Google Analytics.

    Source code from the homepage:

    <!-- BEGIN AIWP v5.8.11 Global Site Tag - https://deconf.com/analytics-insights-for-wordpress/ -->
    <script async consent-original-src-_="https://www.googletagmanager.com/gtag/js?id=" consent-required="4987" consent-by="services" consent-id="4988" consent-original-type-_="application/javascript" type="application/consent"></script>
    <script consent-required="4987" consent-by="services" consent-id="4988" consent-original-type-_="application/javascript" type="application/consent" consent-inline="
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', '', {
    	'allow_display_features': false
      });
      if (window.performance) {
        var timeSincePageLoad = Math.round(performance.now());
        gtag('event', 'timing_complete', {
          'name': 'load',
          'value': timeSincePageLoad,
          'event_category': 'JS Dependencies'
        });
      }
    "></script>
    <!-- END AIWP Global Site Tag -->
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alin Marcu

    (@deconf)

    Hi,

    Under Tracking Code section have you selected the Google Analytics 4 option?

    Also it looks like you’re using a consent plugin which may intentionally remove the id until a user consent is given. Try disabling that plugin, clear cache, and see if the id gets inserted.

    • This reply was modified 1 year, 7 months ago by Alin Marcu.
    Thread Starter mikeaustria

    (@mikeaustria)

    Hi,

    I have selected Google Analytics 4 and Code Placement is HTML Head.
    I use “Real Cookie Banner” as consent plugin.
    Even if I deactivate the plugin and start an Ikognito-Tab (= clear cache) the ID is not displayed. (Cache plugin has also been disabled.)
    Before the plugin update, the recording worked without any problems on all my homepages.
    I also had the authorization problem, which has now been fixed, but there is no longer any recording.
    Since 07/14/2023 the plugin has stopped recording data.
    The error occurred with 2 different hosts and 2 different themes / 3 homepages.

    Kind regards
    Mike

    Plugin Author Alin Marcu

    (@deconf)

    Hi,

    Please post the plugin settings. Make sure the token is hidden (it should be if the WP_DEBUG is set to false). If you want to anonymize settings further, you can completely remove domain names, but on tracking IDs please anonymize only the last two digits changing with X for example.

    Thread Starter mikeaustria

    (@mikeaustria)

    Thank you for your support.
    I’ve just found “my” mistake myself and I’m wondering if something like this only happens to me, or if this attitude can perhaps be made a little easier to see.

    Mistake:
    Tracking Code – Basic Settings

    It is correctly preselected:
    Google Analytics 4
    HTML header

    Only that I have to confirm this setting so that they become active, I didn’t think of that.
    If there had been “Please select”, I would have immediately hit on the idea of clicking “Save”.

    I don’t want to criticize your work and thank you again for the support.
    My suggestion may be helpful for future improvements.

    Kind regards
    Mike

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘GA4 property is not recorded’ is closed to new replies.