---
schema_version: "1"
id: 8c4a4c96ffc6cd0e848ad353c03909413477be99064666851752741afbea5d9f
title: Test Rule Data
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_promotion_test_rule_data.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_promotion_test_rule_data.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 91dcffcb315300a25e90b8513637f2c7aac3bc102866a4fd9186ca8c3b2aea25
description: 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.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Test Rule Data

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.

1. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **Administration** | **Operations** | **IP Address Geolocation Data**.
2. On the IP Address Geolocation Data page, enter an IP address and click **Find**.
    
    The City, Region, Country, Postal Code, Metro Code, Latitude, and Longitude for the IP address in the database display. Note any discrepancies with the results you expect and use this when creating the [customer group membership rules.](https://help.salesforce.com/s/articleView?id=cc.b2c_dynamic_customer_group_attributes.htm&release=264.0.0&type=5 "Use these attributes for dynamic customer groups.")