A geofence is a virtual perimeter for a real-world geographic area that you can use to target users as part of Swrve’s Location-based Campaigns. The Geofences screen enables you to create and manage your geofences. To access the screen, on the Manage menu, click Geofences.
The following example illustrates a list of geofences for London airports.
You can perform the following actions on the Geofences screen:
- Add custom properties to your geofences by clicking the Settings link.
- Create a new geofence.
- Search for a specific geofence or set of geofences using the search box and sort options available.
- View your geofences in list or map view by clicking the relevant button.
- Edit an existing geofence by clicking the geofence name.
- Delete a geofence by clicking the delete icon in the geofence row.
The Geofence Settings screen enables you to add up to five custom properties to your geofence setup that you can later use to include the property values in your Location-based Campaign notification content. For example, you might want to include custom properties such as a location name or deeplink.
To add custom properties for your geofences:
Step 1: On the Geofences screen, click Settings.
Step 2: Under the Custom Properties section, in the Property field, enter the property name. The property name must consist of lower case letters, dashes and underscores only (no spaces).
Note: If you want to use geofence properties with user properties to filter your campaign, the property name cannot be longer than 18 characters. For more information about filtering by user properties, see Creating Location-Based Campaigns.
Step 3: Click Add to add the property.
Step 4: Add up to four more custom properties as needed. After you have added the desired properties, click Save.
When creating a new geofence, the custom properties are displayed and you can enter values that are associated with that geofence. The properties are then available in the list of properties in the Insert Property field when you add the notification content for your campaign. For more information, see Creating Location-Based Campaigns.
To create a new geofence:
Step 1: On the Geofences screen, click Create Geofence.
In this example, the user has previously added custom properties for each restaurant included in their geofence.
If you give the browser permission to do so, the map on the Create Geofence screen defaults to your current location.
Step 2: In the Name field, enter the geofence name, and if required, any keywords that will help you search for and filter the list of geofences when you create a new campaign. Try to use a standard naming convention and use square brackets to separate any keywords; for example, Restaurant Name [city] [community] [location].
Step 3: (optional) If you want to include a label that can be inserted as a custom property in the notification text, in the Label field, enter a value for the geofence label.
Step 4: (optional) If your geofences include custom properties, they are displayed under the Custom Properties section. Enter the values for each property as required.
Step 5: Click the point on the map where you want to create the geofence, or use the map search box to search for the location. After you select a location, the coordinates and radius (in meters) of the geofence are displayed in the bottom left corner of the map.
If necessary, click-and-drag the center of the geofence to move it to another point on the map, or manually enter the coordinates in the Latitude and Longitude fields.
Step 6: Click-and-drag the border of the geofence to cover the desired area, or enter the radius in the Radius field.
Step 7: To save the geofence, click Save.
The geofence is displayed on the Geofences screen and is immediately available to use in your Location-based Campaigns.
- Use geofences to target and trigger Location-based Campaigns. For more information, see Creating Location-Based Campaigns.