Tracking Fusion Signals
dependencies
tag of your pom.xml
:fusion.conf
file in resources/conf/message/service/fusion.conf
. In that file, configure the query-profile
. This is the REST-API endpoint that will ingest signal data into a signals collection. For example:image_catalog
is the name of a primary collection that will be used to generate an auxiliary collection consisting of activity tracking data.When accessing Fusion using a service account, the credentials will be pulled from the configuration given in the services/api/fusion.conf file, which should contain these parameters to enable basic authentication:signals-index-pipeline
, can be used to define an index pipeline that will to be used to convert the raw JSON signal data into a set of Solr documents. As stated in the Fusion Signals API documentation, if no pipeline is defined, then the preconfigured _signals_ingest
pipeline will be used. Both the remaining two parameters, commit
and async
, are booleans. If commit
is set to true, a Solr commit will occur at the end of indexing allowing a persistent record of the activity to be kept. If async
is set to true, signals will be indexed in asynchronous mode. In this mode, an autoCommit is issued with each signal and failures are not reported. The default is false.<primary collection>_signals
, where <primary collection>
should be substituted with the name of the primary data collection. After data has been indexed and ingested into the primary collection, the Appkit Fusion Signals module can be used to populate the signals collection.click
will include, amongst other things, information about the URL that was clicked as well as the number of times that URL was clicked.A signal event of type annotation
will include, amongst other things, information about the annotation target, the collection, and the creator.For a full list of properties that are stored, refer to the signals collection associated with your application.Logging
pom.xml
file:conf/activity/tracking
, place a logger.conf
file. In the file, set the property logging-enabled
equal to true
:logging-enabled
is set to false
, then all logging will be disabled.logback.xml
file in /resources
and configure this to either output activity data to the console or a file (or both).For example, to output logging activity to the console:file
tag and is relative to the root of the application.type
refers to whether the event is a click or response, the user
is the name of the user, query
shows the query terms, hits
is the number of hits returned in the response, page
is the page number, and URL
is the URL associated with the click.<track:query>
tag with a reference to the query object that captures the user’s input:
<track:clicks>
tag around any result list to be tracked:
_type
parameter to provide a click type:
/twigkit/secure/services/url?url=http://www.google.com&_type=Other_Sites"