How to filter blog pageviews using segments with regex
-
I must be overcomplicating this. I have a website with a blog structure that includes year subfolders, so: website.com/2019/blog-title, website.com/2018/blog-title, website.com/2017/blog-title, etc. I want to create a segment that I can apply in Site Content > All Pages to get quick stats for all blogs, regardless of year. (Pageviews, time on site, etc.) Unfortunately, Content Drilldown doesn't work well here as it is grouping by each year. I have tried setting up a segment using regex, but am getting a mixture of all pages, not just blog pages. I have set up the segment the following way:
Advanced > Conditions > Page, Matches Regex, /2019/(.*?)/
Advanced > Conditions > Page, Matches Regex, /2018/(.*?)/
Advanced > Conditions > Page, Matches Regex, /2017/(.*?)/
Am I going about this all wrong? Is my regex wrong? Any advice is appreciated!
Side note: glaringly obvious that now is the time to clean up my URLs. But I'd still love to see the data in its current URL state.
Thank you!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Using Site Maps Correctly
Hello I'm looking to submit a sitemap for a post driven site with over 5000 pages. The site hasn't got a sitemap but it is indexed by google - will submitting a sitemap make a difference at this stage? Also, most free sitemap tools only go up to 5000 pages, and I'm thinking I would try a sitemap using a free version of the tool before I buy one - If my site is 5500 pages but I only submit a sitemap for 5000 (I have no control of which pages get included in the sitemap) would this have a negative effect for the pages that didn't get included? Thanks
Reporting & Analytics | | wearehappymedia0 -
Filters for referral bots ineffective
I'm not sure what I'm doing wrong here. I've been trying to block spam from my client's analytics for over a month and I just can't seem to get it right. I am beyond frustrated. Here is a list of the filters I have: http://imgur.com/a/SVvEA#0 And here is referral traffic from them regardless: http://imgur.com/a/SVvEA#1 Specifically this is what the filter looks like. Am I doing something wrong here? http://imgur.com/a/SVvEA#2 I have also put a filter in place to block traffic from Russia, and it doesn't seem to be working 100% either. http://imgur.com/a/SVvEA#3 On top of that, it seems anytime I do manage to block something, another site just pops up in its place. Is it endless? My clients are very small local business and this is absolutely ruining their analytics. I can't even show them their traffic reports since it's absolutely meaningless with all this spam. Any help would be greatly appreciated.
Reporting & Analytics | | everestagency0 -
Procedure of ecommerce tracking installation and set-up using GTM
Hello Experts, I have an e-commerce website. Google Analytic configured in Google Tag manager. Now in google analytic I have "ON" the Enable Ecommerce. Now i have to do ecommerce tracking installation and set-up? So can you please let me know the procedure? Regards, Jackin
Reporting & Analytics | | jackinmathis10 -
How to transfer 5 domains under one Brand domain without using 301 redirect with minimum SEO loss
My situation is rather complicated , I have 5 domains with different but identical services. Some with good traffic some without, but 2 main domains have manual penalty from Google (I have tried a lot to get rid of the penalty but no success) so finally I have decided to move all our websites under one anchor website 'a brand' and pass all the seo juice + blog articles under the same. Now the problem with the procedure is that we cannot redirect the penalized domain urls to new one as penalization will also be transferred and the whole motive of creating a new brand will be lost. So if somebody could guide me as of how I should proceed transferring SEO value with minimum traffic loss but without using 301) **One way I could figure out is using canonical (Am not confident over it) but say I create 5 identical pages on new domain and declare them as canonical of old domain pages (So is it safe? will it transfer the penalty of old domain to canonical new urls? ) ** Rest i am bifurcating all the traffic sources like direct / organic / referral / Social etc and chalking out what we can control manually and in what ratio, gradually I will work on each section to transfer the traffic. Main Problem is of Organic and Not available. Some suggestions or blog urls would be appreciated.
Reporting & Analytics | | ngupta10 -
Using Google Analytics network service provider
Hi What are people's views on using the Technology > Network > Service provider part of Google Analytics as a way to find companies that have visited a website? Then potentially contact them companies etc? Thanks
Reporting & Analytics | | Hughescov0 -
Some questions on how to set up a multi-visit advanced segment in Google Analytics
Hi I would like some assistance / clarification on how to set up a user segment so that it can track user behavior over multiple visits. Basically I have a campaign set up and want to see conversions - even if they hit the site and then convert later on another visit. I've read that you can do this (over up to 30 days). So I start off by filtering TRAFFIC SOURCE - easy enough. But then I have to add under "advanced" correct? But then when I set the next filter to the GOAL I want, I only get "by session" and "by hit" as options. The blog post I read made it sound like only "by user" would then really do multi visits. Is "by user" only an e-commerce tracking option? (which I don't have set up) Is there another way/path to get the info I need? Thank you!
Reporting & Analytics | | yandl0 -
Analytics Filter for URL's
Hi Fellow Mozzers I am setting my analytics and need to set some filters and need some help. I have a number of Local Sites i need to include and can't find how to do it. some of the the paths are local.imsm.com/new-york/ local.imsm.com/chicago/ local.imsm.com/long-beach/ local.imsm.com/atlanta/ each of the local URL's are /name/ any help would be great
Reporting & Analytics | | imsmlouis0 -
Do I need to turn off custom results or empty my cache before using the SEOMOZ Pro Rank checker?
I'm getting unusual swings in SERPS ranks from one day to another (I had several keywords ranked in top ten go to the the third or fourth page in a week). I knwo that there's always variation because of localized and custom search, but this seems to be something more.
Reporting & Analytics | | bbelgard0