-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbf3a76
commit 1dd16ef
Showing
48 changed files
with
2,700 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+check_settings: | ||
py>: py_scripts.check_settings.run | ||
user_id: ${td.user_id} | ||
clicks_tables: ${td.clicks_tables} | ||
conversions_tables: ${td.conversions_tables} | ||
mta_settings: ${td.mta} | ||
docker: | ||
image: "digdag/digdag-python:3.9" | ||
_env: | ||
TD_API_KEY: ${secret:td.apikey} |
4 changes: 4 additions & 0 deletions
4
scenarios/cdp_campaign_management/common/gsheet_settings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
gsheet: | ||
result_connection: gsheet_for_roi | ||
sheet_folder: 1fLWGown_zelyAkSPKxwxxqnSgi6riAqp | ||
spreadsheet_title: cdp_campaign_management |
77 changes: 77 additions & 0 deletions
77
scenarios/cdp_campaign_management/common/system_settings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
parallel: true | ||
td: | ||
base_db_name: cdp_campaigns | ||
tables: | ||
activation_log: activation_log | ||
existing_campaigns: existing_campaigns | ||
|
||
master_campaigns: master_campaigns | ||
tmp_master_campaigns: tmp_master_campaigns | ||
|
||
journeys: journeys | ||
tmp_journeys: tmp_journeys | ||
|
||
master_activations: master_activations | ||
tmp_master_activations: tmp_master_activations | ||
|
||
daily_activations_info: daily_activations_info | ||
tmp_daily_activations_info: tmp_daily_activations_info | ||
|
||
activations: activations | ||
tmp_activations: tmp_activations | ||
|
||
clicks: clicks | ||
tmp_clicks: tmp_clicks | ||
|
||
conversions: conversions | ||
tmp_conversions: tmp_conversions | ||
|
||
conversion_journeys: conversion_journeys | ||
tmp_conversion_journeys: tmp_conversion_journeys | ||
|
||
mta_conversion_journeys: mta_conversion_journeys | ||
tmp_mta_conversion_journeys: tmp_mta_conversion_journeys | ||
|
||
daily_activations: daily_activations | ||
tmp_daily_activations: tmp_daily_activations | ||
|
||
daily_clicks: daily_clicks | ||
tmp_daily_clicks: tmp_daily_clicks | ||
|
||
daily_conversions: daily_conversions | ||
tmp_daily_conversions: tmp_daily_conversions | ||
|
||
daily_conversion_journeys: daily_conversion_journeys | ||
tmp_daily_conversion_journeys: tmp_daily_conversion_journeys | ||
|
||
daily_mta_conversion_journeys: daily_mta_conversion_journeys | ||
tmp_daily_mta_conversion_journeys: tmp_daily_mta_conversion_journeys | ||
|
||
query_store: query_store | ||
|
||
monitoring: | ||
db: | ||
cdp_monitoring: cdp_monitoring | ||
basic_monitoring: basic_monitoring | ||
wf_monitoring: wf_monitoring | ||
tables: | ||
entities: entities | ||
activations: activations | ||
activations_history: activations_history | ||
jobs: jobs | ||
journey_activation: journey_activation | ||
journey_summary: journey_summary | ||
connections_details: connections_details | ||
connections: connections | ||
|
||
utm_names: | ||
utm_id: utm_id | ||
utm_source: utm_source | ||
utm_medium: utm_medium | ||
utm_campaign: utm_campaign | ||
utm_content: utm_content | ||
utm_cv: utm_cv | ||
utm_term: utm_term | ||
utm_connector: utm_connector | ||
|
||
api_endpoint: api.treasuredata.com |
17 changes: 17 additions & 0 deletions
17
scenarios/cdp_campaign_management/common/user_settings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# timezone: | ||
td: | ||
user_id: #required | ||
|
||
ps: #required | ||
|
||
activations_tables: #required | ||
|
||
clicks_tables: #required | ||
|
||
conversions_tables: #required | ||
|
||
master_campaigns_tables: #optional | ||
|
||
mta: #required | ||
session_model: | ||
allowable_time_to_cv: 24*10 |
70 changes: 70 additions & 0 deletions
70
scenarios/cdp_campaign_management/common/user_settings_sample.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
timezone: JST | ||
td: | ||
user_id: td_client_id # One of the user identifiers defined in the Parent Segment | ||
ps: | ||
- 507568 | ||
activations_tables: | ||
507568: | ||
scan_journey_tables: true | ||
clicks_tables: | ||
507568: | ||
- | ||
is_audience_table: false | ||
db: treasurebikes | ||
table: behv_website | ||
url_col: td_url | ||
time_col: time | ||
filter: td_url IS NOT NULL | ||
use_distinct: false | ||
- | ||
is_audience_table: true | ||
# db: | ||
table: behavior_behv_orders | ||
url_col: td_url | ||
# time_col: timestamp | ||
# filter: | ||
# use_distinct: false | ||
conversions_tables: | ||
507568: | ||
- | ||
is_audience_table: false | ||
db: treasurebikes | ||
table: behv_website | ||
filter: td_subscription = 'true' | ||
cv_name: SUBSCRIBE | ||
time_col: time | ||
val_col: 1 | ||
acquired_revenue_per_person: 20000 | ||
use_distinct: true | ||
- | ||
is_audience_table: true | ||
table: behavior_behv_website | ||
filter: td_app IN ('Android', 'iOS') | ||
cv_name: DOWNLOAD | ||
# time_col: timestamp | ||
val_col: 1 | ||
acquired_revenue_per_person: 20000 | ||
use_distinct: false | ||
- | ||
is_audience_table: true | ||
table: behavior_behv_orders | ||
filter: checkout_event = 'true' | ||
cv_name: PURCHASE | ||
# time_col: timestamp | ||
val_col: total_order | ||
acquired_revenue_per_person: 1 | ||
# use_distinct: false | ||
|
||
master_campaigns_tables: | ||
# 507568: | ||
# - | ||
# db: taka | ||
# table: master_campaigns_507568 | ||
|
||
mta: | ||
session_model: | ||
allowable_time_to_cv: 24*10 | ||
|
||
utm_names: | ||
utm_cv: utm_term | ||
|
Binary file added
BIN
+80.3 KB
scenarios/cdp_campaign_management/docs/images/ex_conversion_journey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
scenarios/cdp_campaign_management/docs/images/ex_mta_conversion_journey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.