Check 44.03 · Redesign and migration

Export Search Console and analytics data

Back up Search Console, GA4, Matomo and Bing data by page and by query before the redesign, beyond the interface's 1,000-row limit.

Priority
Critical
Difficulty
Intermediate
Estimated time
2 h to 1 day
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Before a redesign, export and archive the performance of every page: clicks, impressions, position and queries from Search Console and Bing Webmaster Tools; sessions, conversions and revenue from Google Analytics 4 or Matomo. These exports form the “before” baseline and one of the criteria for deciding which pages to preserve. They must be done by URL, over at least twelve months, and without the interface's truncation.

Why it matters

Search engine and analytics tools organize their data by URL. When URLs change, the history stays attached to the old addresses and becomes hard to match with the new ones. When the domain changes, it stays in the old property, which the team may lose access to.

Retention periods are limited. Search Console keeps sixteen months of performance data. In Google Analytics 4, standard reports are not affected by the retention setting, but explorations only go back two or fourteen months depending on that setting, except for 360 properties. After the redesign, comparing with the same period of the previous year quickly becomes impossible if nothing was exported.

Finally, the Search Console interface only shows and exports 1,000 rows per table. On a site with a few thousand pages, the default export leaves out precisely the long tail: the pages that each bring few clicks, but many together.

What it improves

How to check

The export folder is complete when it contains, dated and read-only:

Export Dimensions Period
Search Console, performance Page 16 months
Search Console, performance Page and query 16 months if possible, 3 months at least
Search Console, performance Page, country, device 16 months
Search Console, indexing Indexed and non-indexed pages, by reason Current state
Analytics Landing page, channel, sessions, key events, revenue 12 to 14 months, plus the same period a year earlier if available
Bing Webmaster Tools Pages and keywords Longest period offered

Quick check: the sum of clicks in the per-page export should be close to the total shown in Search Console. A large gap indicates a truncated export.

How to implement

Before you start

  • Set a common end date for all the exports, for example the last full day before the export, and put it in the file names: gsc-pages-2025-07-01_2026-11-20.csv.
  • Check your access: owner of the Search Console property (preferably the Domain property), administrator of the GA4 property, access to Bing Webmaster Tools.
  • Annotate the start of the redesign: in GA4, an annotation on the chart; elsewhere, an entry in the project log.
  • Turn on bulk data export to BigQuery right now if the site is large. Data arrives there from the moment it is activated, not before: the earlier you activate it, the longer the history will be at migration time.

With the Search Console interface

Open the Performance report, search type Web, date range “Last 16 months”. Tick all four metrics.

  1. Pages tab, Export button, Google Sheets or CSV.
  2. Queries tab, same export.
  3. Countries and Devices tabs.
  4. If the site receives Google Images or Google News traffic, repeat the exports for those search types.

To go beyond 1,000 rows, split the export: a Page filter per directory (/blog/, /produits/…), one export per directory. To get the queries for a specific page, filter on that page, then open the Queries tab.

Also export the Page indexing report: the list of indexed pages and each non-indexing reason, which are also limited to 1,000 examples.

Clicks from Google's AI Overviews and AI Mode are included in the Web search type, with no filter to isolate them.

With the Search Console API

The API returns up to 25,000 rows per request, with pagination, and exposes at most 50,000 rows per day of data and per search type. It is the right route for the page and query export.

Setup:

  1. In the Google Cloud console, create a project, enable the Google Search Console API, create a service account and download its JSON key.
  2. In Search Console, Settings > Users and permissions > Add user: add the service account's address with Restricted permission.
  3. Install the libraries: pip install google-api-python-client google-auth.

Script that exports page and query, day by day so as not to hit the daily limit:

import csv
from datetime import date, timedelta
from google.oauth2 import service_account
from googleapiclient.discovery import build

SITE = "sc-domain:example.com"
START, END = date(2025, 7, 21), date(2026, 11, 20)

credentials = service_account.Credentials.from_service_account_file(
    "cle-compte-service.json",
    scopes=["https://www.googleapis.com/auth/webmasters.readonly"],
)
service = build("searchconsole", "v1", credentials=credentials)

with open("gsc-page-requete.csv", "w", newline="") as output:
    writer = csv.writer(output)
    writer.writerow(["date", "page", "requete", "clics", "impressions", "ctr", "position"])
    day = START
    while day <= END:
        start_row = 0
        while True:
            body = {
                "startDate": day.isoformat(),
                "endDate": day.isoformat(),
                "dimensions": ["page", "query"],
                "type": "web",
                "rowLimit": 25000,
                "startRow": start_row,
            }
            rows = service.searchanalytics().query(siteUrl=SITE, body=body).execute().get("rows", [])
            for row in rows:
                writer.writerow([day.isoformat(), *row["keys"], row["clicks"], row["impressions"], row["ctr"], row["position"]])
            if len(rows) < 25000:
                break
            start_row += 25000
        day += timedelta(days=1)

For a URL-prefix property, SITE is https://example.com/. Queries anonymized to protect users' privacy are never returned: the sum of clicks per query stays below the total.

Without writing code, Looker Studio and its Search Console connector (“URL Impression” table) also let you display and then export more than 1,000 rows.

With bulk data export to BigQuery

Settings > Bulk data export (direct link). The daily export contains all the available performance data, except anonymized queries, by site and by URL. It is not retroactive, and BigQuery is billed beyond its free tier. For a site with tens of thousands of pages, it is the only way to have a complete history, provided it was activated months before the migration.

With Google Analytics 4

Export by landing page, because the entry page is what the redesign affects.

  1. Reports > Engagement > Landing page. Date range: the last 14 months.
  2. Add a “Session default channel group” secondary dimension or filter on Organic Search and on your AI channel if you have created one (see create a dedicated channel for AI traffic (opens in a new tab)).
  3. Useful metrics: sessions, users, key events, total revenue.
  4. Share this report icon > Download File > Download CSV.

The report table is paginated: display the maximum number of rows before exporting, or use an exploration (Explore > Free form) with the “Landing page + query string” dimension, then Export data to Google Sheets or CSV. Explorations are limited by the retention setting: run them before the useful period falls outside the window.

Also record the measurement configuration: list of key events, data streams, filters, custom channels. The new site will have to send the same events under the same names. See check tracking (opens in a new tab).

With Matomo

Behaviour > Entry pages, one-year period, “Search Engines” or “Websites” segment depending on the channel you are studying. The export icon below the table offers formats including CSV, TSV, XML and JSON; set the row limit to “all” before downloading. Since Matomo 5.5, the Acquisition > AI Assistants report (label translated according to the interface language) also isolates visits coming from AI assistants. Goals and ecommerce are added per entry page in the corresponding reports.

With Bing Webmaster Tools

Open the Search Performance report, choose the longest period offered, then export the Pages and Keywords tabs. If the AI Performance report is available for your site, also record the cited pages: see identify pages cited by AI systems (opens in a new tab).

Organize the exports

Paste the exports into the inventaire-refonte workbook, one tab per source (GSC, GSC-requetes, GA4, Bing), with the URL in column A in the same form as in the URL tab. To pull a page's clicks into the inventory, in Google Sheets:

=IFERROR(VLOOKUP(A2,GSC!$A:$B,2,FALSE),0)

Also keep the raw files, intact, in the redesign's dated folder.

Warning: if the domain changes, keep the old domain's property in Search Console and in Bing Webmaster Tools after the migration. It is used to monitor the deindexing of the old URLs and to use the Change of Address tool.

Common mistakes

  • Settling for the default export: 1,000 rows, sorted by clicks. The long tail and low-traffic but high-converting pages disappear.
  • Exporting three months: seasonal activity then looks dead or exceptional. Aim for twelve months at least.
  • Forgetting the page and query export: you know a page was losing traffic, but not on which searches.
  • Exporting page views instead of landing pages: for a redesign, the entry page is what counts.
  • Not recording the date and the property: a few months later, nobody knows which period and scope the figures cover.
  • Deleting the old property or the old data stream after the migration: the history becomes inaccessible.

Frequently asked questions

How long does Search Console keep data?

Search Console keeps sixteen months of performance data: clicks, impressions, CTR and position. Beyond that, the history is lost, unless you have exported it or bulk data export to BigQuery was turned on. Before a redesign, therefore, export the sixteen months available by page, by query, by country and by device, and archive the files with their end date.

How do I export more than 1,000 rows from Search Console?

The Search Console interface limits each table to 1,000 rows. To go further, split the export by directory with a page filter, use the Search Console API, which returns up to 25,000 rows per request with pagination, go through Looker Studio, or turn on bulk data export to BigQuery, which contains every row except anonymized queries but is not retroactive.

Should I export analytics data if the GA4 property stays the same after the redesign?

Yes, even if the GA4 property is kept. New URLs are not automatically matched with old ones, explorations are limited by the data retention period, and a tagging error at launch can break continuity. An export by landing page, with sessions, key events and revenue over twelve to fourteen months, guarantees a baseline that does not depend on the configuration.

Updated on

Topic checklist (PDF)

And now?

In the “Redesign and migration” topic

  1. Crawl the site before the redesign
  2. Export URLs and metadata
  3. Export Search Console and analytics data
  4. Export backlinks
  5. Identify revenue-generating pages
  6. Identify pages cited by AI systems
  7. Identify strategic pages to preserve
  8. Keep high-performing URLs if possible
  9. Create a comprehensive redirect map
  10. Map old URLs to relevant equivalents
  11. Preserve strategic content and internal links
  12. Preserve structured data, entity identifiers and important anchors
  13. Protect and audit the staging site
  14. Test performance before launch
  15. Test redirects
  16. Check canonicals, hreflang, sitemaps and robots.txt
  17. Remove indexing blocks on the live site
  18. Check tracking
  19. Submit new sitemaps
  20. Use Google's Change of Address tool if applicable
  21. Crawl the site after launch
  22. Monitor critical errors daily
  23. Monitor rankings, traffic and AI citations
  24. Keep redirects for at least a year, ideally longer
  25. Prepare a rollback plan