How to Search for a List of URLs in Google Analytics Updated on February 3, 2020 by InMotion Hosting Contributor 2 Minutes, 7 Seconds to Read This tutorial explains how to: Prepare your list of URLsSearch for a List of URLs In this guide, we will show you how to search for a list of URLs in Google Analytics using the Advanced search option. When tracking web page performance in Google Analytics, many people will search for one page at a time. But, it is much easier to compare results when you can search for an entire list of URLs. For example, you may want to track all the articles from a specific author, or traffic from all posts published last month. You can then use this information to target your marketing campaigns better or track key performance indicators (KPI’s). You can easily integrate Google Analytics tracking with our WordPress Hosting plans, and begin reviewing traffic to your website. Prepare your List of URLs Before we can perform the search, we must format the list of URLs in a specific way. This is because we are using the Regular Expressions (regex) option in the Advanced search tool of Google Analytics. We recommend using a text editor such as Notepad, Notepad++, or Sublime Text. Take your list of URLs and remove the base section. For example, start with this: -https://www.inmotionhosting.com/email/webmail/iphone-webmail-login-page-https://www.inmotionhosting.com/product-guides/wordpress-hosting/what-is-jetpack-for-wordpress-https://www.inmotionhosting.com/product-guides/wordpress-hosting/how-to-use-contact-form-7-to-add-a-forThen Remove “https://www.inmotionhosting.com/” so it will just look like this:email/webmail/iphone-webmail-login-pageproduct-guides/wordpress-hosting/what-is-jetpack-for-wordpressproduct-guides/wordpress-hosting/how-to-use-contact-form-7-to-add-a-formPut a pipe | between each URL and put them on the same line with no spaces like this:email/webmail/iphone-webmail-login-page|product-guides/wordpress-hosting/what-is-jetpack-for-wordpress|product-guides/wordpress-hosting/how-to-use-contact-form-7-to-add-a-formNow enclose the list in parenthesis () with no spaces, so it will look like this:(email/webmail/iphone-webmail-login-page|product-guides/wordpress-hosting/what-is-jetpack-for-wordpress|product-guides/wordpress-hosting/how-to-use-contact-form-7-to-add-a-form)Save this list so we can use it in the next section. Search for a List of URLs In this example, we will be reviewing total Pageviews in Google Analytics, but these steps will work for any metric that allows the Advanced search option. Login to Google Analytics.Click Behavior, Site Content, then All Pages.Select your date range.Click the Advanced search option.Use the following search options:Include, Page, Matching RegExpPut your list of URLs in the blank field then click the Apply button. You will then see a list of results for the URLs included in your list. Congratulations, now you know how to search Google Analytics for a list of URLs. You can begin tracking the performance of groups of Pages or Posts with this technique. Share this Article IC InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles How to Google Analytics to WordPress Without a Plugin Secure Matomo Analytics With The Security Info Plugin How to Migrate to Google Analytics 4 From UA How to Include Google Analytics Tracking Code with PHP Enabling Google Analytics in Koken Adding Google Analytics to Ghost Debug Google Analytics with Google Analytics Debugger How to use Google Analytics with PHP-Nuke Adding Google Analytics to a Container in Google Tag Manager Installing Google Analytics on Your Website
Thanks John-Paul! This resource has helped lots! Fyi I built this little chrome extension (URL Regex Generator). It helps when you have more than 10 URLs and don’t want to add the regex syntax manually. Thanks again man!