@adobe/magento-storefront-event-collector 1.3.1 → 1.4.0
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.
- package/CHANGELOG.md +60 -84
- package/README.md +22 -21
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1 -1
- package/dist/types/src/contexts/extension.d.ts.map +1 -1
- package/dist/types/src/contexts/searchResults.d.ts.map +1 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/handlers/checkout/placeOrderAEP.d.ts.map +1 -1
- package/dist/types/src/handlers/index.d.ts.map +1 -1
- package/dist/types/src/handlers/product/addToCartAEP.d.ts.map +1 -1
- package/dist/types/src/handlers/product/index.d.ts.map +1 -1
- package/dist/types/src/handlers/product/removeFromCartAEP.d.ts.map +1 -1
- package/dist/types/src/handlers/requisitionList/addToRequisitionListAEP.d.ts.map +1 -1
- package/dist/types/src/handlers/search/categoryResultsView.d.ts +4 -0
- package/dist/types/src/handlers/search/categoryResultsView.d.ts.map +1 -0
- package/dist/types/src/handlers/search/index.d.ts +1 -0
- package/dist/types/src/handlers/search/index.d.ts.map +1 -1
- package/dist/types/src/handlers/shoppingCart/openCartAEP.d.ts.map +1 -1
- package/dist/types/src/types/aep/beaconSchema.d.ts +1 -1
- package/dist/types/src/types/aep/beaconSchema.d.ts.map +1 -1
- package/dist/types/src/types/aep/commerce.d.ts.map +1 -1
- package/dist/types/src/utils/product.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,111 +6,99 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
6
6
|
|
|
7
7
|
### Features
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- forward page view events to the Adobe Experience Platform Edge when the appropriate AEP context is set, closes [#83](https://github.com/adobe/magento-storefront-event-collector/pull/83), [#84](https://github.com/adobe/magento-storefront-event-collector/pull/84) and [#85](https://github.com/adobe/magento-storefront-event-collector/pull/85).
|
|
10
10
|
|
|
11
11
|
## [1.1.2](https://github.com/adobe/magento-storefront-event-collector/compare/v1.1.1...v1.1.2) (2022-01-14)
|
|
12
12
|
|
|
13
13
|
### Features
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
- **shopper.ts** set shopperId in default context ([fa3da4c8](https://github.com/adobe/magento-storefront-event-collector/pull/81/commits/fa3da4c8066d34f3662764bba4d13cb1eee2e1b3)), closes [#81](https://github.com/adobe/magento-storefront-event-collector/pull/81)
|
|
16
16
|
|
|
17
17
|
## [1.1.1](https://github.com/adobe/magento-storefront-event-collector/compare/v1.1.0...v1.1.1) (2021-10-26)
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
### Bug Fixes
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
- **package.json:** upping the mse sdk version ([6512103](https://github.com/adobe/magento-storefront-event-collector/commit/651210380663f420e35f2a9000ac6eed4fd6310c))
|
|
22
|
+
- **recommendations.d.ts:** recType was improper value, fixed it ([a8a8add](https://github.com/adobe/magento-storefront-event-collector/commit/a8a8add22f8d703d39d8c8dd35e07ffaad634f26)), closes [#78](https://github.com/adobe/magento-storefront-event-collector/issues/78)
|
|
24
23
|
|
|
25
24
|
## [1.1.0](https://github.com/adobe/magento-storefront-event-collector/compare/v1.0.1...v1.1.0) (2021-09-07)
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
### Features
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
- add api execution time tracking ([c410cd3](https://github.com/adobe/magento-storefront-event-collector/commit/c410cd37b0cbfd3a642f6805b76ecf0238d94a95))
|
|
31
29
|
|
|
32
30
|
### [1.0.1](https://github.com/adobe/magento-storefront-event-collector/compare/v1.0.0...v1.0.1) (2021-09-07)
|
|
33
31
|
|
|
34
|
-
|
|
35
32
|
### Bug Fixes
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
- make the search results price optional ([88cb62b](https://github.com/adobe/magento-storefront-event-collector/commit/88cb62bf04d8cb363e6c0a75fb0ea7b9db348c2c))
|
|
35
|
+
- **recommendeditem.ts:** do not add prices to recommendation item context if they are not present ([47625e9](https://github.com/adobe/magento-storefront-event-collector/commit/47625e977e069959e8c9644bc3469644bd30d846))
|
|
36
|
+
- **search-result-product schema:** update search-result-product schema to version 1-0-2 ([c1dd7bb](https://github.com/adobe/magento-storefront-event-collector/commit/c1dd7bbd27d567b2cb1d1eb1453e9329bc8a93c0))
|
|
37
|
+
- make price optional to support b2b ([3bb8e05](https://github.com/adobe/magento-storefront-event-collector/commit/3bb8e05aeb6fdd2582cfc3f21a5564065d919e91))
|
|
41
38
|
|
|
42
39
|
## [1.0.0](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.7...v1.0.0) (2021-06-07)
|
|
43
40
|
|
|
44
41
|
### [0.1.7](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.6...v0.1.7) (2021-06-07)
|
|
45
42
|
|
|
46
|
-
|
|
47
43
|
### Features
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
- asynchronous initialization via post message ([ad00fd9](https://github.com/adobe/magento-storefront-event-collector/commit/ad00fd97a25e1c949d302d059afc68d7a817948c))
|
|
50
46
|
|
|
51
47
|
### [0.1.6](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.5...v0.1.6) (2021-05-27)
|
|
52
48
|
|
|
53
|
-
|
|
54
49
|
### Bug Fixes
|
|
55
50
|
|
|
56
|
-
|
|
51
|
+
- fix page placement bug ([71fb887](https://github.com/adobe/magento-storefront-event-collector/commit/71fb88734101c8ec4075406330055e08e4f2e4aa))
|
|
57
52
|
|
|
58
53
|
### [0.1.5](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.4...v0.1.5) (2021-05-27)
|
|
59
54
|
|
|
60
|
-
|
|
61
55
|
### Features
|
|
62
56
|
|
|
63
|
-
|
|
57
|
+
- support gift options ([73cf94c](https://github.com/adobe/magento-storefront-event-collector/commit/73cf94c6b33712c85a7ee466344c5b1b071dd82f))
|
|
64
58
|
|
|
65
59
|
### [0.1.4](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.3...v0.1.4) (2021-05-26)
|
|
66
60
|
|
|
67
|
-
|
|
68
61
|
### Bug Fixes
|
|
69
62
|
|
|
70
|
-
|
|
63
|
+
- remove search input context from events ([4c44e7e](https://github.com/adobe/magento-storefront-event-collector/commit/4c44e7e2fda2f04851e9b81218c142c519ba5c29))
|
|
71
64
|
|
|
72
65
|
### [0.1.3](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.2...v0.1.3) (2021-05-26)
|
|
73
66
|
|
|
74
|
-
|
|
75
67
|
### Features
|
|
76
68
|
|
|
77
|
-
|
|
69
|
+
- populate placement and offset values ([95646aa](https://github.com/adobe/magento-storefront-event-collector/commit/95646aa69e89ca32d2137ea1531c9151643fc0c7))
|
|
78
70
|
|
|
79
71
|
### [0.1.2](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.1...v0.1.2) (2021-05-25)
|
|
80
72
|
|
|
81
73
|
### [0.1.1](https://github.com/adobe/magento-storefront-event-collector/compare/v0.1.0...v0.1.1) (2021-05-20)
|
|
82
74
|
|
|
83
|
-
|
|
84
75
|
### Bug Fixes
|
|
85
76
|
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
- include the shopping cart context with the place order event ([f10c94b](https://github.com/adobe/magento-storefront-event-collector/commit/f10c94b37f5cf939caadb702e5a6516eb65f6461))
|
|
78
|
+
- remove unnecessary early return ([fd5ebec](https://github.com/adobe/magento-storefront-event-collector/commit/fd5ebecdacc3fc39efab8774f52b3eceec0363c5))
|
|
88
79
|
|
|
89
80
|
## [0.1.0](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.19...v0.1.0) (2021-05-20)
|
|
90
81
|
|
|
91
|
-
|
|
92
82
|
### ⚠ BREAKING CHANGES
|
|
93
83
|
|
|
94
|
-
|
|
84
|
+
- TrackPageView is no longer called for you. You must execute this manually.
|
|
95
85
|
|
|
96
86
|
### Bug Fixes
|
|
97
87
|
|
|
98
|
-
|
|
88
|
+
- dynamically create all global contexts and remove track page view ([77f1372](https://github.com/adobe/magento-storefront-event-collector/commit/77f1372c2612e1b5eedb28ada47fea32accfd917))
|
|
99
89
|
|
|
100
90
|
### [0.0.19](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.18...v0.0.19) (2021-05-19)
|
|
101
91
|
|
|
102
|
-
|
|
103
92
|
### Bug Fixes
|
|
104
93
|
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
- dynamically calculate the shopper context ([46f464c](https://github.com/adobe/magento-storefront-event-collector/commit/46f464c1c30296d198b371522e2543940c63d13a))
|
|
95
|
+
- handle empty data layer during context creation ([d3fb41b](https://github.com/adobe/magento-storefront-event-collector/commit/d3fb41b511a321d17b22ba143b18bafb5314a974))
|
|
107
96
|
|
|
108
97
|
### [0.0.18](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.17...v0.0.18) (2021-05-18)
|
|
109
98
|
|
|
110
|
-
|
|
111
99
|
### Bug Fixes
|
|
112
100
|
|
|
113
|
-
|
|
101
|
+
- make product pricing optional ([f0d85e1](https://github.com/adobe/magento-storefront-event-collector/commit/f0d85e1d523792a1b4d5f8304aaa011625995f14))
|
|
114
102
|
|
|
115
103
|
### [0.0.17](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.16...v0.0.17) (2021-05-18)
|
|
116
104
|
|
|
@@ -120,19 +108,17 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
120
108
|
|
|
121
109
|
### [0.0.14](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.13...v0.0.14) (2021-05-14)
|
|
122
110
|
|
|
123
|
-
|
|
124
111
|
### Features
|
|
125
112
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
113
|
+
- support multiple search units ([c4f44bc](https://github.com/adobe/magento-storefront-event-collector/commit/c4f44bcd2329e53ba43d736316ec5f031048e748))
|
|
114
|
+
- support new facets structure ([0b86d75](https://github.com/adobe/magento-storefront-event-collector/commit/0b86d75d5a156d0e5b31582b92c911bc35389fb5))
|
|
115
|
+
- support new search input structure ([a8f022a](https://github.com/adobe/magento-storefront-event-collector/commit/a8f022afb4fe4e88d348591dac22bf4365fe67af))
|
|
129
116
|
|
|
130
117
|
### [0.0.13](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.12...v0.0.13) (2021-04-30)
|
|
131
118
|
|
|
132
|
-
|
|
133
119
|
### Bug Fixes
|
|
134
120
|
|
|
135
|
-
|
|
121
|
+
- remove conditionals on required fields ([499127f](https://github.com/adobe/magento-storefront-event-collector/commit/499127fa723c9249bd3ff846d653967f6aba901b))
|
|
136
122
|
|
|
137
123
|
### [0.0.12](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.11...v0.0.12) (2021-04-28)
|
|
138
124
|
|
|
@@ -140,95 +126,85 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
140
126
|
|
|
141
127
|
### [0.0.10](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.9...v0.0.10) (2021-04-23)
|
|
142
128
|
|
|
143
|
-
|
|
144
129
|
### Bug Fixes
|
|
145
130
|
|
|
146
|
-
|
|
131
|
+
- resolve id type mismatches ([8e17959](https://github.com/adobe/magento-storefront-event-collector/commit/8e1795928f40f19c4d98d7a4548330c6ecccba42))
|
|
147
132
|
|
|
148
133
|
### [0.0.9](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.8...v0.0.9) (2021-04-23)
|
|
149
134
|
|
|
150
|
-
|
|
151
135
|
### Bug Fixes
|
|
152
136
|
|
|
153
|
-
|
|
154
|
-
|
|
137
|
+
- remove invalid data type from value field ([8fad8af](https://github.com/adobe/magento-storefront-event-collector/commit/8fad8afb7efb885308f16af1463bfbab31345176))
|
|
138
|
+
- remove js build from tracker context ([5cb107c](https://github.com/adobe/magento-storefront-event-collector/commit/5cb107c80de94954ff001b7070c341443e08480d))
|
|
155
139
|
|
|
156
140
|
### [0.0.8](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.7...v0.0.8) (2021-04-22)
|
|
157
141
|
|
|
158
|
-
|
|
159
142
|
### Features
|
|
160
143
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
144
|
+
- add instant purchase event handler ([8304d4c](https://github.com/adobe/magento-storefront-event-collector/commit/8304d4c9941e00110ef2026483c016d5acc47edb))
|
|
145
|
+
- add page view event handler ([691d600](https://github.com/adobe/magento-storefront-event-collector/commit/691d600bfa5d333682a6ad8ff6683fc2692b2474))
|
|
164
146
|
|
|
165
147
|
### Bug Fixes
|
|
166
148
|
|
|
167
|
-
|
|
149
|
+
- handle empty shopping cart ([b79364e](https://github.com/adobe/magento-storefront-event-collector/commit/b79364eeadc564617a61b03fee9c90b1eed0c844))
|
|
168
150
|
|
|
169
151
|
### [0.0.7](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.6...v0.0.7) (2021-04-21)
|
|
170
152
|
|
|
171
153
|
### [0.0.6](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.5...v0.0.6) (2021-04-20)
|
|
172
154
|
|
|
173
|
-
|
|
174
155
|
### Features
|
|
175
156
|
|
|
176
|
-
|
|
177
|
-
|
|
157
|
+
- link click tracking ([47b9c44](https://github.com/adobe/magento-storefront-event-collector/commit/47b9c440d03b0e6ebfca71b8fd0052db1f98730d))
|
|
178
158
|
|
|
179
159
|
### Bug Fixes
|
|
180
160
|
|
|
181
|
-
|
|
161
|
+
- include a doctype in the example ([6434f97](https://github.com/adobe/magento-storefront-event-collector/commit/6434f97c54957da2d3df2ac5fc80d1b4c49598e4))
|
|
182
162
|
|
|
183
163
|
### [0.0.5](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.4...v0.0.5) (2021-04-16)
|
|
184
164
|
|
|
185
|
-
|
|
186
165
|
### Features
|
|
187
166
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
167
|
+
- allow data to be passed in to context creators ([46bea75](https://github.com/adobe/magento-storefront-event-collector/commit/46bea75924ee61fb87708479f783bb5952367daa))
|
|
168
|
+
- leverage custom context data ([fbfa729](https://github.com/adobe/magento-storefront-event-collector/commit/fbfa729ca713285dce954499d7436dcf833d1d2d))
|
|
169
|
+
- support search request id ([bffffeb](https://github.com/adobe/magento-storefront-event-collector/commit/bffffeb1a96d7af597a9cb268024ee42cbe3f61a))
|
|
170
|
+
- update schema versions ([6941c57](https://github.com/adobe/magento-storefront-event-collector/commit/6941c577a895a4cce253f9c5523577a5a4e9bdf0))
|
|
192
171
|
|
|
193
172
|
### [0.0.4](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.3...v0.0.4) (2021-04-09)
|
|
194
173
|
|
|
195
|
-
|
|
196
174
|
### Features
|
|
197
175
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
176
|
+
- populate order id ([ba2bb8b](https://github.com/adobe/magento-storefront-event-collector/commit/ba2bb8b1c85b7013c278d3db72ca6ca8b3c0c12a))
|
|
177
|
+
- populate page type ([48fa6d5](https://github.com/adobe/magento-storefront-event-collector/commit/48fa6d5ef365e0c67d1e159ca937c40a6a79b32a))
|
|
178
|
+
- support recommendation add to cart event ([dc63789](https://github.com/adobe/magento-storefront-event-collector/commit/dc637899a15f1ad6c69eed700d1ca2fdd3b9eef9))
|
|
179
|
+
- support recommendation api response received event ([5ec92ce](https://github.com/adobe/magento-storefront-event-collector/commit/5ec92ce343c46347a124b30065468b8ce3f9b166))
|
|
180
|
+
- support recommendation api response received event ([3f47b81](https://github.com/adobe/magento-storefront-event-collector/commit/3f47b812cf3dc99d6edf64aeb78b8e5520d66278))
|
|
181
|
+
- support recommendation click event ([c8d6426](https://github.com/adobe/magento-storefront-event-collector/commit/c8d6426d7a1695e877b9e0c4d29c35567651bf24))
|
|
182
|
+
- support recommendation render event ([e007582](https://github.com/adobe/magento-storefront-event-collector/commit/e007582eecf5c5c2c554d1d31c3105534a0f3625))
|
|
183
|
+
- support recommendation view event ([42fd248](https://github.com/adobe/magento-storefront-event-collector/commit/42fd248812b67de4931fab1a4362272c5e003964))
|
|
206
184
|
|
|
207
185
|
### [0.0.3](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.2...v0.0.3) (2021-04-01)
|
|
208
186
|
|
|
209
|
-
|
|
210
187
|
### Features
|
|
211
188
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
189
|
+
- support add to cart event ([c3ab34f](https://github.com/adobe/magento-storefront-event-collector/commit/c3ab34f9cce1be92c1cc7e6d9699b9890c84ca84))
|
|
190
|
+
- support place order event ([f9d8021](https://github.com/adobe/magento-storefront-event-collector/commit/f9d8021ce3e47ec833b581669c553d3727582117))
|
|
191
|
+
- support product view event ([8f2b388](https://github.com/adobe/magento-storefront-event-collector/commit/8f2b388340e4e2a49bb162a2ba5809dfbe93ed86))
|
|
192
|
+
- support recommendation api request sent event ([4f89389](https://github.com/adobe/magento-storefront-event-collector/commit/4f893892b50a614587f22594d73e473dcfbc3e13))
|
|
193
|
+
- support shopping cart view event ([5ebb760](https://github.com/adobe/magento-storefront-event-collector/commit/5ebb760917c3fa329a53296101869c361deb706f))
|
|
217
194
|
|
|
218
195
|
### [0.0.2](https://github.com/adobe/magento-storefront-event-collector/compare/v0.0.1...v0.0.2) (2021-03-25)
|
|
219
196
|
|
|
220
|
-
|
|
221
197
|
### Features
|
|
222
198
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
199
|
+
- add event handlers which send data to snowplow ([dc223aa](https://github.com/adobe/magento-storefront-event-collector/commit/dc223aa1427f3adb870596d44ad7e725fe98b97a))
|
|
200
|
+
- construct snowplow contexts ([9540fd2](https://github.com/adobe/magento-storefront-event-collector/commit/9540fd2ecafa9c9a67f4caf0a4ee044351fe70b5))
|
|
201
|
+
- create extension context and include it with global contexts ([8ca18d5](https://github.com/adobe/magento-storefront-event-collector/commit/8ca18d5b830261c7683644e1f09d89071e337d3f))
|
|
202
|
+
- create shopper context and include it with global contexts ([e2ffb14](https://github.com/adobe/magento-storefront-event-collector/commit/e2ffb1498e3b09d9323134fe626bbdd06775edc5))
|
|
203
|
+
- create shopping cart context and include it with global contexts ([0d0ffec](https://github.com/adobe/magento-storefront-event-collector/commit/0d0ffecb0a322a7ca458d4a5c3a90b9515cbf144))
|
|
204
|
+
- create storefront instance context and include it with global contexts ([22b5cb1](https://github.com/adobe/magento-storefront-event-collector/commit/22b5cb1afc2637af8aee2770815e02ea99b45801))
|
|
205
|
+
- include tracker global context ([7014a83](https://github.com/adobe/magento-storefront-event-collector/commit/7014a8369ed2b4e958a20379dee58f5e9924a6c9))
|
|
206
|
+
- initialize adobe client data layer ([bcdc07b](https://github.com/adobe/magento-storefront-event-collector/commit/bcdc07b1a69803bb9b9f9090d4a0bca9cb2f001d))
|
|
207
|
+
- initialize analytics ([6342e59](https://github.com/adobe/magento-storefront-event-collector/commit/6342e5907b02563d0b3e91458922394709c4c54b))
|
|
208
|
+
- send events to snowplow ([ab6edee](https://github.com/adobe/magento-storefront-event-collector/commit/ab6edee27d9dae18a8d438ad138e30b01cbb2b63))
|
|
233
209
|
|
|
234
210
|
### 0.0.1 (2021-03-17)
|
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ The collector listens for the following events.
|
|
|
58
58
|
- `searchRequestSent`
|
|
59
59
|
- `searchResponseReceived`
|
|
60
60
|
- `searchResultsView`
|
|
61
|
+
- `categoryResultsView`
|
|
61
62
|
- `searchSuggestionClick`
|
|
62
63
|
- `createAccount`
|
|
63
64
|
- `editAccount`
|
|
@@ -103,8 +104,6 @@ The handlers forward events to two edges:
|
|
|
103
104
|
|
|
104
105
|
`removeFromRequisitionList`
|
|
105
106
|
|
|
106
|
-
|
|
107
|
-
|
|
108
107
|
- [Adobe Experience Platform (AEP)](https://business.adobe.com/products/experience-platform/adobe-experience-platform.html) (requires a subscription and additional merchant [setup](https://experienceleague.adobe.com/docs/experience-platform/edge/fundamentals/datastreams.html?lang=en); data can be used by merchants inside the Adobe Experience Platform for detailed analytics, targeted merchandising, real time customer data profiles, and more)
|
|
109
108
|
|
|
110
109
|
Required contexts:
|
|
@@ -129,6 +128,8 @@ The handlers forward events to two edges:
|
|
|
129
128
|
|
|
130
129
|
`searchResultsView`
|
|
131
130
|
|
|
131
|
+
`categoryResultsView`
|
|
132
|
+
|
|
132
133
|
`searchSuggestionClick`
|
|
133
134
|
|
|
134
135
|
### Turning off collection per edge
|
|
@@ -142,9 +143,10 @@ Events are not set to AEP Edge unless explicitly configured (`EventForwarding.ae
|
|
|
142
143
|
Custom events are supported for the Adobe Experience Platform only. Custom data will not be forwarded to Adobe Commerce dashboards and metrics trackers.
|
|
143
144
|
|
|
144
145
|
For any `custom` event, the collector:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
|
|
147
|
+
- adds`identityMap` with `ECID` as a primary identity
|
|
148
|
+
- includes `email` in `identityMap` as a secondary identity _if_ `personalEmail.address` is set in the event
|
|
149
|
+
- wraps the full event inside an `xdm` object before forwarding to the Edge
|
|
148
150
|
|
|
149
151
|
Example:
|
|
150
152
|
|
|
@@ -152,13 +154,13 @@ Custom event published through MSE SDK:
|
|
|
152
154
|
|
|
153
155
|
```javascript
|
|
154
156
|
mse.publish.custom({
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
customContext: {
|
|
158
|
+
customStrAttr: "cheetah",
|
|
159
|
+
customNumAttr: 128,
|
|
160
|
+
personalEmail: {
|
|
161
|
+
address: "runs@safari.ke",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
162
164
|
});
|
|
163
165
|
```
|
|
164
166
|
|
|
@@ -201,9 +203,9 @@ Product view with overrides published though MSE SDK:
|
|
|
201
203
|
|
|
202
204
|
```javascript
|
|
203
205
|
mse.publish.productPageView({
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
customContext: {
|
|
207
|
+
customCode: "okapi",
|
|
208
|
+
},
|
|
207
209
|
});
|
|
208
210
|
```
|
|
209
211
|
|
|
@@ -235,11 +237,11 @@ Product view with Adobe Commerce overrides published though MSE SDK:
|
|
|
235
237
|
|
|
236
238
|
```javascript
|
|
237
239
|
mse.publish.productPageView({
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
customContext: {
|
|
241
|
+
commerce: {
|
|
242
|
+
customCode: "mongoose",
|
|
243
|
+
},
|
|
244
|
+
},
|
|
243
245
|
});
|
|
244
246
|
```
|
|
245
247
|
|
|
@@ -339,4 +341,3 @@ If you have any questions or encounter any issues, please reach out at these loc
|
|
|
339
341
|
[acdl]: https://github.com/adobe/adobe-client-data-layer
|
|
340
342
|
[unpkg]: https://unpkg.com/@adobe/magento-storefront-event-collector/dist/index.js
|
|
341
343
|
[issues]: https://github.com/adobe/commerce-events/issues
|
|
342
|
-
|