Search Insights for Experience Workspace
Search Console data for the page you are editing, in the editor
Search Insights: Search Console data inside Experience Workspace
I write most of the pages on this site in Experience Workspace. Before I change a title or rewrite an intro, I want to know how people find the page. That information is in Google Search Console, which means another tab, picking the property, filtering by page, setting dates and then switching back to the editor with the numbers in my head.
So I built a Experience Workspace plugin side panel that does that lookup for whatever document is open. It is called Search Insights.
What you see
Open a document, choose Search Insights from the side-panel switcher, and the panel shows Google data for that page's public URL.
At the top is the URL the panel resolved from the DA path, so /architecture/headless becomes edgepatterns.dev/architecture/headless.
Below that you pick 7, 28 or 90 days. Each period is compared with the one before it, and both date ranges are shown so there is no guessing.
Then come the four numbers Search Console gives for a page: clicks, impressions, click-through rate and average position. Position is the one people misread, because lower is better. The panel writes "Improved 7.7" to show the direction.
The index status line comes from Google's URL Inspection API. Most of the time the index status and last crawl date are all you need.
Index details opens the rest, including the canonical URL Google chose. That one matters: if Google picked a different canonical, your edits to this page may not be the version that ranks.
Suggestions, and why they are not AI
The panel flags a few things worth a look: clicks that dropped, a query with plenty of impressions but very few clicks, queries sitting just off the first page, and queries that are new this period. Each card states the numbers behind it and lists what to check.
These are fixed rules with thresholds, not model output. I did that on purpose. The selected suggestion says "aem graphql" had 63 impressions at an average position of 18.6. I can check those numbers.
Pages with fewer than 100 impressions get no suggestions at all, with one line saying why, because small numbers swing too much to mean anything.
Handing it to Workspace AI
Workspace already has an AI assistant that can read and edit the document. I did not want to build a second one inside the panel. So the panel does the part the assistant cannot: it knows the search data.
You tick the suggestions or queries you care about and click Ask in Chat. Search Insights writes a prompt with the URL, dates, the selected numbers, the checks and the caveats, and puts it in the Chat box. It also tells the assistant not to invent reasons for traffic changes and to ask before replacing content. You read the prompt, change it if you want, and send it yourself.
The Workspace screenshot at the top shows a selected suggestion, the page and a Chat response side by side.
Nothing is sent automatically and the extension never edits the page.
The queries
The query table shows what people searched for, with last period's figure under each number. You can sort, filter by text, or narrow to queries in positions 8 to 20, queries with a below-average CTR, or new ones.
The first page I tested on had four queries, so a plain table was fine. Then I opened the headless architecture page, which has 58. That is where the table now shows 10 rows and a Show more button that keeps your selections.
How it plugs in
A Workspace extension is a web page loaded in an iframe. You register it with one row in the site's library sheet:
When the panel loads, the DA App SDK (https://da.live/nx/utils/sdk.js) gives it the open document's org, site and path, and the author's Adobe token. Ask in Chat uses the SDK's setPrompt action.
Mapping the path to a public URL took more care than I expected. Index documents map to folder URLs with a trailing slash, drafts and nav fragments are not pages, and some sites publish /en/ at the root. The panel uses the site's configured production origin, then the backend fetches the published page to confirm the canonical link matches.
The backend
Search Console needs OAuth, and the tokens cannot live in the browser, so there is a small Cloudflare Worker behind the panel. Each author connects their own Google account with a read-only scope. Refresh tokens are encrypted before they are stored.
Every request carries the author's Adobe token. The Worker validates it with Adobe IMS and checks that the author can read the site in DA. Each site is locked to its own origin and Search Console properties, so the backend cannot be used to read another property.
The Worker code only uses fetch, WebCrypto and a three-method key-value store. The Cloudflare-specific part is about fifteen lines, so it could move to Adobe App Builder with App Builder State as the store.
Being careful with the numbers
Search data is easy to over-read, so a few rules run through the whole panel:
- Page totals come from Google's page totals, not from adding up query rows. Google only returns top queries, and the panel says what share of clicks the listed queries cover.
- CTR changes are in percentage points, not percent of a percent.
- A query missing from last period's rows is shown as missing, not as zero.
- The prompt states what changed. It does not claim why, and it does not promise that a new title will lift traffic.
What's next
Bing gets its own tab once credentials are set up. Google and Bing measure position differently, so they stay separate. I would also like the panel to react while you type, using Workspace's document events, and tell you whether the page still mentions its top queries.
The source is at https://github.com/samircaus/search-insights.
A demo with sample data runs at https://search.edgepatterns.dev/?demo&providers=google.