Store Locator Embed Code Generator
Configure your store finder below, watch the live preview update, then copy a single iframe snippet you can paste into any website. No code, no card, no catch.
Customize your widget
Live preview
Preview uses sample store data. Your published locator shows your own locations.
Your embed code
<!-- Maptera Store Locator -->
<iframe
src="https://maptera.switchlabs.dev/widget/map?layout=sidebar&theme=light&primaryColor=%233b82f6&height=600px&mapProvider=openstreetmap&showSearch=true&showFilters=true&showDirectionsButton=true&showCallButton=true&showStoreHours=true&company=YOUR_COMPANY_ID"
title="Store Locator"
width="100%"
height="600px"
style="border:0;width:100%;height:600px;"
loading="lazy"
allow="geolocation"
referrerpolicy="strict-origin-when-cross-origin"
></iframe>Replace YOUR_COMPANY_ID with the ID from your free Maptera account to go live with your own locations.
From snippet to live locator in 3 steps
The generator hands you the code instantly. Connecting your real store data takes a free account and about five minutes.
Configure & copy
Pick a layout, brand color, and the features your visitors need. Copy the iframe snippet right here — no account required to experiment.
Create a free account
Sign up at Maptera, add your store locations (type them in, import a CSV, or sync from Shopify or Wix), and grab your company ID from the dashboard.
Paste & publish
Swap YOUR_COMPANY_ID into the snippet, drop it into any page, and publish. Your customers get an interactive, mobile-friendly store finder.
What this embed code actually does
The snippet you generate above is a single HTML <iframe> that loads the Maptera store locator widget. Because it's an iframe, it drops cleanly into any website or content management system without conflicting with your existing styles or scripts. The widget renders an interactive map, a searchable store list, and tap-to-call and tap-for-directions actions — everything a visitor needs to go from “where's the nearest one?” to walking through your door.
Every option you toggle in the builder maps directly to a URL parameter on the widget, so the code stays readable and easy to tweak by hand later. Want to change your brand color next month? Edit the primaryColor value in the snippet, or just come back to this generator and copy a fresh one.
Where to paste it
- WordPress: add a Custom HTML block (or use the Code Editor) on a page or post and paste the snippet.
- Squarespace & Webflow: use an Embed / Custom Code element and drop the iframe in.
- Shopify & Wix: these have native one-click apps, but the iframe works too. See our Shopify and Wix install guides.
- Hand-coded sites: paste it anywhere in your page body. The
loading="lazy"attribute keeps it from slowing down your initial page load.
Why the iframe approach is the right call
An iframe sandboxes the widget so it can't break your site and your site can't break it. Map tiles, geocoding, and search logic all run inside the frame, which means you get a fully featured locator without bundling a JavaScript map library into your own build. It also means updates we ship to the widget reach your visitors automatically — no need to re-paste code every time we improve something.
Getting your company ID
The one placeholder in the generated code is YOUR_COMPANY_ID. That ID ties the widget to your store data. To get it, create a free Maptera account, add your locations, and copy the ID from your dashboard. The Free plan covers up to 10 locations at no cost; paid plans start at $17.99/month and include a 14-day free trial with no credit card required. Compare options on the pricing page.
Frequently asked questions
Is the embed code generator free?
Yes. Building and copying the code costs nothing. To publish with your own store data you create a free Maptera account — the Free plan supports up to 10 locations.
Will it slow down my website?
No. The snippet uses loading="lazy", so the widget only loads when it scrolls into view. The heavy lifting (maps, search, geocoding) happens inside the iframe, not in your page's main thread.
Can I change the design after I paste it?
Absolutely. Edit the URL parameters in the snippet directly, or come back to this generator and copy an updated version. From your Maptera dashboard you can also restyle the widget without touching the embed code at all.
Is it mobile-friendly?
Yes. The widget is responsive and includes tap-to-call and one-tap directions, so it works beautifully on phones, tablets, and desktops. Try resizing the live preview above to see.
Explore more
See the locator in action on our full interactive demo, browse the rest of our free tools, or check out industry-specific examples for food trucks, and many more. Weighing your options? Read how Maptera stacks up against the alternatives.
Ready to go live?
Create a free account to get your company ID and publish your locator today.
Ready to help customers find your stores?
Get started today with our 14-day free trial. No credit card required.