- Search your business name, not just your street address, so the map shows your Google listing.
- Use Share > Embed a map > Copy HTML, then paste the code into an HTML or embed block.
- Change the width to 100% so the map fits phones and tablets.
- Always show your address as plain text too, along with a one-tap directions link.
Step by step: getting the embed code from Google Maps
The whole process takes about two minutes. Do it on a desktop or laptop. The embed option is hard to find in the mobile app.
Google gives you a short piece of HTML called an iframe. It works like a window on your page that shows a live Google Map. Visitors can zoom, drag, and open the location in the full Google Maps app.
- Go to google.com/maps in your browser.
- Type your business name and city, such as "Rosa's Bakery Austin", and select your listing.
- Click the Share button in the left panel.
- Switch to the "Embed a map" tab.
- Choose a size: Small, Medium, Large, or Custom. You can change this later.
- Click Copy HTML. The code is now on your clipboard.
- Paste it into your website editor, as shown in the platform steps below.
Should you search your business name or your address?
Search your business name whenever you have a Google Business Profile. The embedded map then shows a small info card with your name, star rating, review count, and a Directions button. That card builds trust before anyone calls you.
If you only search the street address, visitors get a plain red pin with no business name. That looks unfinished, and it can send people to the wrong door in a shared building.
If your listing doesn't come up in search, check that your Business Profile is verified and published. New or recently edited profiles can take a few days to show.
How to add the map in WordPress, Wix, Squarespace, and Shopify
Every website builder has a place for raw HTML. The key is to paste the code into that block, not into a normal text box. A normal text box shows the code as text instead of running it.
- WordPress (block editor): click +, add a "Custom HTML" block, and paste the code. In the classic editor, switch to the Text tab first.
- Wix: use the built-in Google Maps element under Add Elements and type in your business. Or go to Embed Code > Embed HTML and paste the iframe.
- Squarespace: add a Map block and enter your address. For the full listing card, paste the iframe into a Code block on plans that support it.
- Shopify: open Online Store > Themes > Customize, add a "Custom Liquid" section, and paste the code. Some themes have a Map section, but it may ask for an API key.
- Custom HTML site: paste the iframe wherever the map should appear, usually on the contact page or in the footer.
How to make the map fit on phones
Google's code sets a fixed width, such as width="600". On a phone screen that's narrower than 600 pixels, the map spills off the side or adds a sideways scroll bar.
The fix is simple. In the code, change width="600" to width="100%". The map will then fill whatever space it sits in, on any screen size.
Keep the height between 300 and 450 pixels. A taller map on a phone can trap the scroll, because swiping moves the map instead of the page. Check the finished page on your own phone before you call it done.
Where should the map go on your site?
The contact page is the standard spot. Place the map next to your address, phone number, and opening hours. People who want directions usually look for all four at once.
For businesses where customers come to you, like restaurants, salons, dentists, or shops, a small map in the footer or near the bottom of the homepage also works well. A plumber or cleaner who travels to customers usually doesn't need a map on every page.
Add a plain directions link under the map as well. This URL format opens turn-by-turn directions on any phone: https://www.google.com/maps/dir/?api=1&destination=Your+Business+Name+City. Replace the last part with your own name and city, using plus signs instead of spaces.
Does an embedded map help your local SEO?
Not directly. Google doesn't rank you higher just because your site has a map iframe. Your Google Business Profile, your reviews, and clear local content matter far more.
What does help is having your name, address, and phone number written as plain text, and matching your Business Profile exactly. Search engines can't read the text inside the map iframe. If the address only appears inside the map, Google may not connect it to your website.
A web designer will often add LocalBusiness schema markup too. It's code that tells search engines your address, hours, and phone number in a structured format. If you'd rather not handle any of this yourself, Fittedsite delivers finished sites with the contact page, map, and local details already set up. They go live in 48 hours, for $690 one-time or $49/month.
Privacy rules: do you need consent before showing Google Maps?
When a Google Map loads, the visitor's browser connects to Google's servers. That sends Google the visitor's IP address and may set cookies.
In the US, Canada, and Australia, you generally don't need a consent banner just for a map. You should still list Google Maps as a third-party service in your privacy policy. In the UK and EU, GDPR rules usually mean the map shouldn't load until the visitor agrees, typically through a cookie banner or a "click to load map" placeholder.
If you have customers in Europe or operate there, check how your cookie tool handles embeds. This is general information, not legal advice.
Common problems and how to fix them
Most map problems come down to a handful of causes. Here's what usually goes wrong and how to fix each one.
- The code shows as text on the page: you pasted it into a normal text block. Delete it and use an HTML, Code, or Embed block instead.
- The map is blank or gray: a security plugin or page builder may be stripping out iframes. Use the platform's own map element or allow iframes in the plugin settings.
- "For development purposes only" across the map: your theme's map widget uses Google's JavaScript API without billing set up. Use the free Share embed instead.
- The pin has no business name: you embedded the address, not your listing. Search your business name and copy fresh code.
- The map still shows your old address after a move: embed codes don't update by themselves. Update your Business Profile first, then generate new code.
- The page loads slowly: keep one map per page. Google's current code includes loading="lazy", so keep that part when you edit it.