202.577.3350 will@willmarlow.com

Google Analytics has improved tremendously over the last few years in terms of reducing our need to customize the javascript, and to do other things that require technical expertise.  Unfortunately, you still need to get fancy with RegEx occasionally, which I consider to be more of a technical area, and less of an analytical or creative area.  And so I want to share a blog post to help you use RegEx to do one of the most commonly requested tasks, which is to isolate a subdomain.

For instance, you might want to do analysis on your blog, and so you need to isolate a subdomain such as blog.yourwebsite.com, or you might want to create a special Google Analytics remarketing list that only hits visitors of a certain subdomain, such as “training.yoursite.com.”  Either of these scenarios can be accomplished with RegEx, and I wanted to provide a blog post here that gives you an example that you can apply to your own account.

So, here goes:

Isolate a subdomain such as “blog” on a website like “blog.yourwebsite.com”:

  • Include Filter
  • Filter Field: Hostname
  • Filter Pattern: ^blog\.yourwebsite\.com$ 

And this is what it looks like:

RegEx Isolating Subdomain Google Analytics

Will Marlow is a search engine marketing consultant who loves helping high growth companies optimize and improve their PPC results: and he holds seven certifications: Google AdWords Search, Display, Mobile, Shopping, and Video Certification, Google Analytics Certification, as well as certification as a Bing Ads Accredited Professional.

<img class=”size-full wp-image-1977 alignleft” style=”border: 2px solid black;” src=”http://willmarlow.com/wp-content/uploads/2013/11/Screen-Shot-2013-11-17-at-5.04.03-PM.png” alt=”Marketing Certification Badges” width=”538″ height=”88″ />

&nbsp;

&nbsp;

Protecting SEO

Maintain SEO Through Website Redesign [Free SEO Tutorial]
Get Tutorial Now

Advanced Training

We created Will Marlow Training to train staff and clients.

Get Training