forked from Niteshd7/mparticle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmparticle_audience_dashboard.dashboard.lookml
298 lines (287 loc) · 10.3 KB
/
mparticle_audience_dashboard.dashboard.lookml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
- dashboard: mparticle_audience_dashboard
title: mParticle Audience Dashboard
layout: grid
rows:
- elements: [audience_size_by_day, audience_lift]
height: 400
- elements: [daily_arpu_by_audience, daily_sessions_per_user]
height: 400
- elements: [daily_avg_session_length, daily_time_spent_in_app]
height: 400
refresh: 6 hours
filters:
- name: date
title: Event Date
type: date_filter
default_value: 30 Days
- name: platform
type: field_filter
explore: rawevents
field: rawevents.platform
- name: is_debug_data
type: field_filter
explore: rawevents
field: rawevents.is_debug
- name: audience_membership_filter
type: field_filter
explore: rawevents
field: rawevents.audience_membership
default_value: '%"1234"%' ## when using this dashboard, users need to change the value to relevant audience ID for audience analytics
elements:
- name: audience_size_by_day
title: Audience Size by Day
type: looker_area
model: mparticle_looker_blocks
explore: rawevents
dimensions: [rawevents.event_date]
measures: [rawevents.unique_user_count]
listen:
date: rawevents.event_date
audience_membership_filter: rawevents.audience_membership_filter
platform: rawevents.platform
is_debug_data: rawevents.is_debug
filters:
rawevents.is_in_audience: 'Yes'
sorts: [rawevents.unique_user_count desc]
limit: 500
column_limit: 50
show_view_names: true
hidden_fields: [rawevents.count]
show_null_points: true
point_style: none
interpolation: linear
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
x_axis_label: Date
y_axis_labels: [Audience Size]
ordering: none
show_null_labels: false
show_row_numbers: true
- name: audience_lift
title: Audience Lift % (comparing users in the audience vs not in the audience)
type: looker_column
model: mparticle_looker_blocks
explore: rawevents
listen:
date: rawevents.event_date
audience_membership_filter: rawevents.audience_membership_filter
platform: rawevents.platform
is_debug_data: rawevents.is_debug
dimensions: [rawevents.is_in_audience]
measures: [rawevents.avg_session_length, rawevents.time_spent_in_app, rawevents.unique_user_count,
rawevents.arpu, rawevents.session_count]
dynamic_fields:
- table_calculation: sessions_per_user
label: Sessions Per User
expression: ${rawevents.session_count} / ${rawevents.unique_user_count}
value_format: '#,##0.0'
- table_calculation: time_spent_in_app_per_user
label: Time Spent In App Per User
expression: ${rawevents.time_spent_in_app}/${rawevents.unique_user_count}
value_format: '#,##0.0'
- table_calculation: arpu_lift
label: ARPU Lift %
expression: if(${rawevents.arpu} > 0, if(offset(${rawevents.arpu}, -1) > 0, ${rawevents.arpu} / offset(${rawevents.arpu}, -1) - 1, null), null)
value_format: '#,##0.0%'
- table_calculation: sessions_per_user_lift
label: Sessions Per User Lift %
expression: ${sessions_per_user} / offset(${sessions_per_user}, -1) - 1
value_format: '#,##0.0%'
- table_calculation: avg_session_length_lift
label: Avg Session Length Lift %
expression: ${rawevents.avg_session_length} / offset(${rawevents.avg_session_length}, -1) - 1
value_format: '#,##0.0%'
- table_calculation: time_spent_in_app_per_user_lift
label: Time Spent In App Per User Lift %
expression: ${time_spent_in_app_per_user} / offset(${time_spent_in_app_per_user}, -1) - 1
value_format: '#,##0.0%'
sorts: [rawevents.is_in_audience]
limit: 500
column_limit: 50
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
x_axis_scale: auto
ordering: none
show_null_labels: false
hidden_fields: [rawevents.time_spent_in_app, rawevents.unique_user_count, rawevents.arpu,
rawevents.session_count, time_spent_in_app_per_user, sessions_per_user, rawevents.avg_session_length]
y_axis_value_format: '#,##0.0%'
y_axis_labels: [Lift %]
hidden_points_if_no: [rawevents.is_in_audience]
- name: daily_arpu_by_audience
title: Daily ARPU by Audience Membership
type: looker_area
model: mparticle_looker_blocks
explore: rawevents
listen:
date: rawevents.event_date
audience_membership_filter: rawevents.audience_membership_filter
platform: rawevents.platform
is_debug_data: rawevents.is_debug
dimensions: [rawevents.is_in_audience, rawevents.event_date]
pivots: [rawevents.is_in_audience]
measures: [rawevents.arpu]
sorts: [rawevents.event_date desc, rawevents.is_in_audience desc]
limit: 500
column_limit: 50
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
show_null_points: true
point_style: none
interpolation: linear
x_axis_label: Date
y_axis_labels: ARPU
- name: daily_sessions_per_user
title: Daily Sessions Per User by Audience Membership
type: looker_area
model: mparticle_looker_blocks
explore: rawevents
listen:
date: rawevents.event_date
audience_membership_filter: rawevents.audience_membership_filter
platform: rawevents.platform
is_debug_data: rawevents.is_debug
dimensions: [rawevents.is_in_audience, rawevents.event_date]
pivots: [rawevents.is_in_audience]
measures: [rawevents.session_count, rawevents.unique_user_count]
dynamic_fields:
- table_calculation: sessions_per_user
label: Sessions Per User
expression: ${rawevents.session_count} / ${rawevents.unique_user_count}
sorts: [rawevents.event_date desc, rawevents.is_in_audience desc]
limit: 500
column_limit: 50
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
show_null_points: true
point_style: none
interpolation: linear
hidden_fields: [rawevents.unique_user_count, rawevents.session_count]
x_axis_label: Date
- name: daily_avg_session_length
title: Daily Avg Session Length by Audience Membership
type: looker_line
model: mparticle_looker_blocks
explore: rawevents
listen:
date: rawevents.event_date
audience_membership_filter: rawevents.audience_membership_filter
platform: rawevents.platform
is_debug_data: rawevents.is_debug
dimensions: [rawevents.event_date, rawevents.is_in_audience]
pivots: [rawevents.is_in_audience]
measures: [rawevents.avg_session_length]
sorts: [rawevents.event_date desc, rawevents.is_in_audience desc]
limit: 500
column_limit: 50
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
show_null_points: true
point_style: none
interpolation: linear
x_axis_label: Date
y_axis_labels: [Avg Session Length (in sec)]
- name: daily_time_spent_in_app
title: Daily Time Spent In App Per User by Audience Membership
type: looker_line
model: mparticle_looker_blocks
explore: rawevents
listen:
date: rawevents.event_date
audience_membership_filter: rawevents.audience_membership_filter
platform: rawevents.platform
is_debug_data: rawevents.is_debug
dimensions: [rawevents.event_date, rawevents.is_in_audience]
pivots: [rawevents.is_in_audience]
measures: [rawevents.time_spent_in_app, rawevents.unique_user_count]
dynamic_fields:
- table_calculation: time_spent_in_app_per_user_in_sec
label: Time Spent In App Per User (in sec)
expression: ${rawevents.time_spent_in_app} / ${rawevents.unique_user_count}
value_format: '#,##0'
sorts: [rawevents.unique_user_count desc 1, rawevents.is_in_audience]
limit: 500
column_limit: 50
hidden_fields: [rawevents.time_spent_in_app, rawevents.unique_user_count]
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
show_null_points: true
point_style: none
interpolation: linear
x_axis_label: Date