Skip to content

Conversation

@adamribaudo-velir
Copy link
Contributor

Description & motivation

This PR provides support for custom item parameters using a project variable of custom_item_parameters Ex:

vars:
  ga4:
    custom_item_parameters:
      - name: "item_variant_color"
        value_type: "string_value"
        rename_to: "color"

custom item parameters are exposed in the stg_ga4__event_items model, only.

Checklist

  • I have verified that these changes work locally
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)
  • I have run dbt test and python -m pytest . to validate existing tests

Copy link
Collaborator

@dgitis dgitis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a test property that uses custom item properties, but the code looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants