Regular Expressions in Google Analytics
-
I want to use the Google Analytics landing page reports to look at the bounce rate of top level pages excluding the homepage. So pages with urls:
Does anyone know a regular expression that will allow me to do this?
Just to clarify I do not want to look at the bounce rate of the homepage or any pages deeper than www.example.com/example e.g:
Thanks in advance
-
This works a treat.
Thanks for your help!
-
Hi,
Wow, this was a really hard question. Finding all your top landing pages was the easy part, but excluding the homepage is a bit more difficult because its hard to exclude within Regex. But a I got a "stable" solution which hopefully works for you.
^/([^/])[^/]*$
It looks for urls which start with "/" and are followed by text where not a slash is found in. Because all your deeper pages contain at least one "/" more this is the way to exclude them. Hopefully this is what you ment.
With this solution you have to be sure that the default page in your Google Analytics is empty, like here. This will take care that your homepage is served within content reports as: "/" so it will be excluded with the regular expression seen above.
-
May be a bit OT, but have you tried playing with something like http://gskinner.com/RegExr/ to try out regex combinations for what you need? Regxr's got a stack of 'template' regular expressions available in the menu on the right.
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
-
Google analytics suddenly stopped tracking all my landing pages
Hey guys. I love the new update of GA. Looks so clean. So, of course, I was excited to see how my landing pages were doing. I went to behavior, all content, all pages. And I noticed it's only showing me 19 pages out of the 93 I have indexed. And none of the top ones at all! Can't find them anywhere in GA! Anyone seen this before? Thank you so much
Reporting & Analytics | | Meier0 -
No-indexed pages are still showing up as landing pages in Google Analytics
Hello, My website is a local job board. I de-indexed all of the job listing pages on my site (anything that starts with http://www.localwisejobs.com/job/). When I search site:localwisejobs.com/job/, nothing shows up. So I think that means the pages are not being indexed. When I look in Google Analytics at Acquisition > Search Engine Optimization > Landing Pages, none of the job listing pages show up. But when I look at Acquisition > Channels > Organic and then click Landing Page as the primary dimension, the /job pages show up in there. Why am I seeing this discrepency in Organic Landing pages? And why would the /job pages be showing up as landing pages even though they aren't indexed?
Reporting & Analytics | | mztobias0 -
Where will checkout option will reflect in google analytic for enhance ecommerce?
Hi, I have implemented enhance ecommerce checkout option like paypal, credit card but where it will reflect in google analytic? - https://developers.google.com/tag-manager/enhanced-ecommerce#checkout John
Reporting & Analytics | | varo0 -
Why my WMT is showing more clicks than my Google Analytics Organic Search Traffic?
Hello Everybody, Can somebody help me figure out this puzzle: My WMT is showing 6000 clicks, while my Organic Traffic in Google Analytics is showing only 3500 daily ... how is that possible? Best Regards
Reporting & Analytics | | Muhammad_Jabali0 -
Cant find eCommerce in Google Analytics
Ciao from Wetherby UK, Ok ive done this a zilion times but since Google analytics upgraded I cant find how to upgarde the tracking code to ecoomerce tracking. Before i would just tick a box and Boomshanka the code would change. Whats got me worried the tracking codes has not modified to ecoomerce is because it looks like this: Heres the tracking dashboard with no sign of ecomm tracking customisations:
Reporting & Analytics | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/wheres-ecom-tracking_zps0ef4b8c6.jpg And i cant see any means to modify it for ecoomerce tracking 😞 Any insights welcome!
Grazie tanto,
David0 -
Funnel Visualization in Google Analytics
Hello. I have a question about funnel visualization in Google Analytics where there is an eCommerce goal (i.e. add to cart, shipping, purchase) with the first step being mandatory. Issue:
Reporting & Analytics | | Unity
The amount of completed purchases reported in GA doesn't match the actual transaction figure via the eCommerce platform. Question:
I was wondering if anyone knows why this occurs? I have a few ideas on why however I haven't been able to locate any supporting evidence. So I was hoping to generate a few ideas from the SEOMoz community to help me investigate further. Any ideas welcome! Much thanks,
Davinia0 -
No Social Sources in Google Analytics - what am I doing wrong?
Hello Everyone, I'm having a strange issue: I DO NOT have in my Google Analytics the "Social" tab under the Traffic Sources category. Look at the first image of this post: http://marketingland.com/google-analytics-social-reports-8138 How do you "get" that to show? Hope somebody has this issue and can help, Thanks a lot, Alex
Reporting & Analytics | | pwpaneuro0 -
Google Analytics help - exporting reports
Hey mozzers, A little help if you will. I am in traffic sources > sources > search > organic I am view keywords and comparing 1 month with another. Now I see what 1 keyword sends 1st month, 2nd month and % Change. I want to export this data to an .xls file. When I do, I end up with a file that shows what 1 keyword sends 1st month and 2nd month, but no % Change! I really need to include this in exported document.... Summary: Analytics hates me. 🙂
Reporting & Analytics | | MirandaP0