跳到主要内容

Google Search Console 数据正则表达式大全

我们在此提供了一份内容丰富的预置正则表达式筛选器清单,你可以直接在自己的账户中使用。

8 分钟阅读Search Console入门最后核实 2026-11-27

SEO Stack 与 Google Search Console 中正则过滤器的实用指南。SEO Stack 支持与 Google Search Console 相同的 RE2 语法,因此你可以快速方便地套用下面所有过滤器。

以下是完整的示例清单:

如何在 Google Search Console 中套用正则过滤器(如果你没有使用 SEO Stack)

  1. 在 Google Search Console 中,打开 效果 → 搜索结果 → 添加过滤器。选择 查询 以筛选搜索措辞,或选择 网页 以筛选网址。在 SEO Stack 中,打开 Search Console Data,选择对应的查询或网页正则条件。

  2. 在 GSC 中,选择 自定义(正则表达式)→ 与正则表达式匹配。从下面的代码块中复制一条完整的模式,粘贴到过滤器中并应用。若要排除匹配项,请选择 与正则表达式不匹配。

  3. 检查匹配到的行。在启用查询过滤器时,打开 网页,看看哪些网址凭该措辞获得了曝光。在启用网页过滤器时,打开 查询,查看这组网址所报告的搜索词。

GSC 使用 RE2,默认匹配字段中任意位置的文本。在下面的模式中,^ 表示开头,$ 表示结尾,| 表示“或”,\b 表示单词边界。查询模式使用英文措辞。网址模式使用 (?-i) 以保留区分大小写的路径。Google 的正则过滤器说明

按词数对查询分组

像 “trainers” 这样的单词搜索几乎无法告诉你对方需要哪种鞋。而 “which trail shoes are best for muddy winter runs” 这样的搜索给了你一个可以对照落地页检验的使用场景。想读到这些细节丰富的搜索时,从八个词及以上开始。用较短的词数区间来观察措辞如何变化。每个模式按空白符分隔的字符组来计数,所以 “e-bike” 算一个词。12 词的分组包含在 8 词的分组之内。

单个词

^\s*\S+\s*$

匹配 trainers。排除 red trainers。

短尾词 · 1 到 2 个词

^\s*\S+(\s+\S+){0,1}\s*$

匹配 red trainers。排除 red running trainers。

中尾词 · 3 到 4 个词

^\s*\S+(\s+\S+){2,3}\s*$

匹配 best running trainers。排除 running trainers。

长尾词 · 5 到 7 个词

^\s*\S+(\s+\S+){4,6}\s*$

匹配 best trail shoes for beginners。排除 best trail shoes。

超长 · 8 个词及以上

^\s*\S+(\s+\S+){7,}\s*$

匹配 which trail shoes are best for muddy winter runs。排除 best trail shoes。

扩展 · 12 个词及以上

^\s*\S+(\s+\S+){11,}\s*$

匹配 which trail shoes should i buy for a muddy winter marathon in scotland。排除 winter marathon shoes。

找出人们提出的问题

先用合并的问题过滤器做一次粗筛。然后根据你正在审查的页面,收窄到价格、时间或操作类问题。对于一项迁移服务,“how long does a Shopify migration take” 给了你一个可以在服务文案中核对的具体细节。即使搜索者省略了问号,开头词过滤器依然有效。

疑问词开头

(?i)^\s*(who|what|when|where|why|which|whose|whom|how)\b

匹配 which crm is best。排除 red running trainers。

是非问句开头

(?i)^\s*(is|are|am|was|were|do|does|did|can|could|will|would|should|has|have)\b

匹配 does shopify support redirects。排除 red running trainers。

操作方法类问题

(?i)^\s*(how (to|do|does|can|should|would))\b

匹配 how do i migrate a shop。排除 red running trainers。

价格类问题

(?i)^\s*(how much|what (does|is) .+ cost)\b

匹配 how much is a website。排除 red running trainers。

时间类问题

(?i)^\s*(how (long|soon|often)|when)\b

匹配 how long does indexing take。排除 red running trainers。

明确带问号

\?\s*$

匹配 red or blue?。排除 red or blue。

所有疑问信号

(?i)^\s*(who|what|when|where|why|which|whose|whom|how)\b|^\s*(is|are|am|was|were|do|does|did|can|could|will|would|should|has|have)\b|\?\s*$

匹配 is this waterproof。排除 waterproof boots。

找出对话式和提示词式措辞

搜索者常常用自己的话说出他们的限制条件。“Can you recommend a CRM that works with my accounting software” 告诉你集成能力很重要。可以用直接请求模式来收集候选提示词,或用限制条件模式来找出购买指南所需的要求。这些都是 Google 搜索查询。它们的措辞可以为提示词追踪提供参考,但无法证明是否有人使用了 AI 助手。

第一人称语境

(?i)\b(i (need|want|have|am|own|run|use|live|work)|my (budget|site|business|team)|we (need|want|have|use))\b

匹配 i need a crm。排除 crm features。

向助手发出的直接请求

(?i)\b(can you|could you|please (find|list|compare|explain|suggest)|help me (choose|find|decide))\b

匹配 could you compare these plans。排除 you can compare plans。

指令式提示词动词

(?i)\b(give me|create (a|an|me)|write (a|an|me)|recommend (a|an)|summarise|summarize|explain (why|how))\b

匹配 give me three options。排除 writing supplies。

限制条件表述

(?i)\b(under [£$€]?[0-9]+|within (my|a) budget|without (using|paying|having)|that (works|work) with|compatible with|given that)\b

匹配 shoes under £100。排除 shoes under review。

追问式措辞

(?i)\b(what about|how about|instead of that|in that case|the previous (one|option|answer))\b

匹配 what about the previous option。排除 previous orders。

找出调研类和故障排查类查询

定义、规格和故障报告需要不同的答案。对于一个软件网站,使用故障排查过滤器,选一个反复出现的查询,比如 “checkout not working”,然后打开“网页”,看看哪份文档已经因此获得曝光。再对照搜索者描述的故障去审读那份文档。

定义与术语

(?i)\b(what is|what are|meaning of|definition of|stands for)\b

匹配 what is canonicalisation。排除 canonicalisation services。

学习与教程

(?i)\b(tutorials?|beginners? guide|step by step|how to|walkthrough)\b

匹配 shopify migration tutorial。排除 shopify migration agency。

原因与解释

(?i)\b(why does|why is|what causes|reasons for)\b

匹配 reasons for traffic loss。排除 traffic analysis software。

证据与统计数据

(?i)\b(statistics|research paper|case stud(y|ies)|survey results|benchmark data)\b

匹配 email marketing statistics。排除 email marketing pricing。

故障排查

(?i)\b(how to fix|not working|error code|troubleshoot(ing)?|keeps crashing)\b

匹配 checkout not working。排除 checkout providers。

规格与兼容性

(?i)\b(specifications|dimensions|compatible with|system requirements|size chart)\b

匹配 helmet size chart。排除 cheap helmets。

模板与示例

(?i)\b(templates?|examples?|checklists?|sample (report|plan))\b

匹配 technical audit checklist。排除 technical audit agency。

合并的调研意图措辞

(?i)\b(what is|what are|meaning of|definition of|stands for)\b|\b(tutorials?|beginners? guide|step by step|how to|walkthrough)\b|\b(statistics|research paper|case stud(y|ies)|survey results|benchmark data)\b|\b(specifications|dimensions|compatible with|system requirements|size chart)\b|\b(why does|why is|what causes|reasons for)\b|\b(templates?|examples?|checklists?|sample (report|plan))\b|\b(how to fix|not working|error code|troubleshoot(ing)?|keeps crashing)\b

匹配 helmet size chart。排除 buy helmet。

找出正在比较选项的搜索

用直接比较和替代方案类过滤器,找出人们拿来与你对比的产品。价格类搜索可以帮你检查获得这些曝光的页面有没有说明买家要付多少钱。即使 “SEO audit pricing” 和 “request a quote for SEO” 最终都指向同一个服务页面,前者也值得单独审视。

最佳与高评分

(?i)\b(best|top rated|highest rated|top [0-9]+)\b

匹配 best accounting software。排除 accounting software login。

直接比较

(?i)\b(vs\.?|versus|compare|comparison|compared (to|with))\b

匹配 ahrefs vs semrush。排除 ahrefs login。

替代方案与替换产品

(?i)\b(alternatives? to|alternatives?$|replacement for|competitors to)\b

匹配 semrush alternatives。排除 semrush tutorial。

价格与费用

(?i)\b(pricing|prices?|how much|costs?|fees?|rates)\b

匹配 seo audit pricing。排除 seo audit process。

报价与方案

(?i)\b(get a quote|request a quote|quote for|request a proposal)\b

匹配 request a quote for seo。排除 quote of the day。

评价与评分

(?i)\b(reviews?|ratings?|testimonials?|customer feedback)\b

匹配 seo stack customer reviews。排除 seo stack overview。

长期使用体验

(?i)\b(long term review|after [0-9]+ months|owners? opinions?|hands on review)\b

匹配 headphones long term review。排除 headphone cable。

优缺点与性价比

(?i)\b(pros and cons|worth (it|buying)|advantages and disadvantages)\b

匹配 is this subscription worth it。排除 subscription renewal。

可信度与正规性

(?i)\b(legit(imate)?|scams?|trustworthy|reliable|reputable)\b

匹配 is example shop legit。排除 example shop address。

B2B 采购

(?i)\b(enterprise pricing|bulk pricing|wholesale|supplier shortlist|request for proposal)\b

匹配 wholesale coffee supplier。排除 coffee recipe。

商业调研

(?i)\b(best|top rated|highest rated|top [0-9]+)\b|\b(vs\.?|versus|compare|comparison|compared (to|with))\b|\b(alternatives? to|alternatives?$|replacement for|competitors to)\b|\b(pricing|prices?|how much|costs?|fees?|rates)\b|\b(reviews?|ratings?|testimonials?|customer feedback)\b|\b(pros and cons|worth (it|buying)|advantages and disadvantages)\b

匹配 best crm reviews。排除 crm login。

综合评价类措辞

(?i)\b(reviews?|ratings?|testimonials?|customer feedback)\b|\b(long term review|after [0-9]+ months|owners? opinions?|hands on review)\b|\b(pros and cons|worth (it|buying)|advantages and disadvantages)\b

匹配 headphones long term review。排除 headphones delivery。

找出购买、预订与配送类查询

在电商站点上运行配送筛选,查看购物者具体搜索了哪些承诺。搜索「next day delivery」的人需要知道下单截止时间,以及自己的商品是否符合条件。如果是服务型企业,改用预订或演示相关措辞,并检查落地页是否为访客提供了完成该操作的途径。

已准备购买

(?i)\b(buy|order online|shop online|where to buy|purchase online)\b

匹配 buy wireless headphones。排除 headphone specifications。

预订或预留

(?i)\b(book (a|an|online|now)|reserve (a|an|now)|make an appointment)\b

匹配 book a consultation。排除 book reviews。

折扣与促销搜索

(?i)\b(discounts?|on sale|clearance|price drop|black friday|cyber monday)\b

匹配 black friday running shoes。排除 shoe care。

优惠券与代金券搜索

(?i)\b(coupons?|voucher codes?|promo codes?|promotional codes?|discount codes?)\b

匹配 trainers promo code。排除 trainers product code。

预算与价格承受力

(?i)\b(cheap|cheapest|affordable|budget friendly|under [£$€]?[0-9]+)\b

匹配 laptops under £500。排除 laptop under warranty。

配送与自提

(?i)\b(next day delivery|same day delivery|free shipping|click and collect|free delivery)\b

匹配 flowers same day delivery。排除 flower delivery history。

库存与可购状态

(?i)\b(in stock|back in stock|available now|pre[ -]?order)\b

匹配 ps5 in stock。排除 ps5 controller review。

支付与分期

(?i)\b(buy now pay later|pay monthly|interest free|payment plans?|on finance)\b

匹配 sofa on finance。排除 sofa care。

演示与试用请求

(?i)\b(book a demo|request a demo|free trial|try for free)\b

匹配 crm free trial。排除 crm trial balance。

购物意图

(?i)\b(buy|order online|shop online|where to buy|purchase online)\b|\b(coupons?|voucher codes?|promo codes?|promotional codes?|discount codes?)\b|\b(discounts?|on sale|clearance|price drop|black friday|cyber monday)\b|\b(in stock|back in stock|available now|pre[ -]?order)\b|\b(next day delivery|same day delivery|free shipping|click and collect|free delivery)\b|\b(buy now pay later|pay monthly|interest free|payment plans?|on finance)\b

匹配 boots in stock。排除 boot care guide。

区分账户、客服与招聘需求

当品牌词点击量上升时,查看人们回来是为了做什么。登录、退货和订单追踪类搜索可以解释那些看似新客户需求的上涨。这些模式适用于各类品牌。在把需求归因于自己的业务之前,先查看匹配到的查询。

账户访问

(?i)\b(log[ -]?in|sign[ -]?in|customer portal|my account)\b

匹配 seo stack login。排除 seo stack features。

客服与联系方式

(?i)\b(contact (number|details|support)|customer (service|support)|help desk|telephone number)\b

匹配 acme contact number。排除 what is customer acquisition。

官网搜索

(?i)\b(official (site|website|store)|homepage)\b

匹配 acme official website。排除 website design。

退货与售后

(?i)\b(return policy|returns policy|request a refund|warranty claim|track my order)\b

匹配 acme track my order。排除 acme order online。

招聘与职位

(?i)\b(careers?|vacancies|jobs|internships?)\b

匹配 acme vacancies。排除 acme locations。

要拆分品牌词,请填入人们实际使用的拼写形式。下面的示例涵盖了带空格、带连字符和不带分隔符的 SEO Stack,以及它的域名。请替换成你自己的品牌及已确认的变体。用不匹配正则表达式应用第一个模式,即可查看不含这些拼写的搜索。查询筛选会略去匿名化的搜索,因此两边的总数相加可能少于站点总数。Google 关于筛选后总数的说明

查询中任意位置提到品牌

(?i)\bseo[ -]?stack(\.io)?\b

匹配 seo-stack.io login。排除 technical seo agency。

仅搜索品牌名或域名本身

(?i)^\s*seo[ -]?stack(\.io)?\s*$

匹配 SEO Stack。排除 seo stack pricing。

找出含本地化措辞的搜索

对于多门店业务,检查「open now」「nearest branch」和邮编类搜索是否能到达相应的门店页面。邮编模式识别的是完整英国邮编的格式。匹配只说明查询中出现了该措辞,并不能验证地址或搜索者的实际位置。

附近与就近

(?i)\b(near me|nearby|closest to me|in my area|near my location)\b

匹配 plumber near me。排除 plumber training。

营业时间

(?i)\b(open now|open today|opening (hours|times)|open on sundays)\b

匹配 dentist open now。排除 open dental software。

路线与门店

(?i)\b(directions to|branch locator|store locator|nearest branch)\b

匹配 acme store locator。排除 acme store reviews。

英国邮编格式词

(?i)\b([a-z]{1,2}[0-9][a-z0-9]?\s?[0-9][a-z]{2}|gir\s?0aa)\b

匹配 plumber sw1a 1aa。排除 plumber sw。

指定地点 · 替换为你服务的地区

(?i)\b(london|milton keynes|welwyn garden city)\b

匹配 chauffeur milton keynes。排除 chauffeur londoner reviews。

找出投诉、疑虑与评价类措辞

用投诉和纠纷类措辞找出具体问题,比如「charged twice」。在给出结论之前先读完整条查询。「Is this shop safe」表达的是不确定,而「not excellent」仍会被正面词筛选匹配到。把结果当作有待进一步调查的词。

正面评价措辞

(?i)\b(love|excellent|highly recommended|very happy|great experience)\b

匹配 acme great experience。排除 acme opening hours。

负面体验措辞

(?i)\b(terrible|awful|worst|disappointed|poor service|bad experience|not happy)\b

匹配 acme poor service。排除 is acme reliable。

投诉与纠纷

(?i)\b(complaints?|charged twice|refused refund|mis[ -]?sold)\b

匹配 acme charged twice。排除 acme refund policy。

疑虑与风险措辞

(?i)\b(is it safe|is .+ safe|risks? of|legit|scam)\b

匹配 is acme safe。排除 acme support。

筛出首页与电商 URL 结构

从这里开始切换到 Page(网页)正则筛选。先从站点中取一个产品页或系列页 URL,对照下面的示例检查。在 Shopify 上,产品页可能出现在某个系列路径之下。系列列表筛选在系列 handle 之后结束,因此能把这两类页面分开。Search Console 通常把效果数据归到规范 URL 上。请使用你在「网页」报告中看到的 URL 结构。

首页

(?-i)^https?://[^/?#]+/?([?#].*)?$

匹配 https://example.com/?utm_source=brand。排除 https://example.com/shop/。

区域首页

(?-i)^https?://[^/?#]+/[a-zA-Z]{2}(-[a-zA-Z]{2})?/?([?#].*)?$

匹配 https://example.com/en-gb/。排除 https://example.com/en-gb/shop/。

Shopify 商品详情页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?(/collections/[^/?#]+)?/products/[^/?#]+/?([?#].*)?$

匹配 https://example.com/en/collections/hiking/products/boot。排除 https://example.com/products/。

Shopify 集合列表页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/collections/[^/?#]+/?([?#].*)?$

匹配 https://example.com/collections/hiking。排除 https://example.com/collections/hiking/products/boot。

Shopify 博客文章页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/blogs/[^/?#]+/[^/?#]+/?([?#].*)?$

匹配 https://example.com/blogs/news/new-stock。排除 https://example.com/blogs/news。

Shopify 博客索引页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/blogs/[^/?#]+/?([?#].*)?$

匹配 https://example.com/blogs/news。排除 https://example.com/blogs/news/new-stock。

Shopify 标准页面

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/pages/[^/?#]+/?([?#].*)?$

匹配 https://example.com/pages/about。排除 https://example.com/pages/。

WooCommerce 商品详情页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/product/[^/?#]+/?([?#].*)?$

匹配 https://example.com/product/red-boot/。排除 https://example.com/product-category/red/。

WooCommerce 商品分类页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/product-category/([^/?#]+/)*[^/?#]+/?([?#].*)?$

匹配 https://example.com/product-category/boots/hiking/。排除 https://example.com/product/boots/。

WooCommerce 商品标签页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/product-tag/[^/?#]+/?([?#].*)?$

匹配 https://example.com/product-tag/summer/。排除 https://example.com/tag/summer/。

WordPress 分类归档页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/category/([^/?#]+/)*[^/?#]+/?([?#].*)?$

匹配 https://example.com/category/news/company/。排除 https://example.com/category-news/。

WordPress 标签归档页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/tag/[^/?#]+/?([?#].*)?$

匹配 https://example.com/tag/analytics/。排除 https://example.com/tagged/analytics/。

WordPress 作者归档页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/author/[^/?#]+/?([?#].*)?$

匹配 https://example.com/author/daniel/。排除 https://example.com/authors/daniel/。

WordPress 带日期的文章页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/[0-9]{4}/[0-9]{2}(/[0-9]{2})?/[^/?#]+/?([?#].*)?$

匹配 https://example.com/2025/05/10/new-office/。排除 https://example.com/2025/05/。

Magento 显式商品路由

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/catalog/product/view/id/[0-9]+/?([?#].*)?$

匹配 https://example.com/catalog/product/view/id/123。排除 https://example.com/red-boots.html。

Magento 显式分类路由

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/catalog/category/view/id/[0-9]+/?([?#].*)?$

匹配 https://example.com/catalog/category/view/id/42。排除 https://example.com/catalog/product/view/id/42。

BigCommerce 默认品牌页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/brands/[^/?#]+/?([?#].*)?$

匹配 https://example.com/brands/acme。排除 https://example.com/products/acme。

Wix Stores 商品页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/product-page/[^/?#]+/?([?#].*)?$

匹配 https://example.com/product-page/red-boot。排除 https://example.com/shop/red-boot。

Squarespace 商店商品路由

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/shop/p/[^/?#]+/?([?#].*)?$

匹配 https://example.com/shop/p/red-boot。排除 https://example.com/shop/red-boot。

对比服务、内容与支持板块

全站层面的趋势可能掩盖集中在某一个目录中的变化。先套用服务落地页的匹配模式并查看 Pages 表格,然后在同一时间段对内容类 URL 重复这一操作。请把示例中的目录名替换成你自己的。/guides/ 下的某个 URL 可能是文章、主题聚合页或列表页,所以在报告中给这组页面命名之前,先核查几条结果。

服务落地页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/services?/([^/?#]+/)*[^/?#]+/?([?#].*)?$

匹配 https://example.com/services/technical-seo/。排除 https://example.com/about/?next=/services/seo/。

地区落地页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(locations?|branches|stores)/([^/?#]+/)*[^/?#]+/?([?#].*)?$

匹配 https://example.com/locations/london/。排除 https://example.com/store-locator/。

行业落地页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(industries|sectors)/[^/?#]+/?([?#].*)?$

匹配 https://example.com/industries/finance/。排除 https://example.com/blog/industries/。

案例详情页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(case-studies|case-study|customer-stories)/[^/?#]+/?([?#].*)?$

匹配 https://example.com/case-studies/acme/。排除 https://example.com/case-studies/。

内容文章

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(blog|guides|resources|news)/([^/?#]+/)*[^/?#]+/?([?#].*)?$

匹配 https://example.com/guides/analytics/setup/。排除 https://example.com/guides/。

帮助与文档

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(help|docs|support|knowledge-base)(/[^/?#]+)*/?([?#].*)?$

匹配 https://example.com/docs/api/setup。排除 https://example.com/products/help-desk。

定价页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(pricing|plans)/?([?#].*)?$

匹配 https://example.com/pricing/?currency=GBP。排除 https://example.com/blog/pricing。

购物车与结账

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(cart|basket|checkout)(/[^/?#]+)*/?([?#].*)?$

匹配 https://example.com/checkout/payment。排除 https://example.com/blog/checkout。

政策与法律页面

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?/(policies/)?(privacy-policy|terms-of-service|refund-policy|shipping-policy|terms-and-conditions)/?([?#].*)?$

匹配 https://example.com/policies/refund-policy。排除 https://example.com/blog/refund-policy。

找出分页、参数 URL 和 PDF

用这些模式查看效果报告中出现了哪些 URL 变体。参数类过滤器会检查问号或与号之后的参数名。当另一个参数的值里包含诸如 “sort_by” 这样的文本时,这一点就很重要。匹配到的 URL 只是排查的起点。仅凭效果数据无法告诉你 Google 抓取了多少个变体。

路径型分页

(?-i)^https?://[^/?#]+(/[a-zA-Z]{2}(-[a-zA-Z]{2})?)?(/[^/?#]+)*/page/[0-9]+/?([?#].*)?$

匹配 https://example.com/blog/page/2/。排除 https://example.com/blog/page/about/。

站内搜索结果 URL

(?-i)^https?://[^/?#]+[^?#]*\?([^#&]*&)*(s|q|search|search_query)=[^&#]+

匹配 https://example.com/?s=red+boots。排除 https://example.com/?ref=q=boots。

筛选与排序参数

(?-i)^https?://[^/?#]+[^?#]*\?([^#&]*&)*(filter\.[^=&#]+|filter_[^=&#]+|sort_by|orderby|sort)=[^&#]+

匹配 https://example.com/shop?x=1&filter_color=red。排除 https://example.com/shop?next=sort_by。

分页参数

(?-i)^https?://[^/?#]+[^?#]*\?([^#&]*&)*(page|paged|pagenum)=[^&#]+

匹配 https://example.com/shop?page=2。排除 https://example.com/page/2。

跟踪参数

(?-i)^https?://[^/?#]+[^?#]*\?([^#&]*&)*(utm_[a-z]+|gclid|fbclid)=[^&#]+

匹配 https://example.com/shop?utm_medium=email。排除 https://example.com/shop?src=utm_medium。

PDF 文档

(?-i)^https?://[^/?#]+[^?#]*\.[pP][dD][fF]([?#].*)?$

匹配 https://example.com/files/spec.pdf。排除 https://example.com/post?file=x.pdf。

连接一个资源,看着数据开始累积。

连接 Search Console 资源的那一刻,入库就开始了:不用配置 Google Cloud 项目,不用 BigQuery,也不用设计表结构。你只要连接资源,SEO Stack 就会从那天起存下你的每一行数据。

  • 需要信用卡
  • 在试用期内取消不会扣款
  • 无合约