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

7 thoughts on “Missing Geographic Coordinate and Location

  1. Mark Price

    Hello, Fernando!

    You will be happy to hear that the Episerver CMS – Development Fundamentals training course’s Exercise A4 has already been re-written to include instructions for installing the MaxMind database to enable the two Geolocation criteria. This improvement to the course is scheduled for release in October. Sadly it just missed the recent update on 3rd September… but it is coming soon!

    /Mark

    Liked by 1 person

    1. Hi Mark

      Thanks a lot for the comment. I made this post before the second day of the course start and it was a post testing. i would like to review it and write it again with more detail. But on the Episerver CMS – Development Fundamentals it was stating that it should configure the geolocation, so it was easy to figure it out 😉

      Like

  2. Hey Fernando!

    The part about the EPiServer.GoogleAnalytics add-on is unrelated to the issue with the Missing Geographic Coordinate and Location. I suggest that you separate that part into another blog post.

    /Chris

    Like

  3. Fernando,
    I think it would be helpful if you made it clear that your solution will activate the Geographic coordinate and location visitor groups using the old, now obsolete, Geolocation provider.
    If you want to use an up-to-date IP database it’s recommended that you instead install and configure the EPiServer.Personalization.MaxMindGeolocation package as described in the blog post that you referenced.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s