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:
Event | Triggered by Schema | Payload example |
---|---|---|
geolocation | context/core/Geolocation | Example |
session-timed-out | context/commerce/SessionTimedOut | Example |
session-logged-out | context/commerce/SessionLoggedOut | Example |
Profile Schema | Properties | Example |
---|---|---|
insights/affinities/locations | Location 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}/location | Last location observed for session | {"city":"Boulder","countryCode":"US","regionCode":"CO"} |
Metamodel
The following interactive graphic displays the schemas that invoke this enricher.
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.