DEV Community

Aurelix Solutions
Aurelix Solutions

Posted on Edited on Originally published at dev.to

Google Maps rank tracker: check your Google Maps ranking from every street around you

"Where do we rank on Google Maps?" has no single answer. Google Maps orders local results partly by where the searcher's map is, so a clinic can be first for "dentist" on its own block and eighth, or missing, a few kilometres away. Searching from your own desk only tells you about your desk.

A Google Maps rank tracker answers it properly: it runs the same search from a grid of points around the business and records the rank at each one. This guide does that with no code, then in Python, and sets up a weekly check that sends what moved to Slack.

Disclosure: I'm Aurelix, and I built Google Maps Rank Tracker, the tool used here. It's a paid tool, priced per grid point (prices below).

Path 1: no code

  1. Open Google Maps Rank Tracker in the Apify console (an Apify account is needed; the monthly credit on Apify's free plan covers a first test).
  2. Business: the name as it appears on Google Maps (Bond Street Dental), its place ID or its Google Maps link.
  3. Keywords: what customers type, up to 10: dentist, emergency dentist.
  4. Grid size 5x5, Distance between points 1 km. That's 25 points covering 4 × 4 km. Leave Grid centre empty to centre the grid on the business, or type an address to centre it on an area you want to win.
  5. Click Start.
  6. Open the Output tab and Export to Excel or CSV, or add Apify's Google Sheets integration so each run lands in a sheet.

Reading the result

There are two kinds of rows, told apart by row_type.

One row per keyword per grid point (row_type = point):

  • grid_row, grid_col, latitude, longitude, distance_km from the centre.
  • rank (1 to 20, empty when the business isn't in the top 20 there) and rank_label ("4" or "not in top 20").
  • top_3: the three businesses ranked first at that point, each with name, rating, review_count and is_your_business.
  • maps_url: the same search at that point on Google Maps, so you can check any number yourself.

One summary row per keyword (row_type = summary):

  • average_rank over the points where you're listed, and average_rank_with_misses, which counts every miss as 21 (the honest one to track).
  • best_rank, worst_rank, and share_top_3, share_top_10, share_top_20: the share of points (0 to 1) where you rank that high.
  • top_businesses: the five businesses most often in the top 3 across the grid, which is who you're really competing with on the map.

Path 2: Python, the grid as a heat map in Excel

pip install apify-client pandas openpyxl
Enter fullscreen mode Exit fullscreen mode
import os

import pandas as pd
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("aurelix/google-maps-rank-tracker").call(run_input={
    "business": "Bond Street Dental",
    "keywords": ["dentist", "emergency dentist"],
    "gridSize": "7x7",
    "spacing": 0.8,
    "unit": "km",
})
rows = pd.DataFrame(client.dataset(run["defaultDatasetId"]).iterate_items())
points = rows[rows["row_type"] == "point"]
summary = rows[rows["row_type"] == "summary"]

with pd.ExcelWriter("maps_rank_grid.xlsx") as xl:
    summary[["keyword", "average_rank_with_misses", "best_rank", "share_top_3", "share_top_10"]].to_excel(
        xl, sheet_name="Summary", index=False)
    for kw, g in points.groupby("keyword"):
        grid = g.pivot(index="grid_row", columns="grid_col", values="rank").fillna("-")
        grid.to_excel(xl, sheet_name=kw[:31])

print(summary[["keyword", "average_rank_with_misses", "share_top_3"]].to_string(index=False))
Enter fullscreen mode Exit fullscreen mode

Each keyword gets a tab laid out like the map (row 1 is the north edge), so the pattern is obvious: low numbers near the business, rising or turning into "-" towards the edges. Add Excel's colour scale to the tab and it reads as a heat map. The "-" cells are where customers searching that word don't see you at all.

Weekly tracking with a Slack message

Give the run a Track changes under this name value (stateKey, e.g. bond-dental-weekly), keep the business, keywords, grid, centre and zoom the same, save it as a task and schedule it weekly in the Apify console.

From the second run on:

  • Every point gets previous_rank and rank_change (positive means you moved up; "not in top 20" counts as 21).
  • Every summary gets average_rank_change, share_top_3_change, points_improved, points_declined and points_unchanged.

Paste a Slack incoming-webhook URL into Slack webhook and each run posts every keyword's average rank, top-3 share and the change since last week. That's a weekly local SEO report that writes itself, and a quick way to see whether a change to the Google Business Profile, its categories or its reviews actually moved anything.

Limits

  • Ranks 1 to 20 at each point; below that the point shows "not in top 20".
  • Grids from 3x3 to 13x13 points, up to 10 keywords per run.
  • Results can differ slightly by language and country; set language and country to match your customers.

Price

$1.00 per 1,000 grid points on the free plan ($0.80 to $0.64 on paid Apify plans), plus $0.0014 per run. A 5x5 grid for one keyword is 25 points, under 3 cents; a weekly 7x7 grid for two keywords is 98 points, about 10 cents a week. Searches that fail aren't charged.

Try it: Google Maps Rank Tracker on the Apify Store

Top comments (0)