Need REGEX help
-
Hi Mozzers,
I have multiple filters in one of the GA accounts I manage. I just created new pages that have URLs containing the keyword "spring" (location in texas) and wanted to filter out spring in the GA Spring profile(screenshot) .
My issue is it will filter all the URLs containing the kw spring and the website has multiple blog post containing the same kw (spring).
So what I need is a Regex formula so I can make sure I track only the Spring tx traffic and not the blog posts.
Thanks for letting me know how can I do that!
-
Hi Kristina,
Would you rather do it a different way?
Thanks
-
Hi Kristina
I would love to share this infor but I can't do it here. Can I get you email or so so I can send you the detailed titles.
Thanks Kristina
-
Yep, I definitely think you could! Could you send me a list of the page titles you want to target, along with some page titles that you don't? The key is to be very specific in the pattern, so it doesn't include any pages that aren't in the Spring location pages.
-
Hi Kristina,
the difference between them is that one is about spring cleaning and the other I would like to capture traffic is in Spring texas.
Regarding the page title, they are pretty similar but not identical. Do you think I could use that option? If yes can I include 11 page titles (since I am trying to track all the Spring Texas location pages) ? If yes how would I add this type of filter?
Thanks!
-
(Whoops, sorry, didn't get the notification when you first posted this)
Hm, so, it doesn't look like you're using a subdirectory here. You're using "spring" in the page. If you were using a subdirectory, it would look like this:
And so on.
Since you're using a page, though, I think that you'll need to use a custom filter (the second radio button at the top). You can choose to "Include" anything: page title, campaign, referrer, etc.
These sound like they're very similar pages, so are you using a similar page title between them? Something that would be very specific to this type of pages?
-
Hey Kristina,
Do you need more information or it enough?
Thanks!
-
Sure Kristina,
Don't want to include:
example.com/....-colorado-springs
example.com/..../spring-cleaning-....
include:
....
Thanks Kristina!
-
Hi Taysir,
Could you give us examples of the URLs you do and don't want to filter into this profile? You can make the domain www.mydomain.com so it remains anonymous.
Thanks!
Kristina
-
Hi mozzers,
the question is little tricky but if someone knows any useful resources, it would be great share those instead.
Thanks guys!
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
-
Need help Taking my Site to the Next Level
Any, and I mean ANY suggestions would be Great and Welcome, Good and Bad. Have a Good site, with what I believe good content, and just stuck at the same level for over 6 months. Please and Thank you for taking a few minute of time out of your day on this. Joe https://www.surecretedesign.com/
Reporting & Analytics | | surecreteproucts0 -
How to filter out traffic from subdomain using regex?
Hi There, We have a test server that lives on a subdomain which we'd like to filter out in Google Analytics. We're using the hostname filter but are having trouble understanding the regex needed, we're using this as the filter pattern: .domain.com. Will that work? The profile is new so we can't test the pattern. Any pointers in the right direction would be much appreciated. Cheers Ben
Reporting & Analytics | | cmscss0 -
Need help with excluding IP addresses in Google Analytics
In Google Analytics, are you able to add more than 1 IP address to an exclude filter? I found this article, http://www.creare.co.uk/filter-multiple-ip-addresses-in-google-analytics, but wasn't sure if it was the right way to do this or if I should create a new filter for each IP address. Also, when I try to create a new filter, it only will let me select from a list of profiles I have created whereas on other accounts I've been able to create several new filters without any problems. Does anyone know why this might be?
Reporting & Analytics | | jfeitlinger0 -
Can't seem to rank for keyword "home care grand rapids" - need some advice
I am trying to rank for "home care grand rapids" and am having a really difficult time. My site: http://healthcareassociates.net has better backlinks, keywords and other seo markers than my competitors but I still can't seem to rank. The keyword and associated keywords (home care grand rapids michigan, home health care grand rapids, etc.) are only 31-33% difficulty and my site/page rank is better than the leading sites. What gives? Todd
Reporting & Analytics | | t1kuslik0 -
Webmaster tools help
Looking at some Google Webmaster tools data and im a bit stumped. Can anyone tell me if the "not selected" pages should be taken from the "total indexed pages" or are they a seperate entity? The way the data is displayed on the graph leads you to believe they should be taken from the total indexed pages, yet Googles own description of "not selected" pages says that these pages are not indexed. Confused.
Reporting & Analytics | | Silkstream0 -
Need help setting up a Google analytics goal.
I'm just now getting my feet wet with the goals in GA. I'm trying to figure out how many visitors to a certain page, click on a certain link (which takes them no a certain page on my site.) What's the best way to go about this? Thanks.
Reporting & Analytics | | NoahsDad0 -
Using Regex for Goals in Google Analytics
I’ve got a website with 20 different forms; and I’d like to track all 20 form completions with one Goal in Google Analytics. The completion-page URLs follow the pattern below (the website uses Drupal CMS) Form One: www.acme.com/node/2990/done?sid=651 Form Two: www.acme.com /node/2991/done?sid=785 Form Three: www.acme.com /node/2992/done?sid=1021 Form Four: www.acme.com /node/2993/done?sid=459 I believe that there is a way I can use regex so Google Analytics will track if any of these completion URLs appears. Looking for guidance how to format the regex statement.
Reporting & Analytics | | TopFloor0 -
Help with local SEO strategy for service industries
Here is the scenario I often wonder about: My client's tree removal service is ranking in #1 in local search for
Reporting & Analytics | | MozMan2
"tree removal town state." His Google Places account is set for a 30 mile radius. He has lots of directory listings and positive reviews. Some inbound links as well. The same client is ranking #1 in organic listing for "tree removal county state" ...I chose to target the county for organic listings because the client was dominating local search for the town. My reasoning: I thought, Google local search would bring all of the local specific searches for "tree removal town state" and organic listings would bring the broader searches for "tree removal county state." That is exactly what's happening and stats show there are some visitors coming to the site searching with the county name. Not a ton of traffic but a lot of keyword variations using the county name. The bulk of the traffic comes from the his Google Places listing for the town the business is located in which is great. Dilemma: My client is not ranking in local search results for neighboring towns just a few miles away and certainly not ranking in organic listings for neighboring towns either because we are targeting the county. He has a long list of town names he services in the footer area and this does seem to help for organic search in neighboring towns with little competition. Broad Question: How can I optimize pages for the same services in neighboring towns without duplicating content. For example, the home page title tag and H1 reads:
Tree Removal, Tree Trimming, Stump Removal, County State It would be very easy to create identical pages with title tags and page headings for the different towns but that would undoubtedly create duplicate content and would look weird to someone browsing the site. Specific Questions: Should I put the town name where the business is located in the title tag even though the site already ranks #1 for that town in local search, without having the town in the title tag? Why not use this importunity for an area that we are not ranking for? Do I nix the county and state and try to insert another town or two in the title and H1? Ideally I would like to have this site rank well in local search for all of the neighboring towns. This may be too broad of a post, (it is my first one) but perhaps there are a few of you out there that can outline strategies that work for service industries like, lawn care, tree removal, landscaping, etc. Thanks for reading.0