Regex in Analytics for longtail content
-
I have spent quit some time now, trying to figure this out. I wannt to segment landingoage traffic to the longtail content. That's content in the 3rd or 4th subdirectorylevel. I would like to do that by saying google: "Just show me traffic that arrives on landingpages with 3 OR 4 slashes "/"
But I can't get a solution, can anybody help in the seoMOZ community?
-
A very handy guide here on regex specifically for this kind of thing, with a bit of tweaking you can also filter right down to number of words in the phrases too if you want to (handy if you are looking for more specific conversion phrases)
-
Ok, I have to admit, this answer is not my own. I "borrowed" ok, I stole the answer from Tom Critchlow. Your question was very intriguing so i took the time to research an answer for you.
Here is the regex string that will segment traffic according to the number of slashes in an url.
^/([^/]+/){3}[^/]*$
This specific regex segment will show urls with 5 slashes. You can play around with adding and subtracting slashes untill you find the perfect string for yourself. Here is a link to the article where Tom talks about this topic.
- Bryant Jaquez
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
-
Tracking 301 redirect traffic in Google Analytics
if I 301 redirect www.mywebsite.com to go to www.yourwebsite.com, how can I track the traffic in Google Analytics that is coming from mywebsite.com?? I don't think that's a referral traffic, is it?
Reporting & Analytics | | Armen-SEO0 -
Adwords in google analytic Transaction showing more than actual adwords
Hello Experts, Compared to my google adwords account , transaction showing more in adwords for google analytic. May i know where i am going wrong? Thanks! Dev
Reporting & Analytics | | devdan0 -
Today analytic View Changes or Bug?
Hello Friends Today I just open my analytic dashboard and found changes in analytic metrics like for example “All traffic source view” found keyword instead of source medium. Have look below graph does anyone know why analytic display keywords instead of source medium? Is it analytic update? Or bugs check with your dashboard and go to “ALL TRAFFIC SOURCE” primary dimension is keyword? yxma
Reporting & Analytics | | CommercePundit0 -
Google analytics is not tracking well
Hey, There is something not working in our GA account, its shows too many visits per day, when look where this traffic comes from, the majority comes from (not set). Please find attached. Really appreciate help! Thank you! BvmAKtO
Reporting & Analytics | | Comunicare0 -
What is click2.scour, and why is it showing up as Referral Traffic in Google Analytics?
I've noticed that a couple of my clients in the insurance industry have been receiving a pretty large boost in Referral Traffic from a source called click2.scour.com and click2.efacts.com. What surprises me most is that the traffic has a low Bounce Rate, a high Avg. Visit Duration, and is made up of 100% New Visits. What is this? Why would they be getting so much traffic from these two sources all of a sudden? Thanks in advance for your help!
Reporting & Analytics | | copyjack0 -
Goal tracking in Google Analytics
Hi folks I read from various sources that if you setup goals in Google Analytics each of these goals can only be fulfilled once per visit. Also some sources suggesting that only one goal from each goal group can be fulfilled per visit. On our site we have a goal for external links since this provides value to partners. Some users do open an external link in a new tab, then come back to the main site. Any further goal completions would then not get tracked. Since we apply a result based payment model for our work this means we are literally loosing money. Anyone has official info from Google on this? Can it be configured? How long is a visit? Thanks a million and have a great day. Fredrik
Reporting & Analytics | | Resultify0 -
Google Analytics All Kinds of Messed Up
Anyone have their google analytics go straight crazy on Thursday, 8/11/2011? 30% increase in visits No increase in visitors Huge drop in pageviews and time site Higher bounce rate More return users
Reporting & Analytics | | ChrisKolmar0 -
Campaign tracking and duplicate content
Hi all, When you set up campaign tracking in Google Analytics you get something like this "?variable=value parameters" in the URL. If you place such a link on your site as an internal link, will it be considered as a different URL and will have its own link value? The question I have is, since Google knows it's a Google link and knows the original URL (by stripping the tags), does it pass link value to the original URL? If not, what can be done to pass link value? Thanks in advance. Henry
Reporting & Analytics | | hnydnn0