Embedding a Google Map on Your Site
If done properly, an embedded Google Map can be a great addition to your website. It’s a great tool that allows your visitors get a birds-eye view of your business, read reviews, and get turn-by-turn directions directly to your front door.
Putting a Google Map on your website is a rather simple process and doesn’t need any special programming skills in order to complete.
Follow the steps below to properly install a Google Map on your website.
We’ll use Inbound Boulder as our example.
Step 1: Go to Google Maps
The first step is to go to Google’s homepage, click on the grid next to the sign in button and select Maps (see below), or go to Google Maps directly.
Step 2: Search Your Address
Enter your business’s full address in the search box and click the search button.
Step 3: Find Your Listing
You should then see a dropdown of your business listing on the left-hand side of your screen underneath the search box (see below).
If you do not see your listing, don’t worry, proceed to the next step.
Click the menu symbol in the top left corner to find the embed code link.
Click the “Share or embed map” link on the left.
Then select Embed map.
Step 4: Customizing your Embedded Map
A pop-up screen should appear with the options to customize your Google Map. Here is where you select your Map settings.
Customize Map Size:
Here you can choose from one of the preset sizes or give your map your own custom dimensions.
Preview actual size:
This is where you can see how your new map will look on your website. Make sure to have the zoom and position of the map exactly how you want it.
Copy and Paste the Code:
Once you have customized your map and are ready to put it on your website, copy the <iframe> code at the top of the widget box and then paste it wherever you would like it to appear on your site. Now you’re ready to enjoy your new map!
Note: If you are doing this for a local business website, we strongly suggest you continue with Step 5.
Step 5: Add Schema Markup (optional)
In short, Schema.org is a collection of HTML tags that Google, Bing, and Yahoo! came together to create so webmasters can properly markup their sites so search engines can properly “digest” or crawl what’s inside. Marking up your website with the correct schema.org code can greatly increase your visibility in search engines.
Or in this case, properly label your Google map so they know which location is correct for your business.
But can’t they figure this out on their own without this additional code? In short, yes. The search engines of today have become really smart and are great in figuring out all of your business’s information when they crawl your site.
However, they don’t always get it right and schema markup makes their job a lot easier by designating which content is which and also allows your information to possibly be displayed in their knowledge graph and/or local pack (Carousel).
How to Markup your Google Map code with Schema.org (for a Local Business):
The gray code below is the Google Map <iframe> that was copied from Step 3. The red code is the new schema.org markup that we added.
Note: To get the URL needed to place in the new link, visit the embed map section in Step 3 and copy the “Share link” URL.
<div itemscope itemtype="http://schema.org/LocalBusiness">
<iframe src="yourLongGoogleMapURL" width="400" height="300" frameborder="0" style="border:0"></iframe>
<a itemprop="hasMap" href="yourGoogleMapUrl">Get Directions</a>
When completed, make sure to test your new markup with Google’s Structured Data Testing Tool to make sure it doesn’t have any errors.
That’s it! Now just paste the code onto your website and you’re done.
If you need help or have any questions, please say so in the comments below. If you’re in a rush or need someone to do it for you, feel free to contact us and we’ll be happy to help.
Latest posts by Ryan Bradley (see all)
- How Google’s Mobile-Friendly Update Will Impact Your Business - April 21, 2015
- What Happened to the Google Carousel Feature? - January 15, 2015
- Top 10 Social Media Sites for Local Businesses - November 10, 2014