Short answer
To get a visitor's precise location, add a Location request step to the link's workflow. The visitor sees a page with your title, your description and a button (by default "Share my location"). Only when they tap the button does their browser show its own permission prompt. If they agree, Linkbreakers records the latitude, longitude and accuracy (in meters) their device reports and the workflow goes on along the Location shared branch. If they refuse, skip, or their device cannot give a position, it goes on along the Not shared branch.
Without this step, nothing changes: scan location stays approximate and comes from the IP address (country, region, city). Precise location is only ever recorded when the visitor agrees in their browser. The step is available on every plan.
Quick summary
- A page step in the workflow editor's interaction steps, styled by your page theme, with a back button like other pages.
- Two branches: Location shared and Not shared. They can lead to the same next step or to different ones.
- The browser prompt only appears after the visitor taps your button. An optional skip button never triggers it.
- If the visitor's browser already allows location for the link's site, the position is read without showing the page.
- Ask only once per device lets a device that already shared go straight on along Location shared.
- Coordinates show in each visit's activity timeline, in Slack notifications and in webhooks, and can be saved on the visitor's profile.
- A Shared locations map widget on your analytics dashboards plots every shared position, once at least one visitor has shared.
- Also available through the API, the MCP server and the Assistant.
Step-by-step
- Go to Links and open the QR code or link. Its workflow opens.
- Click the + button on the connector where you want to ask, for example between the scan and the destination.
- In the interaction steps, choose Location request ("Ask visitors to share their precise location, with their permission").
- Fill in the step:
- Title: the heading of the page, "Share your location" by default.
- Description (optional): tell visitors why you ask, for example to show the nearest store. This is the place to explain it.
- Button label: the button that asks the browser, "Share my location" by default.
- Show a skip button: adds a second button that takes the Not shared branch without asking the browser. Set its text in Skip label ("Skip" by default).
- Ask only once per device: see below.
- Click Create Location Request. When you insert it on an existing connector, both branches lead to the step that came next, so the visit carries on as before whatever the visitor chooses.
- To send the two outcomes to different places, connect the Location shared branch and the Not shared branch to the steps you want.
- Scan the code with your phone to check both paths: once sharing, once refusing or skipping.
What the visitor sees
- A page in your page theme with your title, your description and your button. A back button is available like on other pages.
- When they tap the button, their browser shows its usual permission prompt. Before that tap, the browser is not asked.
- With the skip button turned on, they can tap it to move on without the browser being asked.
How each branch behaves
Location shared
The visitor tapped the button and agreed in the browser prompt. The step records the latitude, longitude and accuracy (in meters) that the device reports, then the workflow continues on the Location shared branch.
Not shared
This is the step's else branch. The workflow continues on it when:
- the visitor refuses in the browser prompt,
- the device cannot give a position, for example no GPS fix, a timeout, a browser that does not support it, or a page that is not secure,
- the visitor presses the skip button.
Unconnected branches
A branch that is not connected to anything sends the visitor to the link's fallback destination, like any other step.
When the browser already allows location
If the visitor's browser already allows location for the link's site, the position is read without showing the page. This happens on every visit, so a returning visitor who allowed it before goes straight on along Location shared.
Ask only once per device
With Ask only once per device turned on, a device that has shared its location on that step is not asked again. Later visits from the same device go on along Location shared without being asked, and the location is not captured again. Turn it off if you want a fresh position on every visit.
Where the location shows
Activity timeline: each visit shows the step's outcome, "Location Shared", "Location Refused", "Location Skipped", "Location Unavailable" or "Location Already Shared", with the coordinates, the accuracy and a Google Maps link.
Slack notifications: the same details appear in the scan notification.
Webhooks: the outcome and coordinates are part of the visit journey.
Visitor profile: switch on save to visitor profile on the step and use
{{location.latitude}},{{location.longitude}}and{{location.accuracy}}as values. The saved coordinates can then be used in visitor data conditions and appear in CSV exports of visitors.Analytics dashboards: the Shared locations map widget plots the positions (see below).
The country, region and city in the rest of your analytics still come from the IP address.
See shared positions on a map
Once at least one visitor has shared their position, your analytics dashboards offer a Shared locations widget: a map with a marker for every position shared through a Location request step.
- Adding it: a dashboard you can edit shows an Add map banner as soon as someone has shared a position, on the workspace dashboard and on the dashboard of a link with this step. You can also ask the Assistant on the dashboard ("add a map of the locations visitors shared"). The widget is never part of a new dashboard's starter set, and neither the banner nor the Assistant suggests it while nobody has shared.
- Reading it: the map opens zoomed on the positions. Nearby positions are grouped into one marker showing how many it holds, and they split apart as you zoom in. Hover a single marker to see its coordinates, the accuracy the device reported and when it was shared.
- Filters: the widget follows the dashboard's date range and its link, directory, tag and country filters. On a link's dashboard it only shows that link.
- Empty periods: when no visitor shared a position in the selected period, the widget says so instead of drawing an empty map.
- How many: the map draws the 2,000 most recent positions in the period.
With the API, MCP and the Assistant
The step can be created like any other workflow step through the Linkbreakers API, the MCP server or the Assistant.
- Event action:
EVENT_ACTION_LOCATION_REQUEST - Payload:
location_requestwithtitle,description,button_label,skip_enabled,skip_labelandask_once - Branches:
location(Location shared) andelse(Not shared), connected with theworkflow_steps_connectMCP tool or the connect endpoint - Shared positions:
GET /v1/analytics/shared-locations(MCP and Assistant toolanalytics_shared_locations) returns them newest first, with latitude, longitude, accuracy in meters, time and link, plus the total count. It takes the same date range and link, directory, tag and country filters as the other analytics endpoints. Without dates it covers all time, solimit=1tells you whether anyone has shared a position.
Privacy and consent
- Precise location is only ever collected when the visitor agrees in their browser. Linkbreakers never reads it any other way.
- Visitors can refuse the prompt, use the skip button if you show one, or later withdraw the permission in their browser settings.
- You, the business that owns the link, decide to ask. Say why in the description, and cover precise location in your own privacy notice. See what GDPR means for your links.
- The Linkbreakers Privacy Statement describes precise location shared with permission.
Limits and caveats
- Browsers only offer location on secure (https) pages. All Linkbreakers links are https.
- The accuracy depends on the device. The step records the accuracy the device reports, so you can tell a precise fix from a rough one.
- Some visitors will refuse or skip. Make sure the Not shared branch leads somewhere useful.
- With Ask only once per device, later visits from that device do not update the position.
- The Shared locations map draws the 2,000 most recent positions in the selected period. There is no heat map.
Frequently asked questions
Does Linkbreakers now collect GPS on every scan?
No. Scan location is still approximate and IP-based by default. Precise location is only recorded on links with a Location request step, and only when the visitor agrees in their browser.
What happens if the visitor says no?
The workflow continues on the Not shared branch. If you leave it unconnected, the visitor goes to the link's fallback destination.
Can visitors skip without seeing the browser prompt?
Yes, if you turn on Show a skip button. Skipping takes the Not shared branch and never triggers the browser prompt.
Is the Location request step on every plan?
Yes. It is available on every plan.
Can I see the shared positions on a map?
Yes. Add the Shared locations widget to an analytics dashboard, from the Add map banner or by asking the Assistant. It is offered once at least one visitor has shared a position.
Can I route visitors by their coordinates?
Save the coordinates on the visitor's profile with the step's save to visitor profile option, then use them in visitor data conditions.
Sources
- Linkbreakers Location request step, editor and visitor page, checked in the product on 2026-10-28.
- Linkbreakers Shared locations dashboard widget, added on 2026-11-03.
- MDN Web Docs, Geolocation API: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
- MDN Web Docs, secure contexts: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
Last reviewed
2026-11-03 by Laurent Schaffner.
About the Author
Laurent Schaffner
Founder & Engineer at Linkbreakers
Passionate about building tools that help businesses track and optimize their digital marketing efforts. Laurent founded Linkbreakers to make QR code analytics accessible and actionable for companies of all sizes.
Related Articles
How to track location from QR code scans
Step-by-step location tracking, accuracy limits, and compliance considerations for QR analytics.
How to save visitor data from any workflow step?
Turn on Save to visitor profile on a workflow step to record a tapped choice, a milestone or the scanned link's context on the visitor, without asking another question.
How to use visitor data conditions?
Route visitors to different destinations based on their profile data and custom attributes using intelligent visitor data conditions.
On this page
Need more help?
Can't find what you're looking for? Get in touch with our support team.
Contact Support