seo-analytics-auditor
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSEO & 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
undefinedbash
undefined1. 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. 验证结构化数据
undefinedundefinedSEO 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年指标目标
| Metric | Good | Needs Improvement | Poor |
|---|---|---|---|
| LCP (Largest Contentful Paint) | < 2.5s | 2.5s - 4s | > 4s |
| INP (Interaction to Next Paint) | < 200ms | 200ms - 500ms | > 500ms |
| CLS (Cumulative Layout Shift) | < 0.1 | 0.1 - 0.25 | > 0.25 |
| 指标 | 良好 | 需要改进 | 较差 |
|---|---|---|---|
| LCP(最大内容绘制) | < 2.5秒 | 2.5秒 - 4秒 | > 4秒 |
| INP(交互到下一次绘制) | < 200毫秒 | 200毫秒 - 500毫秒 | > 500毫秒 |
| CLS(累积布局偏移) | < 0.1 | 0.1 - 0.25 | > 0.25 |
Testing Tools
测试工具
| Tool | URL | Purpose |
|---|---|---|
| PageSpeed Insights | https://pagespeed.web.dev | Core Web Vitals |
| Rich Results Test | https://search.google.com/test/rich-results | Schema.org |
| OpenGraph.xyz | https://www.opengraph.xyz | Social preview |
| 工具名称 | 网址 | 用途 |
|---|---|---|
| PageSpeed Insights | https://pagespeed.web.dev | 检测Core Web Vitals |
| Rich Results Test | https://search.google.com/test/rich-results | 验证Schema.org结构化数据 |
| OpenGraph.xyz | https://www.opengraph.xyz | 社交预览测试 |
Files to Check
需检查的文件
- - Meta tags, analytics scripts, Schema.org
index.html - - Crawler directives, sitemap reference
robots.txt - - URL list, lastmod dates
sitemap.xml - - PWA config
manifest.json
- - 元标签、分析工具脚本、Schema.org
index.html - - 爬虫指令、站点地图引用
robots.txt - - URL列表、最后修改日期
sitemap.xml - - PWA配置
manifest.json
Common Issues
常见问题
| Issue | Fix |
|---|---|
| Meta description too short | Use 150-160 characters |
| Missing canonical URL | Add |
| OG image wrong size | Use 1200x630 for best display |
| Schema.org errors | Test with Rich Results Test |
| Analytics not firing | Check browser console for errors |
| 问题 | 修复方案 |
|---|---|
| 元描述过短 | 使用150-160个字符 |
| 缺少规范URL | 添加 |
| 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处于“良好”区间
- 富结果测试通过
- 社交预览正常工作