1const ANALYTICS_EVENTS = { 2 PAGE_VIEW: { 3 name: 'page_view', 4 type: 'web.webpagedetails.pageViews', 5 }, 6 LINK_CLICK: { 7 name: 'component_interaction', 8 type: 'web.webinteraction.linkClicks', 9 }, 10 /** Hero-embedded booking form submit â navigation (see `booking.js` + `analytics.js`). */ 11 HERO_BOOKING_SUBMIT: { 12 name: 'hero_booking_submit', 13 type: 'web.webinteraction.linkClicks', 14 }, 15 /** Native form block submit (spreadsheet / Revinate â see `form.js` + `analytics.js`). */ 16 FORM_SUBMIT: { 17 name: 'form_submit', 18 type: 'web.webinteraction.linkClicks', 19 }, 20 SEARCH: { 21 name: 'search_performed', 22 type: 'web.search', 23 }, 24 SEARCH_RESULT_CLICK: { 25 name: 'search_result_click', 26 type: 'web.search.resultClick', 27 }, 28 PRODUCT_VIEW: { 29 name: 'product_view', 30 type: 'commerce.productViews', 31 }, 32 PRODUCT_LIST_ADD: { 33 name: 'add_to_cart', 34 type: 'commerce.productListAdds', 35 }, 36 PRODUCT_LIST_REMOVE: { 37 name: 'remove_from_cart', 38 type: 'commerce.productListRemovals', 39 }, 40 PRODUCT_LIST_VIEW: { 41 name: 'cart_view', 42 type: 'commerce.productListViews', 43 }, 44 CHECKOUT: { 45 name: 'checkout', 46 type: 'commerce.checkouts', 47 }, 48 PURCHASE: { 49 name: 'purchase', 50 type: 'commerce.purchases', 51 }, 52 LOGIN: { 53 name: 'user_identified', 54 type: 'account.login', 55 }, 56 CONSENT_UPDATE: { 57 name: 'consent_updated', 58 type: 'user.consentUpdate', 59 }, 60 ERROR_DISPLAY: { 61 name: 'error_occurred', 62 type: 'error.display', 63 }, 64 PRODUCT_COMPARE: { 65 name: 'product_compare', 66 type: 'commerce.productCompare', 67 }, 68}; 69 70/** Values for `web.webInteraction.type` on link-click events (page navigation vs file/asset). */ 71const ANALYTICS_WEB_INTERACTION_TYPES = { 72 LINK: 'other', 73 DOWNLOAD: 'download', 74 EXIT: 'exit', 75}; 76 77/** `web.webInteraction` payload for hero booking submit (ACDL). */ 78const ANALYTICS_WEB_INTERACTION_HERO_BOOKING = { 79 NAME: 'Hero Booking Submit', 80 TYPE: 'exit', 81}; 82 83/** `web.webInteraction.type` for form block submit (ACDL); name is `document.title`. */ 84const ANALYTICS_WEB_INTERACTION_FORM_SUBMIT = { 85 TYPE: 'exit', 86}; 87 88/** Values for `web.webInteraction.type` on custom events (click, link, form submit). */ 89const CUSTOM_WEB_INTERACTION_TYPES = { 90 CLICK: 'click', 91 LINK: 'link', 92 FORM: 'form submit', 93 MAP_CLICK: 'Map Click', 94}; 95 96export { 97 ANALYTICS_EVENTS, 98 ANALYTICS_WEB_INTERACTION_TYPES, 99 ANALYTICS_WEB_INTERACTION_HERO_BOOKING, 100 ANALYTICS_WEB_INTERACTION_FORM_SUBMIT, 101 CUSTOM_WEB_INTERACTION_TYPES, 102};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.