---
schema_version: "1"
id: f9d6cb53f3782a7aa6244333a680ae24331e422d32da2f5c76dced88486c4a17
title: Time, Location Tracking, and Geofencing Configurations for Consumer Goods Cloud Visits
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_concept_geofencing_settings.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_concept_geofencing_settings.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9b89822a98b756366c2238c70cbc43125b4667155884a4713fbe3f1f80880a47
description: Configure the Visit Template and Sales Organization objects to enable geofencing and time tracking of visits. Use the Visit object fields to capture the user’s time and location, and to identify visits that start or complete outside the geofencing range.
products:
  - Consumer Goods
release: "264"
---
# Time, Location Tracking, and Geofencing Configurations for Consumer Goods Cloud Visits

Configure the Visit Template and Sales Organization objects to enable geofencing and time tracking of visits. Use the Visit object fields to capture the user’s time and location, and to identify visits that start or complete outside the geofencing range.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col>
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Available in: Lightning Experience </p>
              <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and
                <strong>Unlimited</strong> Editions where Consumer Goods Cloud is enabled
              </p>
            </td>

          </tr>
        </tbody>
      </table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:20%">
        <col style="width:20%">
        <col style="width:20%">
        <col style="width:20%">
        <col style="width:20%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d18886e70">Field</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d18886e73">Description</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d18886e76">Object</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d18886e79">Object Section</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d18886e82">Comments</th>
        </tr>
        <tr class="">
          <th scope="colgroup" class="slds-cell-wrap" colspan="5" style="vertical-align:top;" id="d18886e88">
            <strong>Capture Time and Geolocation</strong>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Location Capture at Start</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the GPS location of the user at the start of a visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit Template</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Capture Time and Location</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">—</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Location Capture at Complete</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the GPS location of the user at the completion of a visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit Template</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Capture Time and Location</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">—</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Location Capture at Cancel</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the GPS location of the user at the time of cancellation of a
            visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit Template</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Capture Time and Location</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">—</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Capture Proceeding Time</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the start and end time of a visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit Template</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Capture Time and Location</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">—</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="5" style="vertical-align:top;" headers="d18886e70 d18886e73 d18886e76 d18886e79 d18886e82 d18886e88 ">
            <strong>Set Geofence Range</strong>
          </td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Distance Unit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Defines the unit of measurement, for example, kilometers or miles, for
            geolocation distance. You can also define the distance in decimals. For example, 0.1
            miles.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Sales Organization</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Identification</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">—</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Geolocation Distance</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Specifies the acceptable geolocation range within which users can start or
            complete a visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Sales Organization</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Identification</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 "><a name="cg_concept_geofencing_settings__ul_adr_gg4_sdc"><!-- --></a>
            <ul id="cg_concept_geofencing_settings__ul_adr_gg4_sdc">
              <li>All fields in Sales Organisation are usually cached on the Consumer Goods Cloud
                offline mobile app. To consider the modified values for Geolocation Distance on
                the Consumer Goods Cloud offline mobile app, users must restart the mobile
                app.</li>

              <li>If Geofence Distance is left blank, the Consumer Goods Cloud offline mobile app
                considers the Geofence Distance as 0. In such cases, when Geofence Distance is 0
                and ‌geofencing validation is set to Error, the user must be in the exact store
                location.</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="5" style="vertical-align:top;" headers="d18886e70 d18886e73 d18886e76 d18886e79 d18886e82 d18886e88 ">
            <strong>Validate Geolocation </strong>
          </td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Start Visit Geolocation Validation</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Determines the type of geolocation validation when a user starts a visit. Based
            on the validation options (None, Error, or Warning), the Consumer Goods Cloud offline
            mobile app triggers a response for the user. The validation is based on a comparison
            between the user’s GPS location and the store’s location.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit Template</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Visit Start related</td>

          <td class="slds-cell-wrap" rowspan="2" style="vertical-align:top;" headers="d18886e82 d18886e88 ">
            <p>The validation options control how strictly ‌geolocation validation
              is enforced.</p><a name="cg_concept_geofencing_settings__ul_twh_pg4_sdc"><!-- --></a>
            <ul id="cg_concept_geofencing_settings__ul_twh_pg4_sdc">
              <li>None: No geolocation validation is applied. Users can start or finish visits
                from any place. This option retains the current behavior where geolocation
                validation isn’t enforced.</li>
              <li>Error: Users can start or complete the visit only if they’re physically present
                within the geofence range of the store. If they're outside the range, an error
                message prevents them from continuing the visit. The only exception is when the
                GPS coordinates in the account are missing. If the coordinates are missing, the
                app handles this situation as a warning.</li>
              <li>Warning: The app informs users if they’re outside the specified geofence range
                but can still start or complete a visit. The option works when the user’s mobile
                device location is wrong or unavailable. The location can be unavailable when
                location services aren’t turned on, when users don't have a signal, or when the
                store doesn’t have GPS coordinates. If the user starts or completes the visit
                outside the range, the app enables the Visit Start Outside Range or Visit
                Completed Outside Range fields in the Visit object.</li>
            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">End Visit Geolocation Validation</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Determines the geolocation validation type when a user completes a visit. Based
            on the validation type (None, Error, or Warning), the Consumer Goods Cloud offline
            mobile app triggers a response for the user. The validation is based on a comparison
            between the user’s GPS location and the store’s location.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit Template</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Visit Start related</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="5" style="vertical-align:top;" headers="d18886e70 d18886e73 d18886e76 d18886e79 d18886e82 d18886e88 ">
            <strong>Track Visit Time and Location</strong>
          </td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Start Geolocation</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the user’s GPS location at the start of a visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Mobility Details</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">Location Capture at Start must be enabled for this field to be populated.</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Geolocation</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the user’s GPS location at the visit’s completion.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Mobility Details</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">Location Capture at Complete must be enabled for this field to be
            populated.</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Actual Start Time</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the time when a user starts a visit.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Mobility Details</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">Capture Proceeding Time must be enabled for this field to be populated.</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Actual End time</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Captures the time when a user completes a.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Mobility Details</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">Capture Proceeding Time must be enabled for this field to be populated.</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="5" style="vertical-align:top;" headers="d18886e70 d18886e73 d18886e76 d18886e79 d18886e82 d18886e88 ">
            <strong>Track Visits Outside Geofencing Range</strong>
          </td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Visit Start Outside Range</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Indicates if the user started the visit outside the permissible range between the
            GPS location and the store’s geolocation.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Mobility Details</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">Start Visit Geolocation Validation must be set to Warning.</td>

        </tr>
        <tr class="">
          <td data-label="Capture Time and Geolocation" class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e70 d18886e88 ">Visit Completed Outsid​​e Range</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e73 d18886e88 ">Indicates if the user completed the visit outside the permissible range between
            the GPS location and the store’s geolocation.</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e76 d18886e88 ">Visit</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e79 d18886e88 ">Mobility Details</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18886e82 d18886e88 ">End Visit Geolocation Validation must be set to Warning.</td>

        </tr>
      </tbody>
    </table>