Skip to content

Commit e357380

Browse files
Generate Initial Data Plans
1 parent 4b54e79 commit e357380

File tree

1 file changed

+167
-0
lines changed

1 file changed

+167
-0
lines changed

dataplans/docsite_1.json

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
{
2+
"version": 1,
3+
"data_plan_id": "docsite",
4+
"activated_environment": "none",
5+
"created_on": "2020-11-24T18:25:07.33",
6+
"created_by": "sdozor@mparticle.com",
7+
"last_modified_on": "2021-01-19T18:14:59.743",
8+
"last_modified_by": "alexs@mparticle.com",
9+
"version_document": {
10+
"data_points": [
11+
{
12+
"description": "A Page View Event",
13+
"match": {
14+
"type": "screen_view",
15+
"criteria": {
16+
"screen_name": "Viewed Page"
17+
}
18+
},
19+
"validator": {
20+
"type": "json_schema",
21+
"definition": {
22+
"properties": {
23+
"data": {
24+
"additionalProperties": true,
25+
"properties": {
26+
"custom_attributes": {
27+
"additionalProperties": false,
28+
"description": "Page View Custom Attributes",
29+
"properties": {
30+
"document_path": {
31+
"description": "the path excluding the domain eg \"/connections/overview\"",
32+
"type": "string"
33+
},
34+
"document_title": {
35+
"description": "title of the document eg \"Data Connections\"",
36+
"type": "string"
37+
},
38+
"document_referrer": {
39+
"description": "referring url eg https://google.com?search=mParticle+connections",
40+
"type": "string"
41+
},
42+
"document_location": {
43+
"description": "full page url eg https://docs.mparticle.com/connections/overview",
44+
"type": "string"
45+
}
46+
},
47+
"required": [
48+
"document_path",
49+
"document_title",
50+
"document_referrer",
51+
"document_location"
52+
],
53+
"type": "object"
54+
}
55+
},
56+
"required": [
57+
"custom_attributes"
58+
],
59+
"type": "object"
60+
}
61+
}
62+
}
63+
}
64+
},
65+
{
66+
"description": "Custom Search Event",
67+
"match": {
68+
"type": "custom_event",
69+
"criteria": {
70+
"event_name": "Search",
71+
"custom_event_type": "search"
72+
}
73+
},
74+
"validator": {
75+
"type": "json_schema",
76+
"definition": {
77+
"properties": {
78+
"data": {
79+
"additionalProperties": true,
80+
"properties": {
81+
"custom_attributes": {
82+
"additionalProperties": false,
83+
"description": "Custom Search Attributes",
84+
"properties": {
85+
"result_count": {
86+
"description": "",
87+
"type": "number"
88+
},
89+
"search_term": {
90+
"description": "",
91+
"type": "string"
92+
}
93+
},
94+
"required": [
95+
"result_count",
96+
"search_term"
97+
],
98+
"type": "object"
99+
}
100+
},
101+
"required": [
102+
"custom_attributes"
103+
],
104+
"type": "object"
105+
}
106+
}
107+
}
108+
}
109+
},
110+
{
111+
"description": "Custom Navigation Event",
112+
"match": {
113+
"type": "custom_event",
114+
"criteria": {
115+
"event_name": "Menu Click",
116+
"custom_event_type": "navigation"
117+
}
118+
},
119+
"validator": {
120+
"type": "json_schema",
121+
"definition": {
122+
"properties": {
123+
"data": {
124+
"additionalProperties": true,
125+
"properties": {
126+
"custom_attributes": {
127+
"additionalProperties": false,
128+
"description": "Document attributes as custom attributes",
129+
"properties": {
130+
"document_title": {
131+
"description": "title of the document eg \"Data Connections\"",
132+
"type": "string"
133+
},
134+
"document_path": {
135+
"description": "the path excluding the domain eg \"/connections/overview\"",
136+
"type": "string"
137+
},
138+
"document_location": {
139+
"description": "full url",
140+
"type": "string"
141+
},
142+
"menu_label": {
143+
"description": "the section label in the table of contents",
144+
"type": "string"
145+
}
146+
},
147+
"required": [
148+
"document_title",
149+
"document_path",
150+
"document_location",
151+
"menu_label"
152+
],
153+
"type": "object"
154+
}
155+
},
156+
"required": [
157+
"custom_attributes"
158+
],
159+
"type": "object"
160+
}
161+
}
162+
}
163+
}
164+
}
165+
]
166+
}
167+
}

0 commit comments

Comments
 (0)