You're seeing the "Oops! Something went wrong" error because your embedded Snazzy Maps (Google Maps) integration is encountering issues—typically related to the Google Maps API key or restrictions tied to it.
1. Ensure You Have a Valid Google Maps API Key
- Go to Google Cloud Console (console.cloud.google.com).
- Create or select a project for your site.
- Enable the Maps JavaScript API under API & Services > Library.
- Generate an API key under APIs & Services > Credentials.
- Copy the API key for use in your project.
2. Remove or Adjust API Key Restrictions
- Under APIs & Services > Credentials, click your key.
- If HTTP referrer restrictions are set, make sure they include your Webflow domain, like:
yourwebsite.webflow.iowww.yourcustomdomain.com/* - Also ensure the key allows access to:
- Maps JavaScript API
- Geocoding API (if you're translating addresses)
- Save your changes after reviewing.
3. Add the API Key to Your Embed Code
- In the Snazzy Maps embed code, locate the script's src URL (it usually looks like
https://maps.googleapis.com/maps/api/js?...) - Ensure it includes your API key as
?key=YOURAPIKEY - Example:
https://maps.googleapis.com/maps/api/js?key=YOURAPIKEY&callback=initMap
4. Embed the Updated Code in Webflow
- Open Webflow Designer
- Drag and drop an Embed element from the Add panel.
- Paste the full embed code, now including your API key.
- If the code calls a callback function (like
initMap()), wrap the script in a self-invoking function inside the embed box. - Click Save & Close, then Publish your site.
5. Use Webflow's Custom Code Area if Needed
- If the map still fails inside the Designer, try embedding it in Site Settings > Custom Code inside
</body> or in the Page Settings, then test on the published site.
6. Check JavaScript Console Errors
- Open the published site in a browser.
- Right-click and choose Inspect > Console.
- Look for error messages like:
API key is invalidAPI not enabledReferer not allowed- Address any specific errors using the Google Cloud Console.
Summary
To fix the "Oops! Something went wrong" Snazzy Maps error in Webflow, ensure you have a valid, unrestricted Google Maps API key included in your embed code, and that the Maps JavaScript API is enabled in your Google Cloud project. Embed the full code with the key in Webflow and test on the published site.