-
Notifications
You must be signed in to change notification settings - Fork 0
/
measurementplan.ts
216 lines (214 loc) · 6.17 KB
/
measurementplan.ts
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
import { Measurement } from "./types";
const plan: Measurement.Plan = {
version: 1,
sources: {
web: {
name: "elbwalker.com",
type: "web",
owners: ["alexander"],
entities: {
page: {
name: "Page",
description: "A regular page that can be called diretly",
actions: {
view: {
name: "Pageview",
description: "The well known pageview on each route change",
properties: [{ id: "id", required: true }],
trigger: { type: "load" },
type: "core",
},
read: {
name: "Pageread",
description:
"On reaching the end of a page by seeing the footer",
properties: [{ id: "id", required: true }],
trigger: { type: "visible" },
type: "core",
},
},
properties: {
id: {
name: "Path as id",
type: "string",
example: "/",
},
},
owners: ["alexander"],
},
cta: {
name: "CTA",
description: "Get users to try out our library",
actions: {
impression: {
name: "CTA impression",
description: "",
properties: [
{ id: "title", required: true },
{ id: "position", required: true },
],
trigger: { type: "visible" },
type: "core",
},
call: {
name: "CTA call",
description: "Click 'Schedule a call' button",
properties: [
{ id: "title", required: true },
{ id: "position", required: true },
],
trigger: { type: "click" },
type: "core",
},
start: {
name: "CTA start",
description: "Click 'get started' button",
properties: [
{ id: "title", required: true },
{ id: "position", required: true },
],
trigger: { type: "click" },
type: "core",
},
github: {
name: "CTA github",
description: "Click button 'Check it out on GitHub'",
properties: [
{ id: "title", required: true },
{ id: "position", required: true },
],
trigger: { type: "click" },
type: "core",
},
},
properties: {
title: {
name: "Title headline",
type: "string",
example: "Ready to dive in?",
},
position: {
name: "Placement of the CTA on a page",
type: "string",
example: "footer",
},
},
owners: ["alexander"],
},
article: {
name: "Article",
description: "Educational content about the usage of our tools",
actions: {
impression: {
name: "Article impression",
description: "",
properties: [{ id: "id", required: true }],
trigger: { type: "visible" },
type: "additional",
},
click: {
name: "Article click",
description: "",
properties: [{ id: "id", required: true }],
trigger: { type: "click" },
type: "additional",
},
view: {
name: "Article view",
description: "Load of blog article page",
properties: [
{ id: "id", required: true },
{ id: "title", required: true },
{ id: "date", required: true },
{ id: "category", required: true },
{ id: "author", required: true },
{ id: "readingTime", required: true },
],
trigger: { type: "load" },
type: "core",
},
read: {
name: "Article read",
description:
"As soon as the last paragraph of an article is visible to the user",
properties: [{ id: "id", required: true }],
trigger: { type: "visible" },
type: "core",
},
},
properties: {
id: {
name: "Path of the article",
type: "string",
example: "/blog/elbwalker-event-concept",
},
title: {
name: "Catchy title",
type: "string",
example: "The elbwalker event concept",
},
date: {
name: "When the article was published",
type: "string",
example: "2022-03-09T00:00:00.000Z",
},
category: {
name: "Main content category the blog article belongs to",
type: "string",
example: "Product",
},
author: {
name: "Name of the author",
type: "string",
example: "Ayla",
},
readingTime: {
name: "Estimated reading time in minutes",
type: "number",
example: "6",
},
},
owners: ["alexander"],
},
},
globals: {
pagetype: {
name: "Pagetype",
type: "string",
example: "Blog",
},
},
},
app_backend: {
name: "WebApp",
type: "server",
owners: ["alexander"],
entities: {},
globals: {},
},
},
destinations: {
datalake: {
name: "Our central place for all raw data",
type: "event-pipe",
owners: ["alexander"],
config: {
custom: {
projectId: "xxxxxx",
},
events: {
"*": {
"*": {
consent: ["statistic"],
},
},
},
},
},
},
owners: {
alexander: { name: "Alexander" },
ayla: { name: "Ayla" },
},
};
export default plan;