How to Embed Google Maps on a Business Website
Part of the guide: Local SEO & Google Business Profile
Embed API request cost
Google Maps Platform docs
Embed API modes
place, view, directions, streetview, search
Maximum zoom level
0 is the whole world
Minimum map size
Either dimension
See Sources at the end of the article. Cards marked Assumption are examples, not results.
Google states all Maps Embed API requests are available at no charge with unlimited usage
The cost of the map is not the issue. Loading, accessibility, privacy and tracking are.
Google Maps Platform, Maps Embed API, checked 3 November 2026
Does an Embedded Map Help You Rank?
What Are the Three Ways to Show Your Location?
| Method | Setup | Loads Google's map on page load? | Best for |
|---|---|---|---|
| Interactive iframe (Copy HTML from Google Maps) | Minutes, no developer | Yes (unless lazy loaded) | One location, contact page |
| Maps Embed API with a key | Needs a Google Cloud project and key | Yes (unless lazy loaded) | Directions or fixed zoom modes |
| Text address plus a "Get directions" link | Minutes | No | Pages where speed or privacy matter most |
How Do You Copy the Embed Code From Google Maps?
When Should You Use the Maps Embed API?
https://www.google.com/maps/embed/v1/MAP_MODE?key=YOUR_API_KEY&PARAMETERS. Its examples include a key parameter, and the setup runs through a Google Cloud project. Google documents five modes:| Mode | What it shows | Required parameter |
|---|---|---|
| place | A pin for one place | q (name, address or Place ID) |
| view | A map at fixed coordinates | center |
| directions | A route | origin, destination |
| streetview | A panorama | location or pano |
| search | Results for a search | q |
zoom runs from 0 (the whole world) to 21 (individual buildings), and maptype is roadmap (the default) or satellite. Google also notes maps smaller than 200 px in either dimension are not supported.Which Four Attributes Should the Iframe Have?
loading="lazy", allowfullscreen and referrerpolicy="strict-origin-when-cross-origin". Check that your pasted code has the first two and add the third if you want to be explicit. Then add a title, which Google's sample does not show.<iframe
title="Map showing Corner Cafe, 12 High Street"
width="100%"
height="350"
style="border:0"
loading="lazy"
allowfullscreen
referrerpolicy="strict-origin-when-cross-origin"
src="PASTE-YOUR-GOOGLE-EMBED-URL-HERE">
</iframe>
title attribute to label an iframe, and that without it they "have to navigate into the iframe to determine what its embedded content is." The W3C's accessibility technique H64 makes the same recommendation. Describe the content concisely, as in the example above.eager, so the map loads immediately if you leave it out. MDN adds that deferral only happens when JavaScript is enabled. A practical note, not from a source: if the map sits at the very top of the screen on a phone, lazy loading gains you nothing, so put it below your address and hours.strict-origin-when-cross-origin, which sends the full address only for same-site requests and just the site name over HTTPS to other sites. Setting it explicitly matches Google's sample and avoids surprises.width="100%" (a practical suggestion, not from Google) with a height around 300 to 400 pixels so the map does not push your phone number off the first screen. Check on a real phone, not a desktop window.Why Add a Text Address and a Directions Link?
- Search:
https://www.google.com/maps/search/?api=1&query=Corner+Cafe+12+High+Street - Directions:
https://www.google.com/maps/dir/?api=1&destination=Corner+Cafe+12+High+Street
api=1 is required in every request (without it, "all parameters are ignored"), values must be URL-encoded, and travelmode accepts driving, walking, bicycling, two-wheeler or transit. The docs make no statement about cost for Maps URLs, so check their page if you expect heavy use.tel: link autodials the number, while on other devices the behaviour varies (some open a calling app or offer to save the number). Write the number as text as well, so it is readable and copyable.Does Your Map Need Cookie Consent?
- Open your contact page in a private browser window, open the developer tools, and look at what is stored on the device after the map loads. If you are not sure how to read it, ask your web person or a consent-management tool.
- If your cookie banner is set to block third-party embeds until accepted, the map will need a placeholder with your address and a link. That is another reason to keep the text address and the directions link.
- If you serve EU or UK visitors, read our guides on website cookie consent and local business website GDPR compliance.
Should You Add Structured Data for the Map?
address and name as the required properties, and recommends geo (latitude and longitude with at least five decimal places), openingHoursSpecification, telephone and url.hasMap property as "A URL to a map of the place" for the Place type, but Google's LocalBusiness page does not list it, so treat it as optional and do not expect a visible change.How Do You Measure Whether the Map Works?
Is a Better Map Block Worth an Hour?
| Map only | Map plus text address and tracked links | |
|---|---|---|
| Monthly contact-page visits (assumption) | 600 | 600 |
| Visitors who act: call, directions or form (assumption) | 12% | 16% |
| Actions | 72 | 96 |
| Actions that become a visit or sale (assumption) | 25% | 25% |
| Extra customers per month | 18 | 24 |
| Profit per customer (assumption) | $20 | $20 |
| Monthly profit from the page | $360 | $480 |
| Gain from the better layout | n/a | $120 a month |
| One-off time to build (assumption) | n/a | 1 hour at $50 = $50 |
What Should You Do Today?
- Search your business on Google Maps and check the pin sits on your entrance and the name, address and phone number match your website.
- Copy the embed code (Menu, Share or embed map, Embed a map, Copy HTML) and paste it into your contact page below your address and opening hours.
- Add
title,loading="lazy"andwidth="100%"to the iframe, then test it on a real phone. - Add a text address, a tap-to-call link and a "Get directions" link using the Maps URL format above, and name them clearly in your analytics.
- Open the page in a private window, check what the map stores on the device, and if you have UK or EU visitors, make sure your cookie banner treats the embed correctly.
FAQ
Sources
- Google Maps Platform: Maps Embed API getting started
- Google Maps Platform: Embedding a map (modes and parameters)
- Google Maps Help: Embed a map or directions
- Google Maps Platform: Maps URLs
- Google Business Profile Help: Improve your local ranking on Google
- Google Search Central: LocalBusiness structured data
- MDN: The iframe element
- MDN: The a element
- W3C: Technique H64, using the title attribute of the iframe element
- web.dev: Lazy-loading iframes
- Schema.org: hasMap
- ICO: What are the PECR rules?
- ICO: What are the exceptions?
Related guides
Free for local businesses
Want this applied to your business?
I'll review your Google presence, local SEO, and ad accounts — and send you a specific action plan within 48 hours. No pitch, no pressure.
Want hands-on help?
See how DataLatte handles Local SEO for local businesses.

Local marketing strategist with 10+ years at global agencies — OMD, Dentsu, GroupM, and BBDO. Now helping small businesses get the same data-driven edge. Based in Europe, working with clients in the US, UK, Australia, and beyond.
Want this applied to your business?
Let's review your current marketing setup together — free, no obligations.
Get Your Free Marketing Audit