|
1 | 1 | ---
|
2 | 2 | group: product-recommendations
|
3 |
| -title: Recommendation Events |
| 3 | +title: Data Collection for Recommendations |
4 | 4 | ee_only: True
|
5 | 5 | ---
|
6 | 6 |
|
7 |
| -When you deploy the `magento/product-recommendations` module, the module tracks the following user events. These events enable behavioral data collection. |
| 7 | +When you install and configure SaaS-based Adobe Commerce features such as [Product Recommendations]({{ page.baseurl }}/recommendations/install-configure.html) or [Live Search]({{ page.baseurl }}/live-search/install.html), the modules deploy behavioral data collection to your storefront. This mechanism collects anonymized behavioral data from your shoppers and powers product recommendations. For example, the `view` event is used to compute the `Viewed this, viewed that` recommendation type, and the `place-order` event is used to compute the `Bought this, bought that` recommendation type. |
8 | 8 |
|
9 |
| -If shoppers use ad blockers or enable privacy settings that prevent the `magento/product-recommendations` module from capturing events, the metrics reflected in the [Product Recommendations dashboard](https://docs.magento.com/user-guide/marketing/product-recommendations.html#dashboard) will not be accurate. Most likely, the engagement and revenue numbers will be underrepresented. |
| 9 | +The following events are not specific to Product Recommendations, but are required to return results: |
10 | 10 |
|
11 |
| -{:.bs-callout-info} |
12 |
| -If [Cookie Restriction Mode](https://docs.magento.com/user-guide/stores/compliance-cookie-restriction-mode.html) is enabled, Magento does not collect behavioral data until the shopper consents. If Cookie Restriction Mode is disabled, Magento collects behavioral data by default. |
| 11 | +- `view` |
| 12 | +- `add-to-cart` |
| 13 | +- `place-order` |
| 14 | + |
| 15 | +The [Storefront Events Collector]({{ site.baseurl }}/shared-services/storefront-event-collector.html#quick-start) lists all the events deployed to your storefront. From that list, however, there is a subset of events specific to Product Recommendations. These events collect data when shoppers interact with recommendation units on the storefront and power the metrics used to help you analyze how well your recommendations are performing. |
13 | 16 |
|
14 |
| -Event | Category | Description |
| 17 | +Event | Description | [Used for metrics?](https://docs.magento.com/user-guide/marketing/recommendation-metrics.html) |
15 | 18 | --- | --- | ---
|
16 |
| -`add-to-cart` | product | A product is added to the cart |
17 |
| -`impression-render` | recommendation-unit | The recommendation unit is rendered on the page. |
18 |
| -`instant-purchase` | checkout | The customer completes an instant purchase |
19 |
| -`place-order` | checkout | The customer's order is submitted |
20 |
| -`rec-add-to-cart-click` | recommendation-unit | The customer clicks the **Add to cart** button for an item in the recommendation unit. |
21 |
| -`rec-click` | recommendation-unit | The customer clicks a product in the recommendation unit. |
22 |
| -`remove-discount-action` | shopping-cart | A discount code is removed from a cart |
23 |
| -`remove-from-cart` | product | A product is removed from a cart |
24 |
| -`view` | product | The customer views a product details page (PDP) |
25 |
| -`view` | recommendation-unit | The recommendation unit becomes viewable on the page, such as by scrolling into view |
| 19 | +`impression-render` | The recommendation unit is rendered on the page. | Yes |
| 20 | +`rec-add-to-cart-click` | The customer clicks the **Add to cart** button for an item in the recommendation unit. | Yes, when an **Add to cart** button is present in the recommendations template. |
| 21 | +`rec-click` | The customer clicks a product in the recommendation unit. | Yes |
| 22 | +`view` | The recommendation unit becomes viewable on the page, such as by scrolling into view. | Yes |
| 23 | + |
| 24 | +If you are using the default Adobe Commerce storefront or [PWA](https://magento.github.io/pwa-studio/product-recs/), handling these events is done for you. If you are writing your own custom storefront, learn how you can [integrate Product Recommendations]({{ site.baseurl }}/recommendations/headless.html) into your storefront. |
| 25 | + |
| 26 | +Many shoppers use ad blockers or enable privacy settings. These configurations prevent the `magento/product-recommendations` module from capturing events, which might cause the metrics in the [Product Recommendations dashboard](https://docs.magento.com/user-guide/marketing/product-recommendations.html#dashboard) to underreport engagement and revenue numbers. |
| 27 | + |
| 28 | +{:.bs-callout-info} |
| 29 | +If [Cookie Restriction Mode](https://docs.magento.com/user-guide/stores/compliance-cookie-restriction-mode.html) is enabled, Adobe Commerce does not collect behavioral data until the shopper consents to using cookies. If Cookie Restriction Mode is disabled, Adobe Commerce collects behavioral data by default. |
0 commit comments