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 - > Google Search Analytic gives figure for google organic or adwords or combine of both?
Hi All, In Google Search Console -> In Search Analytics. I can see Clicks, Impressions, CTR and Position. I want to know all these 4 - Clicks, Impressions, CTR and Position gives information related to google organic only? or combine or google organic and google adwords? Thanks!
Reporting & Analytics | | wright3350 -
Google Analytics Data
What tools can one use to audit a site to ensure that Google Analytics is capturing all the visits that we are getting? TIA Asif
Reporting & Analytics | | prsntsnh0 -
Google Analytics Custom Filter
Hello, Quick question, when I create a custom filter on a profile that already has data collected will that filter apply to already collected data or will the filter only apply from the day it was created? Am doing a custom exclude IP filter. Much thanks,
Reporting & Analytics | | Unity
Davinia0 -
Google Analytics - Cross Domain Tracking Goals
Hi guys, looking at the best way to organize this - Site 1 - Shoe Store - (Old site with analytic history - UA-12345-1) Site 2 - Clothing Store - (Brand New UA-54321-1) Right now i have 2 separate GA Accounts for the sites. But i would like to track goals from Site 2 to Site 1. For that i need to set up cross domain tracking. So i take it i would need to create another account under Site 1 - (UA-12345-2) and put that new code on Site 2? Or do the UA numbers have to be exact? example both 12345-1? In which case, i would need to set up 2 different profiles with filtering? Main concern is i want to keep separate data for both sites, espically if UA's will be the same. Trying to visualize - UA-12345-1 Profile 1Shoes/Master Profile 2 Shoes Profile 3 Clothes Or UA-12345-1 Shoes UA-12345-2 Clothes Thanks, Mike
Reporting & Analytics | | IsHot0 -
How to Track Google Local Places in Google Analytics?
I have read many articles on how to track google local places through google analytics. Each article I have read show a different way of setting up google analytics and using tags in google local places. Wondering if anyone as up to date information on this and what would be the best practice to track data from google local lisitngs in google analytics Thanks Arthur
Reporting & Analytics | | VivaArturo0 -
Image Search Keyword Tracking With Google Analytics
Does anyone know how to track keywords for your images in Google, Yahoo, Bing (/imgres)?
Reporting & Analytics | | Melia0 -
Why does Google Analytics think PPC traffic is organic?
I have a bastard of a problem... Google Analytics is incorrectly tracking PPC traffic as SEO which is screwing up all my reporting . I don't care for rankings, I care for actual SEO traffic and I can't be sure that what i am seeing is correct which is driving me nuts. Any ideas?
Reporting & Analytics | | Red_Mud_Rookie1 -
RE: Google Analytics keywords metric and appropriate keywords
Greetings, When running Google Analytics' keyword report, I see that the over 85% of the top 100 keywords used to find us include a word in our name (Eagle's Nest Foundation and Camp -- with "eagle" or "eagle's nest" being the most frequent) or the name of one of our programs. Does this mean that most folks searching for summer camps in North Carolina already know about us and that we therefore need to optimize for broader keywords, to cast a wider net for folks who don't already know about us? Thanks, Dave
Reporting & Analytics | | DMoff0