Learn business growth with Google Analytics 4 Forums Google Analytics 4 Can't get data from GA4 API prior to when an included Custom Definition was created Reply To: Can't get data from GA4 API prior to when an included Custom Definition was created

  • Jackson

    Member
    5 July 2023 at 1:59 am

    It seems like you’re encountering a fairly common issue when dealing with custom dimensions or metrics in platforms like Google Analytics 4. When you create a new custom dimension or metric, the data collection for that specific dimension/metric starts from the point it was created, it won’t retroactively pull data from before that creation date.

    In your case, it appears that even though your starting date for both evaluations started from May 1st, the new dimension (created on the 8th) only displayed data from its creation date forwards.

    That’s why your second Event Count descriptor matches the data for the 8th and 9th in both scenarios – it started collecting data from the same point in time. It’s more or less behaving as it should be, restricting the data from the point of creation of the dimension or metric.

    Unfortunately, there’s not a direct solution aside from planning your dimensions and metrics ahead of time. If retroactive data for the new dimension is crucial, you might need to look into exporting and reprocessing your raw data, depending on your data architecture and resources.