-
Notifications
You must be signed in to change notification settings - Fork 3
/
dbt_project.yml
116 lines (102 loc) · 2.78 KB
/
dbt_project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# ==================== #
# Project Details
# ==================== #
name: "dbt_ga4"
version: "1.0.0"
config-version: 2
profile: "default"
# require-dbt-version: <dbt_version> # Optionally set a specific dbt version.
# ==================== #
# File Path Configs
# ==================== #
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
docs-paths: ["docs"]
asset-paths: ["assets"]
#target-path: 'target' # Directory which will store compiled SQL files.
clean-targets: # Directories to be removed by `dbt clean`.
- "target"
- "dbt_packages"
# ==================== #
# Run Hooks
# ==================== #
# on-run-start:
# - '<run_on_start>'
# on-run-end:
# - '<run_on_end>'
# ==================== #
# Variable Configs
# ==================== #
vars:
project: "bigquery-public-data"
dataset: "ga4_obfuscated_sample_ecommerce"
start_date: "20201101"
# Set specfic events to be conversion or consideration events.
conversion_events: ["purchase"]
consideration_events: ["view_search_results", "add_to_cart"]
# Exclude specific events and event parameters from the final tables.
excluded__events: ["session_start"]
excluded__event_params:
[
"ga_session_id",
"page_location",
"ga_session_number",
"session_engaged",
"engagement_time_msec",
"entrances",
"page_title",
"page_referrer",
]
# Exclude specific default columns from the final tables.
excluded__columns:
[
"event_previous_timestamp",
"event_bundle_sequence_id",
"event_server_timestamp_offset",
"user_id",
"user_pseudo_id",
"stream_id",
"ga_session_id",
"privacy_info",
"event_dimensions",
"app_info",
]
# Exclude specific user properties from the final tables.
excluded__user_props: []
# Include specific query parameters to be in the final tables.
included__query_params:
[
"utm_source",
"utm_medium",
"utm_campaign",
"utm_content",
"utm_term",
"gclid",
"fbclid",
"gclsrc",
"_ga",
]
# TESTING SOME VARS:
# Set specific events to be considered in a funnel.
funnel_stages:
["begin_checkout", "add_shipping_info", "add_payment_info", "purchase"]
########################TO DO##############################
# Query parameter exclusions
# You can remove specific query parameters from the page_location by listing them here
# query_parameter_exclusions: ['gclid','fbclid','_ga']
########################TO DO##############################
# ==================== #
# Model Configs
# ==================== #
models:
dbt_ga4:
+materialized: view
+persist_docs:
relation: true
columns: true
marts:
+materialized: table