Extension Installation

This describes how to install the AddOns and extensions. A more detailed installation instruction for the AddOns are described in the respective pages of the AddOns.

Extension and AddOn Folders

The Event Tracking extensions are part of SAP Commerce Cloud. After downloading and unzipping the file, the AddOns and Extensions appear in the following subdirectories:

AddOns appear inside the <HYBRIS_HOME>/bin/ext-addon/hybrisanalyticsaddon folder and in <HYBRIS_HOME>/bin/ext-addon/eventtrackingwsaddon.

  1. hybrisanalyticsaddon: Contains the hybrisAnalytics AddOn which injects the JavaScript code into the Accelerator pages.
  2. eventtrackingwsaddon: Contains the eventtrackingwsaddon AddOn which receives the events (event endpoint).

The following subdirectories appear inside the <HYBRIS_HOME>/bin/ext-eventtracking directory:

  1. eventtrackingmodel: Contains the extension for declaring business events which shall be resolved by the eventtrackingservices extension dynamically.
  2. eventtrackingservices: Contains the extension which resolves the events being received by the EventTrackingWS AddOn dynamically during runtime.
  3. eventTrackingPublisher: Contains the extension which publishes the event using Spring Integration once an event has been successfully resolved by the eventtrackingservices extension.

Extension Installation

The following code contains all required AddOns and extensions for the SAP Commerce Cloud Event Tracking which needs to be added to the localextensions.xml:

<path dir='${HYBRIS_BIN_DIR}' />
<extension name='eventtrackingservices' />
<extension name='eventtrackingmodel' />
<extension name='hybrisanalyticsaddon' />
<extension name='eventtrackingpublisher' />
<extension name='eventtrackingwsaddon' />
  • For a detailed installation instruction of the hybrisanalyticsaddon please see the respective page for the hybrisAnalytics AddOn
  • For a detailed installation instruction of the eventtrackingwsaddon please see the respective page for the eventtrackingwsaddon AddOn

Extension Configuration

The following standard configuration is applied in local.properties when using the SAP Commerce Cloud installer:

spring.profiles.active=eventtrackingpublisher_activemq
eventtrackingwsaddon.events_endpoint.enabled= true
eventtrackingpublisher.jms.amq.broker.url=tcp\://localhost\:61616
csrf.allowed.url.patterns=/[^/]+(/[^?]*)+(sop/response)$,/[^/]+(/[^?]*)+(merchant_callback)$,/[^/]+(/[^?]*)+(hop/response)$,/[^/]+(/[^?]*)+(language)$,/[^/]+(/[^?]*)+(currency)$,/(events)$
commerceservices.default.desktop.ui.experience=desktop
eventtrackingpublisher.jms.amq.queue.name=HYBRIS
  • The spring.profiles.active=eventtrackingpublisher_activemq sets the active spring output adapter profile. It is used by the eventtrackingpublisher Extension, please see $HYBRIS_HOME/hybris/bin/ext-eventtracking/eventtrackingpublisher/resources/eventtrackingpublisher-spring.xml.
  • eventtrackingwsaddon.events_endpoint.enabled=true enables the eventtrackingwsaddon endpoint
  • eventtrackingpublisher.jms.amq.broker.url=tcp\://localhost\:61616 defines the URL of the JMS message broker
  • eventtrackingpublisher.jms.amq.queue.name=HYBRIS defines the queue name of the JMS queue.