How to Add Google Maps to Your Site the Right Way — So Customers Find You Without Slowing the Page Down
A map added the wrong way can pile on hundreds of kilobytes and a stack of requests on every load. Here's how to embed the map and the directions button properly — so people find you while the page stays fast on mobile.
The most annoying moment for a new customer isn't when they can't find your price. It's when they're sitting in the car outside a building with three entrances, not sure which one is yours. Or when they open your site on 4G in the parking lot and the map spins for five seconds before the pin shows up. In both cases, a properly placed map solves it in two taps. A poorly placed one creates the problem.
Many people think "put Google Maps on the site" means one single thing. It's actually three separate decisions — which kind of map, how you load it, and which button sits next to it — and each has a version that slows your page down for nothing.
The simple map (embed) versus the dynamic map (API)
There are two completely different ways to add a map, and they get confused constantly.
- Simple embed — go to Google Maps, search your address, click Share → Embed a map, copy the `iframe` code. No API key, no card, free with no limits. For 95% of local businesses, this is the right answer.
- Dynamic map (Maps JavaScript API) — use this only if you genuinely need custom features: multiple pins drawn from your database, filters, a store locator with dozens of locations. This one requires an API key and a billing account, has a monthly free cap (around 10,000 loads/month per Google Maps Platform's documentation), and you pay above it. Google also removed the universal $200 monthly credit many relied on.
Our rule: if you have one single address, don't touch the API. The simple embed does exactly the same job, for free, and it's harder to break.
Why the map slows your page down (and by how much)
A Google map isn't a photo. It's a small program: it loads scripts, image tiles, fonts, icons. When you test a page with a live, scrollable map, you can see dozens of extra network requests and hundreds of extra kilobytes — weight that's felt most on mobile, on cellular data, exactly where the person in the parking lot is looking for you.
The problem isn't that you add a map. It's that most people set it to load immediately, even though the map sits down in the footer, where the visitor only arrives after reading everything. You pay page speed for something the person may never even see.
How to load it without paying in speed
Three techniques, from simplest to most effective:
- `loading="lazy"` on the iframe — a single attribute. It tells the browser to defer the map until the visitor scrolls near it. It's the absolute minimum, and anyone copying the embed code can do it.
- Click-to-load (our recommendation) — you first show a lightweight static image of the map with a "View map" button. The real map loads only when the person clicks. It's the fastest possible pattern: the page doesn't carry the map's weight until someone actually wants it.
- Just a link + a "Directions" button — sometimes you don't even need an embedded map. A button that opens the Google Maps app on the customer's phone, with the route already started, is often all you need — and it weighs almost nothing.
For many brochure sites, the winning combo is: a static image of the location + a big "Open in Google Maps / Directions" button. Fast, clear, zero hassle.
The "Directions" button — the piece everyone forgets
The map shows *where* you are. The directions button *takes* the person there. They're different things, and the second one brings customers.
On a phone, a proper link opens the navigation app directly with the route calculated from the current location. The structure is simple: a link to `google.com/maps/dir/?api=1&destination=` followed by your address or coordinates. One click, and the customer is already on the way to you. Without it, you're asking them to copy the address, paste it manually, search — three steps where half give up.
The details that make the difference
- Correct address, the same everywhere — the map must land on the real location, not the neighboring street. If the pin is wrong, you've got a Google Business Profile to sort out first; we cover that separately in what is a Google Business Profile.
- Descriptive iframe title — a `title` attribute on the map helps accessibility and screen readers. Small, but correct.
- Test on a real phone — open the page on 4G, not just office wi-fi. That's where you see whether the map drags the page down.
- Don't add two maps — one, at the bottom, next to your hours and phone. Everything else is a link.
A map is most useful as part of a local visibility strategy, not on its own. If you want to show up when someone searches "near me," also read local SEO.
What it costs to have us do it
If you'd rather not touch code, we put it in properly — a lightweight map, a directions button, tested on a phone. On the sites we build, the integration comes naturally as part of the package.
| Service | Price |
|---|---|
| Landing page | €290–490 |
| Presentation site | €490–890 |
| Online store | from €690 |
| Maintenance | from €29/month |
| AEO/GEO | from €290 |
We're a team in Cluj-Napoca (Cluj-Napoca), working 100% remote across Romania. We won't sell you a map with 30,000 pins you don't need — we put in exactly what helps you.
Want to see how it looks on your site, at no cost? Message us on WhatsApp at wa.me/40750257140 and we'll make you a free demo site — with the map and directions button already set up the right way.
Frequently asked questions
Do I need a Google API key to put the map on my site?+
No, not if you use the simple embed. On Google Maps you click Share → Embed a map and copy the iframe code — no key, no card, free. You only need an API key and a billing account for the dynamic map (Maps JavaScript API), which you'd use for custom features like dozens of locations drawn from your database.
Does the map really slow the site down that much?+
A live, scrollable map adds dozens of network requests and hundreds of kilobytes on every load — weight felt most on mobile, on cellular data. Usually the map isn't the problem; the problem is that it's set to load immediately even though it sits low on the page. With loading="lazy" or click-to-load, you only pay that weight when the visitor actually reaches the map.
What's the difference between a simple embed and the Maps JavaScript API?+
The simple embed is a ready-made iframe: free, no limits, no key, perfect for a single address. The Maps JavaScript API builds the map from code and allows multiple pins, filters, a store locator — but it needs a key, a billing account, and has a monthly free cap (around 10,000 loads/month per Google's documentation), above which you pay. For a single-address business, the embed is the answer.
How do I make a "Directions" button that starts the route on a phone?+
Use a link to google.com/maps/dir/?api=1&destination= followed by your address or coordinates. On a phone it opens the navigation app directly with the route calculated from the customer's location. One click and they're on their way to you, without copying and pasting the address manually.
Can I just add a link to Google Maps, without an embedded map?+
Yes, and it's often the best choice for speed. A static image of the location plus a big "Open in Google Maps / Directions" button weighs almost nothing and gives the customer exactly what they want: the route. Add the embedded map only if it genuinely adds value, not out of reflex.
7 mistakes that drive clients away from your website
Leave your email and get the guide right here, instantly. No spam.
Want to see what your business's website could look like?
Message us on WhatsApp and we'll prepare a FREE demo website with your business name. See it first — decide after.