This PR will address the following Issue/Feature: Feature project to add conversions.
This PR will result in the following new package version:
See CHANGELOG
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Feature Updates: Conversion Support!
We have added more robust support for conversions in our data models by doing the following:
Created a snapchat_ads__conversion_fields variable to pass through additional conversion metrics in the stg_snapchat_ads__ad_hourly_report,stg_snapchat_ads__ad_squad_hourly_report and stg_snapchat_ads__campaign_hourly_report models.
Set variable defaults in the dbt_project.yml to bring in the most used conversion field conversion_purchases.
Ensured backwards compatibility with existing passthrough column variables in these models by creating snapchat_ads_add_pass_through_columns and snapchat_ads_fill_pass_through_columns macro checks for whether these fields already are brought in by the existing passthrough variables. This ensures there are no duplicate column errors if both the new conversion variable and the old passthrough variable are leveraged in either stg_snapchat_ads__*_hourly_report* data model.
Brought in the conversion_purchases_value field to the above mentioned stg_snapchat_ads__*_hourly_report* model
The above new field additions are 🚨 breaking changes 🚨 for users who were not already bringing in conversion fields via passthrough columns.
Documentation Update
Documents the ability to transform metrics provided to the snapchat_ads__conversion_fields variable in the README.
Added new metrics to src and stg yml files.
Under the Hood
Updated snapchat_*_hourly_report_data seed files with relevant conversion fields for more robust testing.
PR Overview
This PR will address the following Issue/Feature: Feature project to add conversions.
This PR will result in the following new package version:
See CHANGELOG
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Feature Updates: Conversion Support!
We have added more robust support for conversions in our data models by doing the following:
snapchat_ads__conversion_fields
variable to pass through additional conversion metrics in thestg_snapchat_ads__ad_hourly_report
,stg_snapchat_ads__ad_squad_hourly_report
andstg_snapchat_ads__campaign_hourly_report
models.dbt_project.yml
to bring in the most used conversion fieldconversion_purchases
.snapchat_ads_add_pass_through_columns
andsnapchat_ads_fill_pass_through_columns
macro checks for whether these fields already are brought in by the existing passthrough variables. This ensures there are no duplicate column errors if both the new conversion variable and the old passthrough variable are leveraged in eitherstg_snapchat_ads__*_hourly_report*
data model.conversion_purchases_value
field to the above mentionedstg_snapchat_ads__*_hourly_report*
modelDocumentation Update
snapchat_ads__conversion_fields
variable in the README.src
andstg
yml files.Under the Hood
snapchat_*_hourly_report_data
seed files with relevant conversion fields for more robust testing.Contributors
PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please share any and all of your validation steps:
Compiled models successfully using various permutations of the passthrough columns/conversion fields vars.
If you had to summarize this PR in an emoji, which would it be?
🛝