Customer Segmentation via Geolocation

You can define customer segments of registered and unregistered customers based on geolocation for targeted campaigns, micro-sites and product lines. You can do this in Salesforce B2C Commerce by creating a dynamic customer group with the Geolocation attribute. In B2C Commerce, a customer's geolocation is based on the customer's IP address and the geolocation database that is integrated with B2C Commerce, the GeoLite database created by MaxMind, available at

Note: GeoLite databases are distributed by MaxMind under the Creative Commons Attribution-ShareAlike 3.0 Unported License.

The Geolocation attribute group rule is one of many attribute you can use to define dynamic customer groups. See Using Dynamic Customer Groups for Active Merchandising.

Customer Segmentation

The customer segmentation attribute group rule, Geolocation, has the following attributes:

B2C Commerce Scripting API

You can access customer geolocation through the B2C Commerce scripting API for other storefront scenarios, using the following:

The geolocation data is stored in the order object, via the dw.order.Order.getGeoLocation method.


Geolocation details are included in the export order.xsd.

Related Links

Using Dynamic Customer Groups for Active Merchandising