Missing Geographic Coordinate and Location

During Bootcamp exercise A4, is required to create a new Visitor Group for personalization. But the Geographic Location was not present.

image

Only Time of Day was present.

The Geographic criteria are hidden until the geolocation provider been configured (This note was present on the documentation, but I missed of the first reading).

So after reading a bit and found https://world.episerver.com/blogs/Henrik-Nystrom/Dates/2018/6/geolocation-provider-changes/ from Henrik Nyström and thanks in advance for correcting my post in order to set it right ;). The Henrik’s post is very detailed and helpful.

So, following the steps:

1. Using Nuget package  EPiServer.Personalization.MaxMindGeolocation and installing it through Package Manager Console to my AlloyTraining Visual Studio Project.

MissingGeographic-adding package

2. Download from MaxMind’s website the GeoLite2-City.mmdb and GeoLite2-City-Locations-en.csv files and saved them on AlloyTraining\App_Data web project folder.

3. Change the geolocation provider for MaxMindGeolocationProdiver on the Web.Config file:

<episerver.framework>
  <geolocation defaultProvider="maxmind2">
    <providers>
        <add name="maxmind2" 
             type="EPiServer.Personalization.MaxMindGeolocationProvider, 
                   EPiServer.Personalization.MaxMindGeolocation" 
             databaseFileName="App_Data\GeoLite2-City.mmdb" 
             locationsFileName="App_Data\GeoLite2-City-Locations-en.csv" />
    </providers>
  </geolocation>
...
</episerver.framework>

Now we can use the criteria under “Time and Place Criteria” to drag&drop and select the location:

MissingGeographic-criteria

MissingGeographic-criteria Lisbon