This data mart and code block is dependent on the following data marts being updated in order to update with new data:
The proper sequence of either a Workflow or position in a Script Manifest file to populate this Data Mart is highlighted in the page
Copy order_channel_stg:
integrations:
- google_analytics
scripts:
# - "github://platform-sql-shared/scripts/datamart/13_channel_attribution/000_CHN_BAS_reset_order_attribution.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/001_CHN_BAS_table_creation.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/003_CHN_BAS_temp_uts_multi_channel_funnel.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/005_CHN_BAS_stg_orders_update_list.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/110_CHN_BAS_stg_ga_last_click_raw.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/120_CHN_BAS_stg_ga_last_click.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/130_CHN_BAS_stg_first_click.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/140_CHN_BAS_stg_first_ad_click.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/150_CHN_BAS_stg_last_ad_click.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/160_CHN_BAS_stg_first_mktg_click.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/170_CHN_BAS_stg_last_mktg_click.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/180_CHN_BAS_stg_discount_code_channel.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/190_CHN_BAS_stg_order_attribution_detail.sql"
order_attribution_enquire:
integrations:
- enquire_labs
scripts:
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/200_CHN_BAS_stg_self_reported_channel.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/201_CHN_BAS_stg_order_attribution_detail_insert_enquire.sql"
order_channel_attribution:
integrations:
- google_analytics
scripts:
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/210_CHN_BAS_stg_merchant_attribution.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/220_CHN_BAS_stg_order_attribution_detail_insert_ma.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/230_CHN_BAS_order_attribution_detail.sql"
- "github://platform-sql-shared/scripts/datamart/13_channel_attribution/240_CHN_BAS_order_attribution.sql"
Implement all of the Staging and Attribution blocks to create the following tables:
[dm_chn.dim_order_attribution_detail
]
[dm_chn.dim_order_attribution
]
Add the Enquire block if you have the Fairing extractor installed and want to incorproate survey based data into your attribution