Search Console 規則運算式篩選器更新和使用小訣竅
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
2021 年 6 月 2 日星期三
不久前,我們宣布改進了 Search Console 成效報表的資料篩選功能,很高興看到這項公告獲得不少社群回響。
和往常一樣,我們這次也十分關注大家提供的意見。結果發現,很多人都希望規則運算式篩選器加入排除比對選項,讓這項功能更臻完善。
好消息是,從今天開始,成效報表篩選器將同時支援比對吻合項目與排除吻合項目的規則運算式篩選器。只要先在篩選器選取器中選取 [自訂 (規則運算式)] 選項,就可以在次要下拉式選單中看到相關選項,如以下螢幕截圖所示。進一步瞭解如何篩選搜尋成效資料。
在 Search Console 中使用規則運算式的小訣竅
為了協助剛開始接觸規則運算式的使用者,我們也在這裡提供了一些實用的小訣竅。
首先,讓我們介紹一下規則運算式究竟是什麼。簡單來說,規則運算式是一種指定搜尋模式的字元序列,可以用來建立包含或排除不只單一字詞或詞組的進階篩選器。使用規則運算式時,您可以使用一些具有特殊涵義的中繼字元,例如定義搜尋條件的字元。如要查看 Search Console 支援的所有中繼字元,請參閱 RE2 規則運算式語法參考資料。
如果您想知道哪些情況應該使用規則運算式,而不是其他類型的篩選器,請參考下方列舉的一些使用情境:
- 區隔已經知道您品牌的使用者 - 使用規則運算式指定貴公司名稱的多個版本,包括有錯別字的版本。這樣一來,您就可以得知每個群組使用的查詢類型,以及每個目標對象分別是受到網站的哪些區塊吸引。舉例來說,如果貴公司名稱是
Willow Tree
,建議您建立一個包含所有類似名稱的篩選器,例如:willow tree|wilow tree|willowtree|willowtee
(|
中繼字元代表 OR 陳述式)。
- 分析網站特定區塊的流量 - 使用聚焦於網站上特定目錄的規則運算式,可協助您瞭解針對個別內容區塊的常見查詢。舉例來說,如果您的網址結構是
example.com/[product]/[brand]/[size]/[color]
,當您想查看指向綠色鞋子的流量,但是對於品牌或尺寸沒有要求時,就可以使用 shoes/.*/green
(.*
會比對任何字元,比對次數不限)。
- 瞭解使用者意圖 - 使用規則運算式分析哪些類型的查詢會將使用者導向網站上的不同區塊。
舉例來說,您可能會關注含有疑問用語的查詢;而
what|how|when|why
查詢篩選器可能會傳回代表您的內容應能輕易解答問題的結果 (也許是常見問題集)。其他例子還有包含 (或不含) buy|purchase|order
之類交易用語的查詢。這些運算式也有助您瞭解使用者較常或較少使用哪些產品名稱。
歡迎前往 Search Console 說明中心查看常見的規則運算式。如果您對規則運算式有絕佳的應用方式,也歡迎在 Twitter 使用 #performanceregex
主題標記與大家分享。
如果您有任何問題或疑慮,歡迎前往 Google 搜尋中心社群或 Twitter 尋求協助。
發文者:搜尋服務代表 Daniel Waisberg
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
[null,null,[],[[["\u003cp\u003eGoogle Search Console's Performance report now supports negative matching for regular expression filters, allowing users to exclude specific patterns.\u003c/p\u003e\n"],["\u003cp\u003eRegular expressions (regex) are sequences of characters used for advanced filtering beyond simple keywords, enabling analysis of various aspects of website traffic.\u003c/p\u003e\n"],["\u003cp\u003eRegex in Search Console can be used for tasks like segmenting users based on brand knowledge, analyzing traffic to specific website sections, and understanding user intent through query patterns.\u003c/p\u003e\n"],["\u003cp\u003eUsers can leverage the RE2 regex syntax and refer to Search Console help center for guidance on using regular expressions effectively.\u003c/p\u003e\n"]]],["The Search Console Performance report now supports both matching and non-matching regular expression (regex) filters via a secondary dropdown. Regex allows for advanced filtering using metacharacters, enabling users to segment branded traffic, analyze specific website sections (e.g., using `shoes/.*/green`), and understand user intent by filtering for question words or transactional terms (e.g `buy|purchase|order`). The document provides guidance, a link to the RE2 syntax, and encourages the sharing of regex examples.\n"],null,["# Search Console regex filters update and quick tips\n\nWednesday, June 02, 2021\n\n\nWe recently announced [improved data filtering](/search/blog/2021/04/performance-report-data-filtering)\nfor Search Console Performance reports, and we were delighted to see the [community\nreaction](https://twitter.com/googlesearchc/status/1379775388193320962) to the announcement.\n\n\nWe were also interested in the feedback we received, as always, and we saw many requests to complete the picture by adding a negative match option\nto the regular expression (regex) filter.\n\n\nThe good news is that starting today **the Performance report filter supports both matching and not matching regex filters** . The option\nis available through a secondary dropdown, which appears after picking the \"Custom (regex)\" option in the filter selector, as shown in the screenshot\nbelow. Learn more about [filtering search performance data](https://support.google.com/webmasters/answer/7576553#filteringdata).\n\n\nQuick tips on using regex on Search Console\n-------------------------------------------\n\n\nWe also thought it would be helpful to provide some quick tips if you're just starting with regex.\n\n\nFirst of all, what *is* a regular expression? In a few words, it is a sequence of characters that specifies a search pattern. You can use it\nto create advanced filters to include or exclude more than just a word or a phrase. When using regex, you can use a number of metacharacters, which are\ncharacters that have a special meaning, such as defining a search criteria. Check the [RE2 regex\nsyntax reference](https://github.com/google/re2/blob/main/doc/syntax.txt) for a reference on all metacharacters supported by Search Console.\n\n\nIf you're wondering when you should use regex as opposed to other filter types, here are a few examples when to use regex instead of other filters:\n\n- **Segment users that already know your brand** - Use regex that specify multiple variants of your company name, including misspellings. This will inform you what type of queries each group is using and which section of your website is attracting each audience. For example, if your company's names is `Willow Tree`, you might want to create a filter for all variants like this: `willow tree|wilow tree|willowtree|willowtee` (the `|` metacharacter represents an OR statement).\n- **Analyze traffic to a website section** - Use regex that focus on specific directories on your website, this can help you understand what are common queries for each of your content areas. For example, if your URL structure is `example.com/[product]/[brand]/[size]/[color]` and you'd like to view traffic leading to green shoes, but you don't care about the brand or the size, you might use `shoes/.*/green` (`.*` matches any character any number of times).\n- **Understand user intent** - Use regex to analyze which types of queries are bringing users to different sections of your website. For example, you might be interested in queries containing question words; a query filter `what|how|when|why` might show results that indicate your content should easily answer questions, maybe through an FAQ. Another example would be queries containing (or not) transactional words such as `buy|purchase|order`. This might also show which product names are more commonly or rarely used with these expressions.\n\n\nCheck the Search Console help center for [common regular\nexpressions](https://support.google.com/webmasters/answer/7576553#regexp_glossary). If you have any cool examples of what to use regex for, share them on Twitter using the hashtag `#performanceregex`.\n\n\nIf you have any questions or concerns, please reach out on the [Google Search Central Community](https://support.google.com/webmasters/threads?thread_filter=(category:search_console)) or on [Twitter](https://twitter.com/googlesearchc).\n\n\nPosted by [Daniel Waisberg](https://www.danielwaisberg.com), Search Advocate"]]