@metarouter/ajs-starter-kit 1.0.53 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.dist/adobe-analytics/connection.etag.json +1 -0
  2. package/.dist/adobe-analytics/connection.json +42 -0
  3. package/.dist/adobe-analytics/kit.etag.json +1 -0
  4. package/.dist/adobe-analytics/metadata.json +20 -0
  5. package/.dist/adobe-analytics/playbook.etag.json +1 -0
  6. package/.dist/adobe-analytics/playbook.json +71 -0
  7. package/.dist/adobe-id/connection.etag.json +1 -0
  8. package/.dist/adobe-id/connection.json +24 -0
  9. package/.dist/adobe-id/kit.etag.json +1 -0
  10. package/.dist/adobe-id/metadata.json +20 -0
  11. package/.dist/adobe-id/playbook.etag.json +1 -0
  12. package/.dist/adobe-id/playbook.json +74 -0
  13. package/.dist/miq-xandr/connection.etag.json +1 -0
  14. package/.dist/miq-xandr/connection.json +12 -0
  15. package/.dist/miq-xandr/kit.etag.json +1 -0
  16. package/.dist/miq-xandr/metadata.json +20 -0
  17. package/.dist/miq-xandr/playbook.etag.json +1 -0
  18. package/.dist/miq-xandr/playbook.json +79 -0
  19. package/.dist/nextdoor/connection.etag.json +1 -0
  20. package/.dist/nextdoor/connection.json +31 -0
  21. package/.dist/nextdoor/kit.etag.json +1 -0
  22. package/.dist/nextdoor/metadata.json +20 -0
  23. package/.dist/nextdoor/playbook.etag.json +1 -0
  24. package/.dist/nextdoor/playbook.json +111 -0
  25. package/.dist/pinterest-capi/connection.etag.json +1 -0
  26. package/.dist/pinterest-capi/connection.json +35 -0
  27. package/.dist/pinterest-capi/kit.etag.json +1 -0
  28. package/.dist/pinterest-capi/metadata.json +20 -0
  29. package/.dist/pinterest-capi/playbook.etag.json +1 -0
  30. package/.dist/pinterest-capi/playbook.json +288 -0
  31. package/.dist/podsights/connection.etag.json +1 -0
  32. package/.dist/podsights/connection.json +6 -0
  33. package/.dist/podsights/kit.etag.json +1 -0
  34. package/.dist/podsights/metadata.json +20 -0
  35. package/.dist/podsights/playbook.etag.json +1 -0
  36. package/.dist/podsights/playbook.json +132 -0
  37. package/.dist/tiktok/connection.etag.json +1 -0
  38. package/.dist/tiktok/connection.json +35 -0
  39. package/.dist/tiktok/kit.etag.json +1 -0
  40. package/.dist/tiktok/metadata.json +20 -0
  41. package/.dist/tiktok/playbook.etag.json +1 -0
  42. package/.dist/tiktok/playbook.json +346 -0
  43. package/.dist/yahoo-enhanced-attribution/connection.etag.json +1 -0
  44. package/.dist/yahoo-enhanced-attribution/connection.json +77 -0
  45. package/.dist/yahoo-enhanced-attribution/kit.etag.json +1 -0
  46. package/.dist/yahoo-enhanced-attribution/metadata.json +20 -0
  47. package/.dist/yahoo-enhanced-attribution/playbook.etag.json +1 -0
  48. package/.dist/yahoo-enhanced-attribution/playbook.json +96 -0
  49. package/.dist/yahoo-offline-conversion/connection.etag.json +1 -0
  50. package/.dist/yahoo-offline-conversion/connection.json +76 -0
  51. package/.dist/yahoo-offline-conversion/kit.etag.json +1 -0
  52. package/.dist/yahoo-offline-conversion/metadata.json +20 -0
  53. package/.dist/yahoo-offline-conversion/playbook.etag.json +1 -0
  54. package/.dist/yahoo-offline-conversion/playbook.json +267 -0
  55. package/package.json +1 -1
@@ -0,0 +1,267 @@
1
+ {
2
+ "version": "v0.0.1",
3
+ "default": {
4
+ "filters": [
5
+ {
6
+ "byEventNames": {
7
+ "action": "allow",
8
+ "events": [
9
+ ""
10
+ ]
11
+ }
12
+ }
13
+ ]
14
+ },
15
+ "global": {
16
+ "filters": [
17
+ {
18
+ "byConditions": {
19
+ "action": "allow",
20
+ "when": {
21
+ "matchesAny": {
22
+ "conditions": [
23
+ {
24
+ "inputPathExists": {
25
+ "inputPath": "context.providers.yahooMedia.vmcid"
26
+ }
27
+ },
28
+ {
29
+ "inputPathExists": {
30
+ "inputPath": "context.providers.yahooMedia.yahoo_id"
31
+ }
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ }
37
+ }
38
+ ],
39
+ "mappings": [
40
+ {
41
+ "inputKey": "timestamp",
42
+ "outputKey": "event_time",
43
+ "transforms": [
44
+ {
45
+ "toTimestamp": "inSeconds"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "inputKey": "input",
51
+ "outputKey": "action_source",
52
+ "transforms": [
53
+ {
54
+ "expression": {
55
+ "body": "if input.context.app.name or input.context.device.type or input.context.os.name then return 'APP' end\nreturn 'WEBSITE'",
56
+ "lang": "lua"
57
+ }
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "inputKey": "context.page.url",
63
+ "outputKey": "action_source_url"
64
+ },
65
+ {
66
+ "inputKey": "context.providers.yahooMedia.vmcid",
67
+ "outputKey": "user_data.vmcid"
68
+ },
69
+ {
70
+ "inputKey": "context.providers.yahooMedia.yahoo_id",
71
+ "outputKey": "user_data.yahoo_id"
72
+ },
73
+ {
74
+ "inputKey": "event",
75
+ "outputKey": "custom_data.el"
76
+ }
77
+ ]
78
+ },
79
+ "eventSpecific": {
80
+ "page": {
81
+ "enrichments": [
82
+ {
83
+ "outputKey": "custom_data.ec",
84
+ "staticString": "UserFlow"
85
+ },
86
+ {
87
+ "outputKey": "custom_data.ea",
88
+ "staticString": "ViewPage"
89
+ }
90
+ ],
91
+ "mappings": [
92
+ {
93
+ "inputKey": "context.page.title",
94
+ "outputKey": "custom_data.el"
95
+ }
96
+ ]
97
+ },
98
+ "products_searched": {
99
+ "enrichments": [
100
+ {
101
+ "outputKey": "custom_data.ec",
102
+ "staticString": "Ecommerce"
103
+ },
104
+ {
105
+ "outputKey": "custom_data.ea",
106
+ "staticString": "Search"
107
+ }
108
+ ],
109
+ "mappings": [
110
+ {
111
+ "inputKey": "properties.query",
112
+ "outputKey": "custom_data.user_defined.query"
113
+ }
114
+ ]
115
+ },
116
+ "product_list_viewed": {
117
+ "enrichments": [
118
+ {
119
+ "outputKey": "custom_data.ec",
120
+ "staticString": "Ecommerce"
121
+ },
122
+ {
123
+ "outputKey": "custom_data.ea",
124
+ "staticString": "ViewProductsList"
125
+ }
126
+ ],
127
+ "mappings": [
128
+ {
129
+ "inputKey": "input",
130
+ "outputKey": "custom_data.product_id",
131
+ "transforms": [
132
+ {
133
+ "expression": {
134
+ "body": "return MAP(input.properties.products, function (p) return p.product_id or p.sku end)",
135
+ "lang": "lua"
136
+ }
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ },
142
+ "product_viewed": {
143
+ "enrichments": [
144
+ {
145
+ "outputKey": "custom_data.ec",
146
+ "staticString": "Ecommerce"
147
+ },
148
+ {
149
+ "outputKey": "custom_data.ea",
150
+ "staticString": "ViewProduct"
151
+ }
152
+ ],
153
+ "mappings": [
154
+ {
155
+ "inputKey": "input",
156
+ "outputKey": "custom_data.product_id",
157
+ "transforms": [
158
+ {
159
+ "expression": {
160
+ "body": "return { input.properties.product_id or input.properties.sku }",
161
+ "lang": "lua"
162
+ }
163
+ }
164
+ ]
165
+ }
166
+ ]
167
+ },
168
+ "product_added": {
169
+ "enrichments": [
170
+ {
171
+ "outputKey": "custom_data.ec",
172
+ "staticString": "Ecommerce"
173
+ },
174
+ {
175
+ "outputKey": "custom_data.ea",
176
+ "staticString": "AddToCart"
177
+ }
178
+ ],
179
+ "mappings": [
180
+ {
181
+ "inputKey": "input",
182
+ "outputKey": "custom_data.product_id",
183
+ "transforms": [
184
+ {
185
+ "expression": {
186
+ "body": "return { input.properties.product_id or input.properties.sku }",
187
+ "lang": "lua"
188
+ }
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "inputKey": "properties.price",
194
+ "outputKey": "custom_data.gv"
195
+ }
196
+ ]
197
+ },
198
+ "cart_viewed": {
199
+ "enrichments": [
200
+ {
201
+ "outputKey": "custom_data.ec",
202
+ "staticString": "Ecommerce"
203
+ },
204
+ {
205
+ "outputKey": "custom_data.ea",
206
+ "staticString": "ViewCart"
207
+ }
208
+ ],
209
+ "mappings": [
210
+ {
211
+ "inputKey": "input",
212
+ "outputKey": "custom_data.product_id",
213
+ "transforms": [
214
+ {
215
+ "expression": {
216
+ "body": "return MAP(input.properties.products, function (p) return p.product_id or p.sku end)",
217
+ "lang": "lua"
218
+ }
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "inputKey": "input",
224
+ "outputKey": "custom_data.gv",
225
+ "transforms": [
226
+ {
227
+ "expression": {
228
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))",
229
+ "lang": "lua"
230
+ }
231
+ }
232
+ ]
233
+ }
234
+ ]
235
+ },
236
+ "order_completed": {
237
+ "enrichments": [
238
+ {
239
+ "outputKey": "custom_data.ec",
240
+ "staticString": "Ecommerce"
241
+ },
242
+ {
243
+ "outputKey": "custom_data.ea",
244
+ "staticString": "Purchase"
245
+ }
246
+ ],
247
+ "mappings": [
248
+ {
249
+ "inputKey": "input",
250
+ "outputKey": "custom_data.product_id",
251
+ "transforms": [
252
+ {
253
+ "expression": {
254
+ "body": "return MAP(input.properties.products, function (p) return p.product_id or p.sku end)",
255
+ "lang": "lua"
256
+ }
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "inputKey": "properties.revenue",
262
+ "outputKey": "custom_data.gv"
263
+ }
264
+ ]
265
+ }
266
+ }
267
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {