Welcome

Welcome to Josh Baker's Practical Advice for Optimizing Your Internet Marketing blog. Here you will find internet marketing optimization and online strategy articles full of tips, tricks, discussions, and thoughts to help you take your marketing and business to the next level of success.
Sep
09

Google Analytics Filter: Force URI Case to Lowercase

By

Prevent Duplicate Line Items in Google Analytics Due to Mixed Case URLs with the Force Lowercase Google Analytics Filter

Google Analytics by default captures data just as it appears in a visitors browser. This being so, you can have two or more URLs that are the same but appear as separate entries due to different cases in the URLs, both lowercase and uppercase.

For Example:

  • /coffee/flavorA/index.html
  • /coffee/flavorA/INDEX.HTML

Although both will take you to the same page if you were to put them into your browser, Google Analytics will create separate line entries for each one leaving you to have to merge the two to get to the complete data for that URL. Imagine the pain if you had 100s, 1000s or more pages on your website with multiple line entries for the same URL.

However, Google Analytics allows you to apply a Custom Filter to remedy this problem. You can associate this filter on a profile by profile basis in case you have certain profiles that you do not want this applied to. One thing worth noting is that this won’t “fix” past data already in your reports, but anything going forward it will put into one line entry (either lowercase or uppercase depending on how you setup the Custom Filter.

Here are the easy steps to create the custom filter that will force the Request URI to lowercase or uppercase:

  1. Add a new filter to your profile and use the following values:
  2. Filter Name: Name Your Filter
  3. Filter Type: Custom filter
  4. Select “Lowercase” (or “Uppercase” if you want to force the URLs to Uppercase)
  5. Filter Field: Request URI
  6. Select which websites you want to apply the filter too and select Add
  7. Save Changes

Here is a screenshot of how it will look:

google_analytics_advanced_filter_convert_to_lowercase

Share
Categories : Analytics

1 Comments

1

Hello, grate tutorial Josh.
But, i have a question, now that i already did the URI Filter… how can i merge my previous /LowerCase/UperCase/Pages to merge the collected data (traffic, visits, bounces, etc) to my lowercase ones ?

Leave a Comment