---
schema_version: "1"
id: ab634498cf98f96f5dd6e3187a2b36b70d481cecd0bc3240c8b784aa25629f3c
title: Customer Promotions Based on Customer Location in B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_creating_customer_promotions_based_on_customer_location.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_creating_customer_promotions_based_on_customer_location.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 877c11490b2c2df9020e4cac541da7334b7159be8f2765cf45cc8be284a57b9d
description: Create promotions based on customer location, using IP address geolocation to determine a customer's geographical location.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Customer Promotions Based on Customer Location in B2C Commerce

Create promotions based on customer location, using IP address geolocation to determine a customer's geographical location.

If you create a dynamic customer group based on location, customize the promotions and storefront experience for the customer based on their general geographical location.

Salesforce B2C Commerce provides an IP geolocation database from MaxMind that all of your instances share. The database is updated as needed with the global releases. Information from the database can't be exported. Use the geolocation import/export schema only for the store geolocation database, which isn't based on IP address information.

Create a promotion that uses a customer group as a qualifier. See [Creating a Campaign](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_campaign.htm&release=264.0.0&type=5 "A campaign acts as a wrapper for your promotions and qualifiers. When you create a campaign, define a schedule and qualifiers for an entire group of promotions or slot configurations.") and [Creating a Promotion](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_promotion.htm&release=264.0.0&type=5 "To create product, shipping, and order promotions, the overall steps are the same, but with different rule specifications.") to learn how to assign a customer group to a campaign or promotion.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note For information on customizing the storefront experience, [Using Dynamic Customer Groups for Active Merchandising.](https://help.salesforce.com/s/articleView?id=cc.b2c_using_dynamic_customer_groups_for_active_merchandising.htm&release=264.0.0&type=5 "Dynamic customer groups enable you to create customer segments for targeted campaigns, micro-sites, and product lines.") Customers don’t have to be logged in to determine their IP address and use it to determine a geographical location.

To test the customer group in your website, include a group with your current location, so you can log in to the storefront and test the feature. Use the storefront toolkit [Site Preview Tool](https://help.salesforce.com/s/articleView?id=cc.b2c_using_the_site_preview_tool.htm&release=264.0.0&type=5 "Use the Site Preview Tool to view the storefront as it appears for a certain date or time. Choose to view the storefront as it appears for certain customer groups, or with certain source code. To preview an A/B test on a storefront, enter the A/B test and A/B test segment values.") to test the customer groups you create.

- **[Test Rule Data](https://help.salesforce.com/s/articleView?id=cc.b2c_promotion_test_rule_data.htm&release=264.0.0&type=5)**  
    If you’re using B2C Commerce customer groups that depend on city or region, Salesforce recommends that you test sample IP addresses against the database before creating rules. If the database is less precise in location than you expect, it’s possible to create customer group rules that don't trigger correctly. Make sure that you have permissions to the IP Address Geolocation Data module before starting this topic.
- **[Create Geographical Customer Groups](https://help.salesforce.com/s/articleView?id=cc.b2c_create_geographical_customer_groups.htm&release=264.0.0&type=5)**  
    Use rules to define customer groups by the geolocation data of the IP addresses of B2C Commerce customers when they log in.