• Love the analytics plug-in. I set up the dashboard to be visible in the WordPress admin, and I just last night snagged a Goole Maps Javascript API key to use with the Location function. I’m not seeing any points though, on the map, as depicted in your documentation for the country code.

    I HTTP restricted the API key to the domain of the WP site. Could that be causing issues? Otherwise, why wouldn’t the individual points / highlighting be showing up in the dashboard?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Enable the Javascript Console on your browser and while displaying the map reload the page. Are there any javascript errors displayed in the console?

    Thread Starter nthdegreeburns

    (@nthdegreeburns)

    Confirmed — seeing a Google Maps API error: RefererNotAllowedMapError in the JS console. I have key restrictions set to a wildcard of my WP blog website, though, so I’m surprised I’m seeing this.

    Thread Starter nthdegreeburns

    (@nthdegreeburns)

    Note — I’ve also regenerated the key with the same HTTP key restriction. It’s now cached on the old key in the dashboard and throwing an expired key error. I’ll wait a bit and see if the new key takes effect / starts working.

    It’s actually, most probably, cached by the browser, do a force refresh on your page (CTRL+F5 on Chrome) or clear your browser cache.

    Thread Starter nthdegreeburns

    (@nthdegreeburns)

    Google Maps API error: RefererNotAllowedMapError

    Got it again in a clean Firefox browser session. Same error I was getting with Chrome. Thoughts?

    Thread Starter nthdegreeburns

    (@nthdegreeburns)

    Still no joy. The new API key is still throwing the RefererNotAllowedMapError.

    It’s clear that the referrer restriction is incorrect. Try to disable it or post some details about the API Project configuration.

    Thread Starter nthdegreeburns

    (@nthdegreeburns)

    A few questions…

    Which APIs from the maps console should be enabled for the key to work? Javascript? Geocoding? Both?

    What should the referer restriction be? I used *.mywebsite.com/* before, but that was throwing an error. I changed to simple mywebsite.com (no trailing slash), and the issue seems to have been fixed.

    Might be worth updating the docs with some specifics for folks unfamiliar with / new to the Google API console for devs. Thanks, Alin!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Dashboard map API question’ is closed to new replies.