-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom item parameters in item_params
#284
Comments
Just want to confirm 2 things:
We don't apply any custom business rules from the project yml until I'm also up for creating a separate |
We already have a separate items model, it's I'd also like to rename that model to |
Oh right! Forgot about that one. I see what you mean about the model name. Slight preference to leave it alone to not break any user dependencies. If we see a lot of stg_ga4__ecommerce_* models coming in the future, I could be convinced we should update it. |
Hi, Is there any chance this will be considered in the future? |
Hey, thanks for the quick reply! I will be completely honest, I got confused, thought this was for default event-granularity parameters, not for item parameters. I'm still new to ga4 and I'm being confused with basic concepts, apologies. :( I thought that it would make sense to add any default_custom_parameters in the Regarding your PR, unfortunately we also don't have custom item parameters in our data so I cannot test. Running the code with mock custom_item_parameters, however, did create the corresponding fields in |
I wanted to start a discussion around supporting custom item parameters in
item_params
. In particular, I'd like to discuss where we unnest those parameters.With the changes to the
base_select
macros in 7ff99d7, it seems quite elegant to unnestitem_params
in thebase_select_renamed
macro as we are already unpacking and repacking theitems
record there.However, this macro is called in the
base_ga4__events
model. I dislike changing the base model because it should be the biggest table and the full refresh required when addingitem_params
is literally making the process of adding a new item parameter as expensive as possible.The alternative is unnesting in the
stg_ga4__event_items
model. This makes more sense to me as adding a new item parameter would only require a refresh of this model and any downstream models.I wanted to give others a chance to add their opinions before jumping in with a PR to address this.
The text was updated successfully, but these errors were encountered: