Search Console: SEO for all your domains

The Search Console module of MuseDock CMS brings the Google Search Console data of all your sites into a single panel: clicks, impressions, CTR and average position for every domain, with its history, queries, pages, countries and devices. You no longer have to open each property in Google one by one. It is built for platforms with many sites: review the SEO of all your domains at once, filter and compare them, while your customers' domains stay private.

What you can do with the module

  • See all your domains together, with filters by domain, colour and status, and the total clicks and impressions of whatever you filtered.
  • Open the report of each domain: clicks, impressions, CTR and position against the previous period, a daily chart and tables of queries, pages, countries and devices.
  • See SEO opportunities: which pages and searches would earn the most clicks with a small push, and what has dropped or is rising, with a sentence on what to do.
  • Download Google's data automatically, with up to 16 months of history the first time and a refresh every few hours afterwards.
  • Add domains to Search Console automatically when their DNS is in one of your DNS accounts (Cloudflare), without touching DNS by hand, and retry on its own if Google is slow.
  • See the domains in your Search Console that are not CMS sites (WordPress, other servers…) in a separate section called "Other domains".
  • Keep customer domains private: each customer connects their own Google account and only they see their data, unless you decide to register them with your account (then they see it without doing anything).
  • Give each tenant with a subdomain its own filtered SEO: they only see their own subdomain's, never the main domain's or anyone else's.
  • Give each tenant access to their own site's data from their own panel, with specific permissions.

How it works

The module connects to Google with a service account. It is a Google Cloud "robot user" with its own email, like name@project.iam.gserviceaccount.com. It is not your personal Google user, even if you create it from your own account.

We chose a service account instead of OAuth for two reasons:

  • It works unattended: it does not depend on someone signing in or on permissions being renewed, so it is suitable for automatic jobs such as the nightly download.
  • It does not require verifying an app with Google: unverified OAuth apps have permissions that expire after a few days.

The robot only sees the Search Console properties it has been given access to. The module does three things with that access:

  • Reads the properties the robot sees and assigns each one to the matching CMS site, looking at the tenant's main domain and aliases.
  • Picks one property per domain. If there are several, a domain property (sc-domain:example.com) wins over URL-prefix properties (https://www.example.com/), so the same traffic is never counted twice.
  • Stores metrics per day and per dimension (site, page, query, country and device) exactly as Google provides them. It never adds different levels together: site totals come from the daily total Google publishes, not from summing queries.

Requirements

  • A Google account with access to Google Cloud Console (free for this use).
  • The Search Console module enabled in the CMS. For tenants, it must also be enabled in each tenant that will use it.
  • An encryption key in the CMS .env (APP_ENCRYPTION_KEY or APP_KEY). Without it, the module does not store keys.
  • For automatic domain setup: the domain's DNS must be in one of the accounts configured in Settings → DNS accounts (the CMS's single registry of DNS accounts, shared by Domain Manager, Cloud and this module).
  • For automatic downloads: the server cron (cli/cron-search-console.php, every 5 minutes).

Step-by-step setup

1. Create the service account in Google Cloud

  1. Open Google Cloud Console and create a project, for example musedock-gsc.
  2. Enable these two APIs in the project:
    • Google Search Console API, to read properties and their metrics.
    • Site Verification API, for automatic domain setup.
  3. Go to IAM & Admin → Service accounts → Create service account. Give it a name and do not assign any role: it needs no permissions on the project.
  4. Open the account you created, go to Keys → Add key → Create new key → JSON and download the file.

Important: that JSON file is the robot's credential. Do not share it, do not paste it into chats or emails, and delete it from your computer once uploaded.

2. Upload the key to the CMS

  1. In the superadmin panel open Settings → Search Console (also available under Modules → Search Console and, for each domain, from the "SEO of my domains" button in Tenants).
  2. Select the JSON file and click Connect.
  3. The CMS tests the key against Google before saving it. If it is valid, it stores it encrypted and reads the properties the robot can already access. The key is never shown again: the panel only displays the robot's email.

Right after connecting, the robot normally sees no domains yet. The next step is to give it access.

3. Give the robot access to your domains

There are two ways, and you can combine them:

MethodWhen to use itWhat it does
Automatic ("Add" or "Add all" button)The domain's DNS is in one of your DNS accountsAsks Google for a verification token, publishes a TXT record in the domain's zone, confirms the verification and adds the domain property in Search Console. The robot becomes one more verified owner.
ManualThe DNS is outside your DNS accounts, or you prefer not to create recordsIn Search Console, open the property → Settings → Users and permissions → Add user, paste the robot's email and choose the Full permission.

Once access is granted, click "Re-read properties" and the domains will appear in the table.

If Google does not yet see the TXT record you just published, the domain stays as "Pending Google". That state is saved: it is not lost if you reload or close the page. The server retries on its own every 5 minutes for 48 hours, and you can also click "Retry now". Google usually takes a few seconds.

For a domain that is not a CMS tenant (for example, a WordPress site), use the "Add a domain that is not in the CMS" form. If its DNS is in one of your accounts, the TXT record is published for you; otherwise the panel shows you the TXT record to put in its DNS, and you click "Add" again.

Automatic data download

Once a property is active, its data is downloaded on its own; you do not have to connect it again or do anything else.

WhatHow
First downloadUp to 16 months of history (the most Google keeps).
AfterwardsEach property refreshes about every 12 hours (every 3 hours if the last attempt failed) and the last 4 days are downloaded again, because Google adjusts them.
Google's delayFinal data arrives about 2 days late: the report ends on the latest available day, not "today".
What is storedPer day: site totals, countries, devices, pages and queries (clicks, impressions, CTR and position).
Who does itA server cron (cli/cron-search-console.php, every 5 minutes). It also retries pending verifications.
By handThe "Download data now" button (on the overview and on each domain's page) forces the download immediately. A domain's first download can take a minute or two.

If a download fails, the CMS keeps everything it had: it never deletes data outside the range it is re-downloading. If Google says the robot no longer has access, the property becomes "No access".

The superadmin panel

The main screen shows a table with your domains. For each one you will see:

  • the tenant it belongs to, with its colour;
  • the property's status;
  • clicks, impressions, CTR and average position for the last 28 days;
  • the change in clicks against the previous 28 days;
  • the date of the last sync.

You can filter by text, tenant colour and status, and the table header sums whatever is filtered. For example, filter by the green colour to see all your film sites together. Click any column title to sort (clicks, impressions, CTR, position…); a second click reverses the order. Click a domain's name to open its report.

A domain's subdomains (for example those of musedock.com) are folded under it: a button with their number expands them. Each subdomain has its own filtered SEO and is not added a second time to the totals.

Further cards appear below. All of them have a search box, and the lists have an A–Z / Z–A button:

  • Own domains not yet added to SEO: the main domain of each own tenant that the robot cannot see yet, each with its "Add to SEO" button.
  • Domain aliases not yet added to SEO: the other names a tenant answers to (Domain Manager aliases). Each alias is a separate property for Google. Each one shows which domain it hangs from. Suspended aliases appear disabled with the reason: their DNS may not point to the server.
  • Move SEO between a domain and its alias (see below).
  • Domain expiry (see below).
  • Customer domains, Other Search Console domains (properties the robot sees that are not any CMS site; only you see them) and Domains taken down.
  • Add a domain that is not in the CMS, with the list of those pending verification.

Adding everything at once

Each "not yet added" card has an "Add all to SEO" button that queues only the domains in that card. The queue lives on the server, not in the page:

  • You will see a progress bar, an "Now: verifying domain" line with a spinner, each domain's place in the queue and, when Google cannot see a TXT yet, a countdown to the next attempt (up to 6 attempts spaced 20 s, 45 s, 90 s, 3 min and 5 min).
  • You can stop and resume at any time.
  • If you reload or close the page, the queue keeps going: when you return it resumes the progress, and while you are away the cron continues it (every 5 minutes).
  • Domains that get added disappear from the list live, and the table refreshes itself at the end, without reloading.
  • Customer domains never enter the queue.

Google can take several minutes to see a TXT record that was just published, even though the Cloudflare record is created instantly.

Property statuses

StatusMeaning
ActiveThe robot has access and the property is assigned to a site.
PendingSetup is half done, usually waiting for Google to recognise the TXT record. The server retries on its own for 48 hours.
No accessThe robot used to have access and no longer does, for example because someone removed it as a user in Search Console.
ErrorGoogle returned an error. The message explains the cause.
Taken downYou took it down on purpose: it is not downloaded or shown, but its data is kept.

Taking a domain down without deleting its data

The archive icon at the end of each row takes the domain down. It asks for your administrator password. The domain stops being downloaded and shown (also to the tenant), but its data is kept in case it ever becomes yours again. It appears under "Domains taken down", with a "Reactivate" button that puts it back where it was. Reading from Google does not reactivate it by itself, and it is not offered again as "not yet added".

Domain expiry

Losing a domain by not renewing it in time is the most expensive way to lose SEO: an expired domain cannot be redirected, and its rankings are lost. That is why the module watches the dates.

  • Every day it checks the expiry date of your own tenants' domains and their aliases, through RDAP (public, no keys) and, where needed, whois. Customer domains are not watched.
  • It emails all superadmins at 60, 30, 15 and 7 days, and when a domain is already expired, in the redemption period, pending deletion or simply not registered. When you renew, the alerts start over.
  • The "Domain expiry" card shows days left, status and registrar, with a "Check now" button.
  • Some registries, such as .es, do not publish the expiry date: those domains show "No data" and have to be checked with the registrar.

A domain in redemption can still be recovered by paying a fee, but only for a short time. After that it is released and anyone can register it.

Moving SEO between a domain and its alias

If a site answers to two names, for example mysite.musedock.com and mysite.com, and serves the same content, Google can index both separately, treat them as duplicate content and split the SEO between them. To concentrate it on one, the "Move SEO between a domain and its alias" card lists each site with its domain and alias. Click "SEO here" next to the name you want to keep:

  • The other name starts redirecting with a 301 that keeps the path (mysite.musedock.com/blog → mysite.com/blog).
  • Before applying, it checks that the destination responds; afterwards it verifies with a real request and, if anything fails, undoes itself.
  • It asks for your password, and "Remove redirect" undoes it whenever you like.
  • It works in both directions: from the subdomain to the real domain and the other way round.

What it does and does not do. It only changes Caddy (the web server) and the CMS database. It does not touch Cloudflare or DNS, sends nothing to Google and deletes nothing: not the site, nor its files, nor its data. Google finds out on its own when it crawls again and moves the SEO gradually, over weeks, with a small dip at first. It works only while the domain is still yours. Afterwards, add the destination domain to SEO if it was not already, and when the old one has no more traffic, take it down.

Only own tenants' domains can be moved, never a customer's. In addition, the Domain Manager does not let you delete a site that has aliases, or a domain involved in an active redirect, to avoid losing it by mistake.

A domain's report

Every active domain has its own SEO page, at /musedock/search-console/domain/ID (and, for each tenant, in their panel). It shows:

  • Four indicators: clicks, impressions, CTR and average position, each compared with the previous period of the same length.
  • A daily chart of clicks and impressions.
  • Queries: the words people searched on Google to reach you (the top 50 by clicks). They are text, not links.
  • Pages that get the most traffic from Google. They are real links: clicking one opens it in another tab.
  • Countries and devices (desktop, mobile, tablet).

You can choose 7, 28, 90, 180 or 365 days. Average position is weighted by impressions, as Google does. The data comes from what has already been downloaded, so the page opens instantly.

All tables fit the available width (a long URL is trimmed with "…" and the numbers are always visible) and sort by clicking the header of any column. The "What does the data mean?" button opens an explanation of every term: clicks, impressions, CTR, average position, comparison with the previous period, hidden queries and Google's delay.

SEO opportunities

In each domain's report, the "SEO opportunities" card tells you where there is most to gain. It does not use artificial intelligence: it applies fixed rules to the data Google has already given you, to both queries and pages, ordered by what you could gain.

OpportunityWhen it triggersWhat to do
Low CTR for its positionPosition 1–10, but with less than half the clicks that would be normal for that positionRewrite the title and meta description to make them more appealing.
About to take offPosition 4–20 with impressions: on the first two pages, outside the top 3Strengthen the page (content, internal links, title) to climb.
There is demand, but you are farPosition above 20 with impressionsCreate or improve a page designed for that search.
DropLess than half the clicks (or impressions) of the previous period, or something that used to earn clicks has disappearedCheck whether you changed the page or competitors have overtaken you.
RisingMore than double the impressions of before, or it appears for the first time within the top 20 positionsTake advantage by strengthening that page while it climbs.

How the potential gain is calculated. Your real CTR is compared with the CTR each position usually gets in the industry (28% in 1st, 15% in 2nd, 11% in 3rd… 2% in 10th). It is an approximate reference, not Google data. The "≈ +N clicks" figure is an estimate.

The minimum number of impressions adapts to the size of the site (between 3 and 50), so a small site is not left empty and a large one does not fill up with noise. With as little data as a new site has, few opportunities will appear; they will show up as it receives more searches. Drops and rises are only shown when there is already downloaded history for the previous period to compare with.

A real example: on a small site, the /domain page accumulated 34 impressions at position 60 (there is demand and you are far), and the home page was at position 7.9 with 39 impressions and 3 clicks (about to take off). A legal page at position 5.5 with 13 impressions and no clicks showed up as "Low CTR".

What it cannot detect: whether two of your pages compete for the same search (cannibalization). Google gives queries without their page, so the CMS cannot know.

What Google data it includes… and what it does not

The module downloads the Performance report of Search Console (what Google calls Search Analytics): clicks, impressions, CTR and position, by site, query, page, country and device. The numbers match what you see in Search Console.

These other reports from the Search Console website are not included, because Google does not offer them in its public API (or only for a single URL):

  • Links (sites linking to you, most linked pages, anchor text);
  • Page indexing, Insights and bulk URL inspection;
  • Core Web Vitals, HTTPS and the Experience reports;
  • Product snippets, merchant listings and other rich results.

For those reports, keep using the Search Console website. What the CMS gives you is the most consulted part (performance) for all your domains together.

Why queries add up to less than the total: anonymized queries

Google does not reveal the text of searches made by very few people, to protect their privacy. Those searches do count in the click and impression totals, but they do not appear by name in the query list. Google calls them anonymized queries, and you see exactly the same in the Search Console website and in the CMS.

A real example from a small site: in three months it had 100 impressions in total, but the named queries added up to 38. The rest (62%) were anonymized searches. On low-traffic sites this is normal, because almost everything is rare searches (the "long tail"). It is not a bug: the totals are correct; you just cannot know what exactly those people typed.

The same happens with pages: impressions per page can add up to more or less than the site total, because Google counts differently when one search shows several of your pages.

Search Console and the CMS Web Analytics

The CMS has its own analytics (Web Analytics, in the superadmin panel). It is not the same as Search Console and the two complement each other:

CMS Web AnalyticsSearch Console
What it measuresThe visits reaching your site, wherever they come fromHow you are found on Google, before the click
DataVisitors, page views, countries, devices, browsers, where they come fromImpressions, clicks, average position and what people searched
Who measures itYour own CMS (needs cookie consent)Google
What you seeReal traffic, including traffic not coming from GoogleGoogle search only (not Bing or other engines)

They meet at one point: the "from Google" visits in Web Analytics should be close to Search Console's clicks, but they will not match exactly (rejected cookies, bots, ad blockers, Google's delay…). Use Web Analytics to know how many people arrive and what they do, and Search Console to know what they search and how you appear on Google.

Web Analytics keeps its results for 10 minutes so it loads fast; an "Updated X min ago" button recalculates them immediately.

Notifying search engines: sitemap, inspection and IndexNow

Google offers no API for Search Console's "Request indexing" button. What it does allow, and the module does, is this:

Sending the sitemap to Google

The "Send sitemap" button in each domain's report tells Google about the domain's sitemap.xml (through the Search Console API, the supported route). It is also sent automatically when a domain is added (by hand, with "Add all", or when the cron verifies it) and when moving SEO to a domain, so Google crawls the destination sooner. Before sending, it checks that the sitemap responds. It is not instant: Google decides when to crawl.

Inspecting a URL

Note: if you inspect a variant (for example the www version) that Google does not index separately because it correctly chose another as canonical, the module explains it ("not an indexing error") and offers to inspect the canonical URL directly; you should not request indexing of the variant.

The "Inspect URL" button and the magnifier next to each page in the report ask Google about a URL: whether it is indexed, when it was crawled, the canonical the page declares and the one Google chose, and whether the URL is a redirect. It is useful, for example, to check whether Google has already seen a redirect after "Move SEO". Only URLs of the domain itself can be inspected, and the API has a generous daily limit.

IndexNow: Bing, Yandex and others

IndexNow is an instant-notification protocol used by Bing, Yandex and other search engines (Google does not use it). The module does it automatically: every hour it reads each own domain's sitemap and reports the new or modified pages (by their lastmod date). The first read of a domain only takes note, so it does not announce all its content at once. The verification key is served at the root of each domain (/<key>.txt). A panel card shows each domain's status, with a switch to turn it on or off and "Check now". Only own domains are watched, never customers'.

Cron and automatic Google sitemap submissions

The sitemap includes public URLs and their modification dates: published articles, pages and documentation, together with available language versions. The CMS invalidates its cache when content is saved so the next read receives the changes. Publishing ten articles does not trigger ten immediate Google submissions.

Two different intervals

  1. The server crontab runs cli/cron-search-console.php every five minutes.
  2. Within that process, central control checks each domain connected to the platform account once eight hours have passed since its previous check. High server load or other pending domains may delay a check.
  3. It compares URLs, lastmod dates, and image and language references against the last accepted state. It submits the sitemap to Google only when changes are detected. Without changes, no submission call is made.

Submission uses the Search Console API. Domains need an active property and the corresponding platform credentials. Each domain, including each authorized tenant, keeps its own state. Initial onboarding, moving SEO and the manual submission button are additional paths and can submit outside this cycle.

Where to see the states in the CMS

In CMS → Search Console (/musedock/search-console), expand “Sitemaps a Google · control central cada 8 horas” (Google sitemaps · central control every 8 hours). The table shows the domain, last check, last confirmed submission, state and any error. Dates use the Europe/Paris time zone.

StateMeaning
PendingThe domain is waiting for its first check.
Initial baseline without new contentA baseline of older content has been saved without resubmitting everything.
UnchangedThe sitemap has been checked and does not need to be submitted.
SentThe API accepted the sitemap submission; this does not confirm page indexing.
Error; will retryThe sitemap could not be read or submitted. Check the reason; the next automatic attempt occurs after the interval expires.

After editing content, the panel may still show “Sent” with an earlier time: it reflects the last check rather than an instant check of each edit. In each domain report, use “Enviar sitemap” (Submit sitemap) for a manual submission and “Inspeccionar URL” (Inspect URL) to check a page.

Cron configuration and diagnostics

Scheduling is configured in the server crontab, not in a CMS form. On this installation, the entry runs the script with */5 * * * *. The eight-hour interval is defined in SitemapDispatchService::INTERVAL as 28800 seconds; the CMS currently has no selector to change it.

The execution log on this installation is storage/logs/cron-search-console.log. The panel shows submission states per domain, not a general list of every crontab task. If check times stop advancing, inspect the server cron and its log. An HTTP error when reading a sitemap requires checking its public URL, redirects and accessibility.

Google decides when to crawl and index. Submitting a sitemap does not guarantee that all its URLs will be indexed or make Google visit them daily. IndexNow is a separate mechanism for other search engines; Google does not use it.

Downloading data without overloading the server

The "Download data now" button works as a queue on the server, not as one giant request:

  • It downloads one domain at a time, with a progress bar and the list of downloaded domains, and you can stop and resume. If you close the page, it keeps going (the cron continues it).
  • It looks after the server: it waits while CPU load is high (above the number of cores), leaves a pause between domains, works at low priority and caps its memory at 256 MB. The background cron also runs at minimum priority and postpones downloads if the server is busy.
  • It is light: downloading a domain uses around 1 second of CPU and about 4 MB of memory.

Priorities, cannibalization and editorial suggestions

The opportunity detector is designed to tell you what deserves your time, not to flood you with alerts.

This week deserves your time

At the top of the main screen you will see the 5 highest-impact items across all your domains, at most two per domain. Only high-priority alerts and relevant visibility drops count. They are ranked by estimated impact × confidence × the domain's goal:

  • Impact: estimated clicks per 28 days if the page improved its position or CTR. It is a number to rank by, not a forecast and not something to add up.
  • Confidence (high, medium or low): depends on the data volume and the type of alert. Being very far down, or losing only impressions, is less reliable. A drop in impressions is not presented as "recoverable clicks".
  • Domain goal: a selector under each domain (traffic, winning customers, editorial reputation, cultural outreach) raises or lowers the order depending on the type of search or page: "winning customers" weighs commercial searches more (price, buy, alternatives…); "editorial", informational ones (how, what is, tutorial…); "cultural outreach", interviews, selections and the current edition. It does not change the data.
  • Brand searches (unless they drop) and searches that are a domain typed into the search box are not included. For the home page the recommendation is to first analyze which queries trigger it before changing its title.

Each task has a checkbox to mark it done (remembered in your browser), with the "N of 5" progress, and a button to copy the tasks. The card shows up to which day the data goes (Google publishes with ~2 days of delay) and that it is compared with the previous 28 days. The header figures (domains, clicks, impressions) use the same domains and the same period as the table.

High, medium and exploratory priority

Each alert has a priority based on the volume of data behind it: high from 500 impressions in the period (and at least 3% of the site), or a confirmed click drop with 10 or more previous clicks; medium from 100 (and at least 1%); below that, exploratory: a lot of uncertainty, hidden by default ("Show exploratory and archive" button) and carrying no concrete advice, just "needs review". Archive: pages of past editions (a year 2 or more years ago in their URL): maintenance with no SEO urgency; those of the current edition rise in priority. These are volume thresholds, not absolute rules: the domain's goal adjusts the order of the priorities.

Each alert explains why it has that priority (for example, "high due to recency: current edition, although the data volume is limited", or "medium because of the previous period's volume, 134 impressions"). A page or query appears only once: the main reason on top and, under "Also", the others (for example low CTR and also a click drop). A drop's text names the exact metric: "lost impressions (167 → 83), not clicks".

No duplicate alerts or uninteresting pages

  • Grouped variants: the same page can appear in Google with and without www, with an #anchor to a section, with tracking parameters (utm_*) or with a trailing slash. The module adds them up as one page (the report shows "N variants"). The original data is not modified. The sum has been checked against Search Console's aggregate filtered by that page and matches, so impressions are not counted twice.
  • Excluded pages: legal pages (cookies, privacy, terms, legal notice…), login pages and panel pages are not proposed as acquisition opportunities.

Brand and non-brand searches

Each domain's report splits clicks and impressions between brand searches (those containing the site's name: people who already know you) and non-brand (people discovering you). It is a heuristic over the queries Google shows; anonymized ones are not counted. Brand searches carry a "brand" label and do not enter "This week deserves your time" unless they drop, because ranking first for your own brand is normal.

Searches that look like your brand

A report card shows the queries that are written almost like your brand but do not contain it (for example "creen ai" for screenai.es) and splits them by their CTR against your brand's: "looks like a variant of yours" (similar CTR: probably a typo by someone looking for you), "unexpected match" (CTR far lower with enough volume: probably another company or a product with a similar name, or a typo) or "no clear hint". It is a hint, not a verdict: the system does not know which companies or products exist, so you confirm it on Google. Sometimes it is a content opportunity (a comparison, a guide), but it is a separate hypothesis from optimizing a page.

You can label each query with three brand states plus one: own brand (or variant) confirmed, another company's brand confirmed, ambiguous: pending investigation (visible and marked, but out of the priorities until you decide; for example "agent8" may be an abbreviation of yours or another product) and "not relevant". The classification is the same for all detectors: what belongs to another company, what is a domain typed into the search box and unexpected matches are neither proposed as opportunities nor counted as a loss of your own traffic, and the report says how many queries it set aside.

Pages competing with each other

The module also stores, for the last 28 days, which pages appear for each search. If two or more of your pages appear for the same query and share the visibility (cannibalization), a report card shows it with each page's position and suggests deciding which one is the main one. Two pages appearing for the same search does not prove a problem by itself. Before merging, redirecting or changing anything, check whether they answer the same intent, whether Google alternates between them over time and whether their content is really different. For brand searches it is normal for the home page and another page to appear.

Editorial suggestions

In page opportunities, a "Suggestions" dropdown proposes, by rules and without artificial intelligence: including the main search in the title, completing or adjusting the SEO description, covering other searches the page already gets, and linking to it from related pages of your site (with their title and the link text). It only proposes: it never changes anything. Text coming from Google (queries, URLs) is always treated as data: it is displayed escaped and is never executed or interpreted as instructions.

Optimization tracking

Knowing what deserves your time is half of it; the other half is knowing whether what you did worked. On each page opportunity, the "Log optimization" button (and the one in the report's "Optimization tracking" card) stores what you changed (title, SEO description, content, internal links, editorial update or other), on which page, the date and a note.

The module compares N days before with N days after the change (N = 28, or as many as are available if they have not passed yet; under 14 days it is just "tracking"), adding up the URL's variants, and contrasts it with what the whole site did in those same days. The result is cautious: "Coincides with an improvement", "No clear change", "Coincides with a decline", "Little data" (under 20 impressions before) or "Tracking". It does not attribute the improvement to your change: Google, competitors and demand change at the same time, so it always shows how much the site as a whole varied. The main screen summarizes the latest optimizations across all domains.

The weekly plan is stored in the database

The checkboxes of "This week deserves your time" are stored in the database, per user, not in the browser: they are not lost when you switch computers or clear local data. Priorities are not recalculated on every panel load: they are stored for an hour and refreshed by the server in the background (changing a domain's goal or downloading new data invalidates them).

Export, link to your content and drop alerts

Export to CSV

The domain table has an "Export CSV" button for the chosen period, and each table in a domain's report (queries, pages, countries, devices and the daily series) has its own CSV link. Files use UTF-8, a ";" separator and decimal commas, so they open correctly in Spanish-locale Excel. Cells starting with =, +, - or @ are protected so Excel does not run them as formulas.

Your content next to each URL

In the pages table, every URL that matches CMS content shows its type and title (article, page, documentation, home) and an "Edit" link to its editor. That takes you from "this URL has many impressions and few clicks" to improving its title and description in one click. Only the tenant's own content is matched.

SEO drop alerts

Once a day, the server compares each domain with the previous 28 days and emails you if its clicks or impressions fall by half, or if a page with traffic loses half its clicks. Domains with very little traffic or not enough history do not trigger alerts, and each alert repeats at most once a week. It may be a real drop or seasonal: compare with the same period of the previous year once you have the history.

Domains hosted elsewhere

A domain that is not in the CMS (for example a service hosted on another server) is added with "Add a domain that is not in the CMS". If its DNS is in a Cloudflare account of the DNS accounts registry, the verification TXT is published automatically; otherwise the panel shows you the TXT to add by hand.

Own domains and customer domains

In MuseDock CMS every tenant can be marked as a customer domain from the tenant list. The module applies strict rules based on that mark, and only you, as superadmin, can decide to share a customer's data:

Own domainCustomer, not authorizedCustomer authorized by you
Google account that reads itThe platform'sThe customer's own, uploaded from their panelThe platform's (yours)
Superadmin can see itYesNo, on no screenYes, marked as "authorized customer"
Tenant can see itYes, in their panelYes, only with their own accountYes, without doing anything, and only their own
In Tenants and Domain ManagerGreen SEO button"Customer's private SEO" padlockSEO button

Authorizing a customer's domain

In Settings → Search Console, the "Customer domains" section lists your customer tenants. For each one you can click "Authorize and add". Your administrator password is required, because you are sharing a customer's data:

  • If their domain is a subdomain of one you already added (for example customer.musedock.com), there is nothing to verify: its filtered property is created (see "Subdomains") and downloaded on the next cycle.
  • If it is the customer's own domain (customer.com), it is verified with a TXT record, like yours (its DNS must be in your DNS accounts, or you publish the TXT yourself).

From then on the customer sees their SEO without configuring anything and that data is not deleted. "Remove authorization" (also with your password) deletes that customer's data from the platform: they can connect their own account if they want. If you do not authorize them, the customer keeps the usual path: connecting their own Google account and verifying their domain.

There are also these guarantees:

  • The platform account never reads a customer domain you have not authorized. Not even if Google shows it because you are still an owner in Search Console.
  • If you mark a tenant as a customer, the data the platform had read from it is deleted, unless you had authorized it. The same happens if a domain from "Other domains" is later added as a customer tenant or as a customer's alias.
  • Customer keys are encrypted with a different subkey for each tenant. They cannot be decrypted from the platform's scope or from another tenant's.
  • A customer only sees their own domain or subdomain: never another customer's or the main domain's.
  • The superadmin cannot enter a tenant's panel by impersonating them. Each panel has its own login.

To be transparent: anyone with root access to the server can technically read the database. What the CMS guarantees is that no superadmin screen, route or query shows the data of a customer who has not authorized it.

Subdomains: each tenant sees only their own

If you sell subdomains of your domains (for example customer.musedock.com), Google lumps them all into the main domain's property. So that each tenant sees only the SEO of their own subdomain, the CMS creates a virtual property for each one:

  • Its data is that of the property of the domain covering it, but it is downloaded from Google with a page filter (only that subdomain's URLs). That way clicks, impressions, queries, countries and devices are exact, not an estimate.
  • The cron creates it only for your own tenants whose domain is a subdomain of an active property. For a customer it is only created if you authorize them.
  • Each tenant only sees their own virtual property; never the main domain's or another tenant's.
  • In your table they appear with the subdomain label and are not added twice to the totals, because they are already inside their domain's.

Each tenant's panel

Every tenant with the module enabled has a Search Console section in their menu, at /admin/search-console (or whatever admin path they have configured).

  • Own tenant whose domain is already added in the platform account, or that has a subdomain of one that is: sees their data and report without configuring anything (for a subdomain, filtered to their subdomain). If their domain has not been added yet, they see a notice that it is not connected yet.
  • Customer tenant authorized by you: sees their SEO without doing anything, only their own, and a notice that the platform manages it.
  • Customer tenant not authorized: sees a privacy notice and the form to connect their own service account, with the same steps as this guide. They can also add their domain automatically if the platform manages their DNS. They only see what their own account reads.

Each tenant sees only their own domain: never another tenant's or a customer's.

There are two permissions, assigned by role or by user:

  • View Search Console (search_console.view): see the metrics.
  • Manage Search Console (search_console.manage): connect or change the site's Google account and request a download. It includes the view permission.

Activation: the module appears on each tenant's Modules screen and their administrator (with the permission to manage modules and their password) can enable it themselves. Enabling it gives no access to other people's data: they only see their own domain.

Security

  • Keys are stored encrypted with AES-256-GCM and are only decrypted in memory to talk to Google.
  • The JSON file is validated before it is saved: it must be a service account key and Google must accept it.
  • All actions require a session and CSRF protection. Superadmin actions additionally require the superadmin role.
  • Disconnecting the account asks for your administrator password in a pop-up, because it deletes the credential and every metric stored with it.
  • Customer domains and other tenants' domains are filtered on every query: knowing a property's number is not enough to see its data.

Coming soon

The module is developed in phases. Secure connection, property setup (with a queue and retries), automatic data download, the per-domain report, the opportunity detector, customer authorization by the master, per-subdomain properties, aliases, taking down with data kept, expiry alerts and moving SEO between a domain and its alias are already available. Next:

  • Letting own tenants also connect their own Google account.
  • Automatically adding the destination domain to SEO when moving SEO.
  • Downloading query and page together to detect pages competing for the same search.
  • Emailed reports and PDF export.
  • Letting you correct a query's intent (commercial or informational) by hand, and detecting thematic overlaps between different sites.
  • Editorial recommendations with artificial intelligence, with the necessary safeguards against untrusted text.

Frequently asked questions

If I create the service account with my own Google user, does it already have access to all my domains?

No. The service account is an independent user and does not inherit your Search Console permissions. You have to give it access with the automatic setup or by adding its email as a user on each property. For example, if you manage mysite.com from your Gmail, the robot gsc@musedock-gsc.iam.gserviceaccount.com will not see it until you add it.

Do I lose my regular Search Console access?

No. You remain an owner of your properties exactly as before. The robot is just one more owner or user, and you can remove it any time from Users and permissions.

My domain already has a Google verification TXT in Cloudflare. What happens to it?

Nothing: it stays as it is. Google gives each owner their own token, so automatic setup adds another TXT record for the robot. A domain can have several verification TXT records at once. For example:

mysite.com.  TXT  "google-site-verification=AbC…your-token"
mysite.com.  TXT  "google-site-verification=XyZ…robot-token"

Will I see the traffic Search Console had already collected?

Yes. The data belongs to the property, not to the user: the CMS downloads up to 16 months of history the first time, even if the domain has been in Search Console for years.

If the domain is already in Search Console, why do I have to "add" it again?

Because "being in the CMS" and "having access in Google" are different things. The robot is a new user and starts with access to no domain, not even the ones you already have. "Add" gives it access to that domain (by placing a TXT record to prove it is yours). Your own access does not change.

Can I close or reload the page while a domain is being verified?

Yes. The "Pending Google" state is stored in the database and the server keeps retrying for 48 hours. And if you used "Add all to SEO", the queue stays on the server: when you return it resumes the progress, and while you are away the cron continues it every 5 minutes.

Why is a domain still "pending Google" if the TXT was published instantly?

Because the record is created in DNS right away, but Google takes a while to see it, sometimes several minutes. It is not a failure: the system retries on its own, with longer and longer waits.

Does "Move SEO" send anything to Google or change my DNS?

No. It only adds a 301 redirect on the web server and stores it in the database. It does not touch Cloudflare or DNS, does not use the Google API and deletes nothing. Google finds out on its own when it crawls the site again.

Can I redirect the SEO of a domain I have lost?

No. A redirect is served by the domain's own server, and if the domain expired it is no longer yours. That is why the module warns you about expiries in advance. While it is in the redemption period it can be recovered by paying a fee at the registrar.

What happens if I take a domain down? Do I lose its data?

No. Taking it down keeps all its data; it just stops being downloaded and shown. You can reactivate it whenever you like from "Domains taken down".

How much history is kept? Is it lost after years?

History is never deleted. Google only offers about 16 months back; the module downloads all of that when a domain is added and then adds each day's new data, so your archive grows over the years even after Google no longer has it. It takes very little space: with 40 domains and 16 months it is about 11 MB. The domain table and the report have a period selector: 7, 28, 90 and 180 days, last year, last 2 years and all stored history.

How often is the data updated?

Each property, roughly every 12 hours. Google publishes final data about 2 days late, so the report ends on that latest available day. If you do not want to wait, use "Download data now".

Why don't I see the "Links" or "Core Web Vitals" reports?

Because Google does not offer them in its public API. Those reports exist only on the Search Console website. The module covers the Performance report (clicks, impressions, position, queries, pages, countries and devices).

Why do queries add up to less than total clicks and impressions?

Because of anonymized queries: Google hides the text of searches made by very few people, although it counts them in the total. The same happens on the Search Console website. More details in the "Anonymized queries" section.

I have domains in Search Console that are not in the CMS. Do they appear?

Yes, in the "Other Search Console domains" section. Only the superadmin sees them and they are not assigned to any tenant. If you later add one of those domains as an own tenant, it moves to the main table by itself. To add a new one, use the "Add a domain that is not in the CMS" form or add the robot's email as a user in Search Console.

What happens if I mark as a customer a tenant that already had data?

The data the platform account had read from that domain is deleted and it disappears from your panel. From then on only the customer, with their own account, can see their SEO. If you mark it as own again, click "Re-read properties" and "Download data now" to get it back, because the history is still in Google.

As superadmin, can I see a customer's SEO?

Not from the CMS. There is no screen, button or route that shows it, and their key is encrypted with a subkey that only works in their own scope.

Which property does it use if I have several for the same domain?

Just one, so traffic is not duplicated. The preference is: domain property (sc-domain:), then https://www., then https:// and lastly http://.

Does it work with CMS subdomains, like mysite.musedock.com?

Yes. A domain property of the main domain covers all its subdomains, and the CMS creates a filtered virtual property for each tenant, so each one sees only the SEO of their own subdomain. See the "Subdomains" section.

If I authorize a customer, do they see the SEO of other subdomains or of the main domain?

No. A tenant only sees their own property, and a subdomain's is filtered by page from the moment it is downloaded from Google: other subdomains' data never even reaches their property.

What happens if I remove a customer's authorization?

That customer's data is deleted from the platform and they stop seeing it from your account. They can connect their own Google account and verify their domain. You need your administrator password.

How does the CMS decide what an opportunity is?

With fixed rules, no AI: it compares each query's and page's position, clicks and impressions with what is usual for that position and with the previous period. The detail is in the "SEO opportunities" section.

Can I ask Google to index a page instantly, like in Search Console?

No: Google does not offer that function through an API (the "Indexing API" only supports job postings and livestreams). What is supported is sending the sitemap, which the module does, and checking a URL's status with "Inspect URL". For one specific page with priority, only Search Console's manual button works.

Can "Download data now" overload the server?

It is designed not to. It downloads one domain at a time, waits if the server is under heavy load, leaves pauses, uses low priority and caps its memory. You can stop it at any moment.

What happens if I disconnect the service account?

The CMS deletes the key and all the metrics stored with it. Nothing changes in Google: your properties and their history stay as they are. If you connect a different service account, the previous account's properties are removed from the CMS and read again with the new one. Disconnecting asks for your administrator password.

Troubleshooting

Message or symptomCause and fix
"The file is not a service account key"You uploaded another type of credential, for example an OAuth client. Download the JSON key from Service accounts → Keys.
"Google rejected the key: Invalid grant: account not found"The service account or its key was deleted in Google Cloud. Create a new key and upload it.
"Enable Site Verification API and Google Search Console API"One of the two APIs is not enabled in the Google Cloud project.
"The DNS of … is not in any CMS DNS account"The domain is not in the accounts of Settings → DNS accounts. Add that account there, or publish the TXT record the panel shows in the domain's DNS and click "Add" again. Alternatively, add the robot's email as a user in Search Console.
"TXT published in DNS; Google does not see it yet"Google takes a few seconds to recognise the record. The domain stays as "Pending Google" and the server retries on its own for 48 hours; you can also click "Retry now".
A domain shows as "No access"Someone removed the robot from that property. Add it again and click "Re-read properties".
An active domain shows "—" and "no data yet"It has not been downloaded yet. Click "Download data now" or wait for the next cron cycle. If the domain is new in Search Console, Google may take a few days to have data.
Data is not updatingCheck that the cli/cron-search-console.php cron is scheduled every 5 minutes and look at the property's last attempt: if it failed, the reason appears on the domain's page.