Archust Docs

SEO — Control Center & GSC

SEO control center, GSC OAuth, PageSpeed, rank tracking và AI visibility.

SEO — Control Center & GSC

Module SEO là trung tâm: audit on-page, kỹ thuật, PageSpeed, GSC, rank tracking và AI visibility.

Control Center

/dashboard/seo — audit, issues, recommendations

GSC Integration

OAuth, analytics, trends, device/country/page

Tracking

Rank (Serper) + AI visibility (Sellm) + competitor gap

Bạn tìm thấy gì ở đâu

TrangĐường dẫnMô tả
SEO Overview/dashboard/seoControl center, aggregated view + sites
Opportunities/dashboard/seo/opportunitiesKeyword gaps, refresh opportunities
Pages/dashboard/seo/pagesInventory pages, audit per URL
Actions/dashboard/seo/actionsRecommendations → accept → tạo plan item
GSC Callback/dashboard/seo/gsc-callbackOAuth callback, exchange code (client component)

Đường dẫn legacy /dashboard/seo-old vẫn tồn tại nhưng không dùng cho tenant mới — hãy dùng /dashboard/seo.

Kết nối Google Search Console

Lấy URL: bấm Connect GSC trong /dashboard/seogetGscAuthUrl trả Google OAuth URL với state nonce.
Authorize: đăng nhập Google, chọn property, cho phép.
Callback: Google redirect về /dashboard/seo/gsc-callback?code=...&state=...connectGscSimple/exchangeGscCode validate nonce, mã hoá tokens.
Chọn property: listGscSites / getGscPropertyOptionsconfirmGscProperty (admin) để chốt site.
Xem data: getGscDashboardData, getSearchAnalytics (clicks, impressions, CTR, position), breakdowns Device/Country/Page/Trends.

GSC callback phải validate state chống CSRF. Tokens mã hoá, không bao giờ hiện ra client. Nếu đổi property, phải disconnectGsc rồi connect lại.

Kiểm tra kỹ thuật & Nội dung

CheckCách gọiMô tả
On-PagerunOnPageScan / analyzeOnPageAudit per URL, tính computeOnPageScore
PageSpeedrunPageSpeed / runBothStrategiesMobile + desktop, LCP, CLS
TechnicalrunTechnicalSeoDNS, SSL, robots.txt, sitemap
Save/HistorysaveScan / getScanHistory / getLatestScanLưu và xem lịch sử scans

Rank Tracking & AI Visibility

Chức năngAPIMô tả
RankfindDomainPosition (Serper) → syncRankTracking / getRankTrackingTìm vị trí 1-100 trong SERP, lưu snapshot
AI VisibilitygetLatestCompletedRun (Sellm) → syncAiVisibility / getAiVisibilityMức độ xuất hiện trong AI answers
Competitor GapanalyzeCompetitorGapgetCompetitorGapSo sánh gaps với competitor domain
GeorunGeoObservation / getGeoObservationJobKiểm tra visibility theo location

Recommendations → Actions

  1. Hệ thống tự deriveSeoRecommendations từ GSC + audit + rank + issues → listRecommendations
  2. Bạn xem getRecommendation → bấm AcceptacceptRecommendation → tạo SeoAction và link vào Monthly Plan
  3. Theo dõi getActionExecutionContext, updateActionStatus, assignAction (admin), getActionVerification

Quản lý Sites & Audits

Chức năngMô tả
listSites / saveSiteUrl / verifySiteQuản lý sites đã scan/configure
listPages / getPageDetailPages được audit
listIssues / getIssueSummary / getIssueDetail / updateIssueStatusIssues (type, severity, page)
runFullAudit / queueAudit / getAuditStatus / cancelAudit / retryAuditAudit async — runFullAudit trả audit_run_id, poll getAuditStatus đến completed/failed
listRecommendations / listActions / createActionRecommendations và actions
getSeoOverview / getControlCenter / getDashboardTổng quan aggregated

Mọi bảng SEO đều tenant-scoped qua org_id. Dùng getWorkspaceStatus để biết GSC/audit/recommendations đã sẵn sàng chưa trước khi generate Monthly Plan.

On this page