Add GA4 dimension and metric filter possiblity to the form

Created on 21 June 2023, over 1 year ago
Updated 11 July 2023, over 1 year ago

Problem/Motivation

Currently, you can set 1 custom metric and 1 custom dimension. But if you want to apply extra filters or aggregation to the metrics or dimensions, you have to alter the requested query by subscribing to the 'google_analytics_counter.query_alter' (\Drupal\google_analytics_counter\Event\GoogleAnalyticsCounterQueryAlterEvent) event.

Find a way to set these filters and conditions reliably from UI, similar to how the GA4 API dev helper page does: https://ga-dev-tools.google/ga4/query-explorer/

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kaszarobert
  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    Alright, the complexity makes it not possible to implement for 4.0.x, we have to target a later version. Until then, using custom a module you can alter the query the way you'd like. Just subscribe to the google_analytics_counter.query_alter (GoogleAnalyticsCounterQueryAlterEvent).

    Patches are welcome if someone wants to start with custom dimension and metric filters and conditions.

  • Status changed to Postponed: needs info over 1 year ago
Production build 0.71.5 2024