Location Affinity Enricher

Overview

The Profile Location Affinity enricher tracks information from a customer's browsing session. This enricher creates a record in the profile that notes the various locations from which a customer browses, and tracks the customer's affinity to these locations over time.

The location affinity data includes the following entries for each city the user has browsed from:

  • City Name
  • Region
  • Country
  • Affinity Score

The Location Affinity enricher reacts to the following events:

  • geolocation
  • session-timed-out
  • session-logged-out


Events

The following events in the Context service trigger the Location Affinity enricher:

EventTriggered by SchemaPayload example
geolocationcontext/core/GeolocationExample
session-timed-outcontext/commerce/SessionTimedOutExample
session-logged-outcontext/commerce/SessionLoggedOutExample



Profile SchemaPropertiesExample
insights/affinities/locationsLocation and Affinity Score: - city, countryCode, regionCode, score, keyed on city_region_country{ "Akureyri_6_IS": { "location": { "city": "Akureyri", "countryCode": "IS", "regionCode": "6"}, "recentCount": 0, "recentScore": 0, "score": 0.3010299956639812}}
observations/web/{sessionId}/locationLast location observed for session{"city":"Boulder","countryCode":"US","regionCode":"CO"}


Metamodel

The following interactive graphic displays the schemas that invoke this enricher.


  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.