Search and Replace filter on Google Analytics?
-
Hello!
On our GA account for one of our clients, we'd like to add a search and replace filter to the Views section of the account. The URL is www.askergoworks.com (it redirects to askergoworks.com), and Google has flagged us to have redundant hostnames. This is why we'd like to add the filter.
Would the regular expression be askergoworks.com|www.askergoworks.com ?
Any help would be great - I'm not a regex expert, so I really don't how to go about this.
Thanks!
-
No problem!
-
Perfect! Thanks again for the help!
-
Just saw your update: Yes, only enter ^www.
-
I would go ahead and do that after you apply the filter. Google reporting is based on the URI string, so this won't cause any data loss.
-
Hi Logan,
Thanks for your help - Are you saying I should replace it to non-www. now? Or is this just for future reference when I set up accounts? I hesitate to do this with this account because I don't want to lose any data...
And when you mean ^www. I don't put the rest of the address after that, correct?
Thanks!
-
Hi,
Take the following steps:
- Choose Search and Replace
Enter ^www\. for the search string
- Leave 'Replace String' blank
Going forward, it's actually much simpler than that, all you need to do is go to Admin > Property Settings > Default URL. Change it to the non-www version and you're good to go!
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 Search Console - Click Count Inconsistency
In Google's search console I see a discrepancy between click counts. At top I see this here and then beneath I see these kinds of numbers for click counts here. So the top click count says 252 and the bottom section appears to only shows less than 40. Probably a simple explanation here that I'm just not seeing. Thanks!
Reporting & Analytics | | a_toohill0 -
Google Analytic Bug For Browser Report
Hi All, I am checking browser report since many years today I was checking browser report what I find "DESKTOP" is showing in Browser & OS section with lots of traffic. Screenshot attached Is it google analytic bug? Can anyone please help me? PeGK7
Reporting & Analytics | | Arnold30 -
How accurate is Google analytics at measuring traffic? (Free version)
Hi Guys. When we compare our actual sales to Google analytics conversions it can be way out. Sometimes as much as 50%. Is this the same for the data on traffic? And if so, does the data tend to be out by a similar amount over time? i.e) If we compare this year and last year it give us a good indicator of differences in traffic volume? (albeit not 100% accurate?) Thanks. Isaac.
Reporting & Analytics | | isaac6630 -
I am tracking my domain e.g www.xyz.com to an existing google analytics account . I want to track www.xyz.com/blog separately in the google analytics account. How can I do that?
I am tracking my domain e.g www.xyz.com to an existing google analytics account . I want to track www.xyz.com/blog separately in the google analytics account. How can I do that?
Reporting & Analytics | | Windlass0 -
Google Analytics for User Experience
Hi In terms of looking at the overall User Experience of a website is there any particular areas of Google analytics that you believe to be particularly useful to identify areas of worry or opportunity?
Reporting & Analytics | | TheZenAgency1 -
Google Analytics Goals - Different Domain
Hi, We currently need to setup a goal that involves a different domain. Any guidance would be greatly appreciated. more info: the checkout process is redirected to a secure.domain Just let me know if I can provide any additional info that may helpful.
Reporting & Analytics | | opusvo0 -
Setting up Google Analytics for Subsites
I currently have one main .com site and am planning on launching geo-location subsites .co.uk, .com.au, .ru, etc... Traffic will flow between both sites and some of the content on the subsites will be duplicate and therefore include a canonical tag to the main site. I want to set up GA to capture who is going to the subsites and vice versa and correctly capture crossover traffic. Any advice on implementing advanced analytics directly (or links to sources that will direct me the right direction for this project)
Reporting & Analytics | | theLotter0 -
Google Analytics' Goals and Cold Fusion
We are having an issue tracking goal completions in GA with a cold fusion site. I would like to know if anyone as had similar issues and found a solution.
Reporting & Analytics | | JamesBarry0