However, it would be useful and inexpensive to include these user properties in all event models.
We perform a similar operation with custom event properties which are defined in the project.yml and then included in the event models with this code block:
We allow users to list out specific user properties which are then added to this model: https://github.com/Velir/dbt-ga4/blob/main/models/staging/stg_ga4__user_properties.sql
However, it would be useful and inexpensive to include these user properties in all event models.
We perform a similar operation with custom event properties which are defined in the project.yml and then included in the event models with this code block:
Which uses this macro: https://github.com/Velir/dbt-ga4/blob/main/macros/stage_custom_parameters.sql
A similar 'stag user properties' macro could be created to accomplish the same thing for user properties.