• James

    9 June 2023 at 8:15 pm

    In Google Analytics 4 (GA4), the implementation of custom dimensions and parameters is different from the previous versions. When you define new parameters in the GA4 interface, these parameters start to work from that moment onwards. They won’t retroactively apply to events that happened prior to their creation. This could be why you aren’t seeing these custom dimensions in your reports.

    In addition, to successfully track and report custom parameters, they must not only be sent in your GA4 event tags, but also registered in the GA4 interface. From your code, it seems you are correctly sending the parameters (event_category and event_label) via your gtag() call, and I assume you have also set them up in the GA4 interface.

    The delay you’re experiencing between triggering events on your website and those events appearing in GA4 is normal. Real-time reporting in GA4 is not immediate unlike Universal Analytics, and it can take between 24-48 hours for standard events and custom dimensions to appear in most reports.

    Ensure you’ve correctly defined your new dimensions: they should be set up as “event scoped”, and their names should be exactly as they appear in your code. Also consider waiting for at least 48 hours to see if the new parameters start to appear in your reports. You may want to reach out to a Google Analytics expert or Google’s support for an in-depth look into your specific situation.