Google Maps error in Analytics reports

  • Description

    The following Analytics reports use Google Maps to display  visitor's location:

    Sitecore CMS 7.2 — Sitecore XP 7.5:

    • Engagement Analytics -> Organization -> Business Overview
    • Engagement Analytics -> Visit -> Visitor (Contact) Overview

    Sitecore XP 8.0 — Sitecore XP 8.2:

    • Marketing Control Panel -> Engagement Plan -> Supervisor -> View (Contacts chunk) -> Visits

    Due to changes in the Google Maps API, the "Oops! Something went wrong." error message might be displayed instead of Google Map:

    Google Maps error

  • To resolve a Google Maps error in Analytics reports:

    1. Open the following page: https://developers.google.com/maps/documentation/javascript/get-api-key.
    2. Retrieve an API key, click Get a Key.
    3. In the \sitecore\shell\Applications\Analytics\GoogleMap\GoogleMap.html file, modify this line:
      <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true">
      so that it uses the retrieved API key:
      <script type="text/javascript" src="http://maps.google.com/maps/api/js?key={API key here}">
    4. Clear the browser cache.

Applies to:

CMS 7.2 - 8.2

January 19, 2017
February 08, 2017

Reference number:

117538

Keywords: 

  • DMS