Blog/Tutorial

Track Competitor Prices in Google Sheets Automatically

··9 min read

Most competitor price tracking starts the same way: a spreadsheet with your products down the side, a few competitor columns, and someone who opens each competitor's site every Monday and types the numbers in. It works for ten products. At fifty it eats an afternoon, and the prices are already out of date by Wednesday.

This guide shows how to build a price tracker in Google Sheets that fills itself in. You point Lection, an AI web scraper for Chrome, at a competitor's product or category page, describe the fields you want, schedule the run, and the rows land in your sheet. Then a few formulas turn those rows into "who changed what, and are we still competitive?"

What you end up with

One row per competitor product per run, in a sheet you own:

ColumnExample
Product nameCordless drill, 18V, 2 batteries
Price129.00
Was price (if shown)149.00
Stock statusIn stock
Rating and review count4.6 · 312
Product URLLink to the product page
Scraped atDate of the run

You choose the columns. Lection extracts what the page shows, so if a competitor does not display stock or a was-price, those cells stay empty. The product URL matters most: it is how you match rows over time and how change alerts know which product is which.

Why not IMPORTXML?

Google Sheets can fetch a page with =IMPORTXML(url, xpath), and for a simple static page that is a fine free option. For price tracking it tends to break for three reasons, covered in more detail in when IMPORTXML breaks:

  • Prices loaded with JavaScript. Many store pages fill in the price after the page loads. IMPORTXML reads the raw HTML and gets an empty cell.
  • Requests from Google's servers. Some stores block or change content for requests that do not come from a normal browser.
  • Fragile selectors. One template change on the competitor's site and the XPath points at nothing.

Lection reads the page as your browser renders it and extracts by description ("the current price, not the crossed-out one") rather than by a selector you maintain.

Step 1: Pick the pages to watch

You have two shapes of tracker. Choose before you start.

A category or search page (for example, a competitor's "cordless drills" listing). One page gives you many products at once, and new products show up automatically. This is the best fit for watching a competitor's range and promotions.

A list of specific product pages that match your own SKUs. More precise for like-for-like comparison, but you maintain the list. Scheduled runs take several URLs at once: up to 20 per run on Standard and 50 on Professional.

Apply any filters on the site first (brand, size, region) and copy that URL. Filtering on the site is cheaper than scraping everything and filtering in the sheet.

For Amazon there is a shorter route: the free Amazon ASIN Product Exporter returns price, rating and availability for a list of ASINs, and the Amazon search results exporter covers a search page.

If the competitor runs on Shopify, the free Shopify Store Products Exporter exports the whole public catalog (titles, prices, compare-at prices, SKUs, variants and stock status) without an extension. Run it on the same day each week and compare the price columns to spot changes and new sale prices.

Step 2: Describe the data and check the preview

  1. Install the free Lection extension and open the competitor page in Chrome.
  2. Open the Lection side panel and describe the fields, for example: "For each product: name, current price, was price if shown, stock status, rating, review count and the product link." You can also click the elements you want on the page.
  3. Compare the preview with the page. Check three or four rows, and look hard at the awkward ones: sale items, "from $X" prices, bundles and sponsored listings.

If something is off, correct it in plain English: "use the sale price, not the struck-through price", "skip sponsored products", "price as a number without the currency sign". Preview again until the rows match the page.

If the category spans several pages, ask Lection to collect every page. A single run covers up to 10 pages on the free plan, 50 on Standard and 200 on Professional. The multi-page scraping guide covers Next links, Load More buttons and infinite scroll.

Step 3: Save it and schedule it

A one-off export (CSV or Excel download) is enough for a quick comparison. For tracking, save the extraction, because a saved scrape is what a schedule re-runs.

  1. Open Scheduled Scrapes and create a schedule for the saved scrape. Pick Daily or Weekly (Hourly is available on Standard and above) and your timezone.
  2. Add extra start URLs if you are tracking several pages.
  3. Under Delivery, select Sheets, click Connect Google Sheets, approve access, then choose an existing spreadsheet or create a new one.
  4. Choose how runs are written: append to one tab, or create a new tab on each run.
  5. Save, then click Run now to see the first rows arrive.

Scheduled runs happen in the cloud, so your computer can be off. Sheets delivery needs Standard, Professional or the 30-day Standard trial; the free plan includes one daily scheduled run delivered by email. The full setup is on the Google Sheets integration page.

Schedule automated cloud scrapes with Lection

Append or new tab?

Sheets delivery adds rows. It does not overwrite a product's existing row. For price tracking that is usually what you want:

  • Append to one tab builds a price history. Every run adds the full set again with a date, so you can filter by product URL and watch a price move over weeks.
  • New tab per run gives you dated snapshots, which makes "this week vs last week" easy to read.

If you need exactly one row per product that updates in place, the n8n Google Sheets template does that.

Get told when a price moves

Standard and Professional include change alerts on scheduled scrapes. Lection compares each run with the previous one, matching rows by their URL column, and can notify you only when rows are added or changed instead of on every run. That turns the tracker from "a sheet you check" into "a message when a competitor changes a price or adds a product".

Step 4: Turn rows into answers

With an append tab called Prices (product URL in column F, price in column B, scraped date in column G), a few formulas do most of the work.

Clean the price if it arrives as text with a currency sign, in a helper column:

=VALUE(REGEXREPLACE(B2, "[^0-9.]", ""))

Check a few rows if the competitor uses a comma as the decimal separator.

Latest price per product. On a Compare tab with your products in column A and the matching competitor URL in column C:

=XLOOKUP(C2, Prices!F:F, Prices!B:B, "not found", 0, -1)

The last argument searches from the bottom, so you get the most recent run.

Put that in column D. Previous price, in column E, to spot a change: filter the history for that URL, sort by date and take the second-newest row.

=INDEX(SORTN(FILTER(Prices!B:B, Prices!F:F=C2), 2, 0, FILTER(Prices!G:G, Prices!F:F=C2), FALSE), 2)

Then compare the latest competitor price (D) with your own price (column B):

=IF(D2="not found", "", IF(D2<B2, "Competitor cheaper by "&TEXT(B2-D2, "0.00"), "We are cheaper or equal"))

A conditional format that colours the row when the competitor is cheaper by more than a threshold you pick is enough for a weekly review.

Practical tips

  • Start small. Track the 10 to 30 products that matter most to revenue. A smaller, accurate tracker beats a large noisy one.
  • Capture at the same time each day. Some stores change prices during the day, so mixed capture times can look like changes that are not there.
  • Track more than price. Stock status, was-price and review count often explain a price move: a competitor out of stock, or a clearance sale, is a different signal from a real price cut.
  • Watch shipping. If a competitor shows delivery cost or a free-shipping threshold on the page, add it as a column. Price alone can mislead.
  • Spot-check after site changes. If a competitor redesigns, an extraction can stop matching. Open it, adjust the description and save again.

Honest limitations

  • Logged-in or regional prices. Lection reads what the browser shows. It does not bypass logins, paywalls or CAPTCHAs. Scheduled cloud runs work best on public pages, and prices that depend on location may differ from what you see at home.
  • Sites that block automated visits. Some large retailers resist scraping. Try one manual run before you build a schedule around a site.
  • Credits. Scheduled runs use credits. The free plan includes 5 credits a month (about 500 rows), Standard 300 (about 30,000 rows) and Professional 1,500 (about 150,000 rows). Thirty products scraped daily is about 900 rows a month; a 500-product category scraped daily is about 15,000. Check the numbers on pricing before you schedule a large job.
  • Terms of use. Read each site's terms and use the data for your own pricing decisions rather than republishing it. Our guide to scraping legality covers the wider picture.

Try it on one competitor

Install the free extension, open one competitor category page and preview the table. That takes a few minutes and costs nothing.

When you want the sheet to update itself, start the 30-day Standard trial. It is free for 30 days, then $29 per month, a card is required, and it is for first-time subscribers only. It unlocks Google Sheets delivery, hourly schedules, 20 URLs per run and change alerts.

FAQ

Can I track competitor prices in Google Sheets for free? Yes, manually: extract the page, download CSV or Excel and import it. The free plan also includes one daily scheduled run delivered by email. Automatic delivery into Sheets needs Standard or the trial.

How often should I check prices? Daily suits most stores. Use hourly only for fast-moving categories, because more runs use more credits.

Will it update a product's row instead of adding new rows? Sheets delivery appends. Use the latest-price lookup above, or the n8n template for one row per product.

Can I track several competitors in one sheet? Yes. Schedule one scrape per competitor, deliver each to its own tab in the same spreadsheet, and build a comparison tab with lookups.

What about my own supplier's prices? That is the other side of the margin. See scraping a supplier catalog into Google Sheets.


Ready to supercharge your research?

Join thousands of researchers using Lection to capture and organize the web. It's free to get started.