seo-analytics-auditor

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

SEO & Analytics Auditor

SEO与分析审计工具

Audit SEO, verify analytics, and optimize Core Web Vitals.
审计SEO、验证分析工具部署并优化Core Web Vitals。

When to Use

适用场景

Use for:
  • Auditing SEO meta tags and structured data
  • Verifying analytics implementations (GA4, Cloudflare)
  • Checking Core Web Vitals (LCP, INP, CLS)
  • Troubleshooting Search Console issues
  • Validating Open Graph and Twitter Card meta tags
  • Reviewing robots.txt and sitemap.xml
适用场景:
  • 审计SEO元标签与结构化数据
  • 验证分析工具部署(GA4、Cloudflare)
  • 检查Core Web Vitals(LCP、INP、CLS)
  • 排查Search Console问题
  • 验证Open Graph与Twitter Card元标签
  • 检查robots.txt与sitemap.xml

Quick Audit Workflow

快速审计流程

bash
undefined
bash
undefined

1. Run Lighthouse audit

1. 运行Lighthouse审计

npx lighthouse https://yoursite.com --output=html --output-path=./audit.html
npx lighthouse https://yoursite.com --output=html --output-path=./audit.html

2. Check Core Web Vitals

2. 检查Core Web Vitals

npx lighthouse https://yoursite.com --only-categories=performance
npx lighthouse https://yoursite.com --only-categories=performance

3. Validate structured data

3. 验证结构化数据

undefined
undefined

SEO Checklist

SEO检查清单

Meta Tags (Required)

元标签(必填)

html
<title>Page Title - Brand (50-60 chars)</title>
<meta name="description" content="Description (150-160 chars)" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://domain.com/page/" />
html
<title>页面标题 - 品牌名(50-60字符)</title>
<meta name="description" content="页面描述(150-160字符)" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://domain.com/page/" />

Open Graph (Social Sharing)

Open Graph(社交分享)

html
<meta property="og:type" content="website" />
<meta property="og:url" content="https://domain.com/" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Description" />
<meta property="og:image" content="https://domain.com/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
html
<meta property="og:type" content="website" />
<meta property="og:url" content="https://domain.com/" />
<meta property="og:title" content="标题" />
<meta property="og:description" content="描述" />
<meta property="og:image" content="https://domain.com/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

Twitter Card

Twitter卡片

html
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Title" />
<meta name="twitter:description" content="Description" />
<meta name="twitter:image" content="https://domain.com/og-image.png" />
html
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="标题" />
<meta name="twitter:description" content="描述" />
<meta name="twitter:image" content="https://domain.com/og-image.png" />

Schema.org (Structured Data)

Schema.org(结构化数据)

html
<script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Person",
    "name": "Name",
    "jobTitle": "Title",
    "url": "https://domain.com"
  }
</script>
html
<script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Person",
    "name": "姓名",
    "jobTitle": "职位",
    "url": "https://domain.com"
  }
</script>

Analytics Implementation

分析工具部署

Google Analytics 4

Google Analytics 4

html
<script
  async
  src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"
></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag() {
    dataLayer.push(arguments);
  }
  gtag("js", new Date());
  gtag("config", "G-XXXXXXXXXX", {
    anonymize_ip: true,
    cookie_flags: "SameSite=None;Secure",
  });
</script>
html
<script
  async
  src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"
></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag() {
    dataLayer.push(arguments);
  }
  gtag("js", new Date());
  gtag("config", "G-XXXXXXXXXX", {
    anonymize_ip: true,
    cookie_flags: "SameSite=None;Secure",
  });
</script>

Cloudflare Web Analytics

Cloudflare Web Analytics

html
<script
  defer
  src="https://static.cloudflareinsights.com/beacon.min.js"
  data-cf-beacon='{"token": "YOUR_TOKEN"}'
></script>
html
<script
  defer
  src="https://static.cloudflareinsights.com/beacon.min.js"
  data-cf-beacon='{"token": "YOUR_TOKEN"}'
></script>

Core Web Vitals Targets (2025)

Core Web Vitals 2025年指标目标

MetricGoodNeeds ImprovementPoor
LCP (Largest Contentful Paint)< 2.5s2.5s - 4s> 4s
INP (Interaction to Next Paint)< 200ms200ms - 500ms> 500ms
CLS (Cumulative Layout Shift)< 0.10.1 - 0.25> 0.25
指标良好需要改进较差
LCP(最大内容绘制)< 2.5秒2.5秒 - 4秒> 4秒
INP(交互到下一次绘制)< 200毫秒200毫秒 - 500毫秒> 500毫秒
CLS(累积布局偏移)< 0.10.1 - 0.25> 0.25

Testing Tools

测试工具

ToolURLPurpose
PageSpeed Insightshttps://pagespeed.web.devCore Web Vitals
Rich Results Testhttps://search.google.com/test/rich-resultsSchema.org
OpenGraph.xyzhttps://www.opengraph.xyzSocial preview
工具名称网址用途
PageSpeed Insightshttps://pagespeed.web.dev检测Core Web Vitals
Rich Results Testhttps://search.google.com/test/rich-results验证Schema.org结构化数据
OpenGraph.xyzhttps://www.opengraph.xyz社交预览测试

Files to Check

需检查的文件

  • index.html
    - Meta tags, analytics scripts, Schema.org
  • robots.txt
    - Crawler directives, sitemap reference
  • sitemap.xml
    - URL list, lastmod dates
  • manifest.json
    - PWA config
  • index.html
    - 元标签、分析工具脚本、Schema.org
  • robots.txt
    - 爬虫指令、站点地图引用
  • sitemap.xml
    - URL列表、最后修改日期
  • manifest.json
    - PWA配置

Common Issues

常见问题

IssueFix
Meta description too shortUse 150-160 characters
Missing canonical URLAdd
<link rel="canonical">
OG image wrong sizeUse 1200x630 for best display
Schema.org errorsTest with Rich Results Test
Analytics not firingCheck browser console for errors
问题修复方案
元描述过短使用150-160个字符
缺少规范URL添加
<link rel="canonical">
标签
OG图片尺寸错误使用1200x630像素以获得最佳显示效果
Schema.org数据错误使用Rich Results Test进行测试
分析工具无数据上报检查浏览器控制台的错误信息

Integration Checklist

集成检查清单

  • Google Search Console verified
  • Sitemap submitted to GSC
  • GA4 property created and linked
  • Core Web Vitals in "Good" range
  • Rich Results test passing
  • Social preview working
  • 已验证Google Search Console
  • 已向GSC提交站点地图
  • 已创建并关联GA4属性
  • Core Web Vitals处于“良好”区间
  • 富结果测试通过
  • 社交预览正常工作

See Also

相关链接