How To Remove Ugly URL Parameters from Google Analytics Reports

by Russ Henneberry

Last updated on February 19th, 2018

Is Google Analytics cluttering up your reports with 100’s or thousands of unique pages that don’t really exist?

The problem is created by ugly URL’s.  You know what I mean when I say ugly URL’s?

Here’s an ugly one:

What makes it ugly is the ?txn=222050&tl=30

These are parameters that are appended to the URL of a very important page on the Crazy Egg website — the Welcome Page.

The Welcome Page is where visitors land when they open an account and start the free trial of the Crazy Egg software.  Our goal is to increase the number of visitors that see this page because it means we have increased the number of people that are taking a trial of the software.

The trouble is that Google Analytics doesn’t see the Welcome Page as one page.  No sir.  In fact, every time a site visitor lands on our Welcome Page Google Analytics logs it as a new page.

How Google Analytics Logs a Pageview

Google Analytics strips away the domain (in this case and looks at the remaining portions of the URL string to determine a unique page.

As a result, dynamic URL parameters create a unique page in the eyes of Google Analytics each and every time.

For example,

is not the same as

Because the txn and tl parameter are different, these URL’s will be logged as unique pages.  As a result our Google Analytics reports are cluttered with thousands of unique pageviews that don’t really exist and provide no value to our business.

NOTE:  It’s possible that your URL parameters do provide insightful information to you.   If, for example, one of your URL parameters contains product numbers, pricing or discount codes you may want Google Analytics to log these as unique pageviews.

How To Remove Those Pesky URL Parameters From Your Reports

You can get them cleaned up by adjusting the settings in your Google Analytics profile settings.

Here’s just a sliver of our Goal URL’s report in our main Google Analytics profile,

no profile filter

Notice how each conversion creates a new URL in this profile.

But you might want to see a set of reports where these ugly URL parameters are removed.

You may want to set up a new Google Analytics profile.  You’ll want to do this if you are afraid of messing up the data you already have in Google Analytics or if you want to have one set of reports that contains URL parameters and another that doesn’t.

In the Profile Settings of your new or existing Google Analytics profile add a comma separated list of the URL parameters you want Google Analytics to ignore.

From my example the URL parameters are:

txn, tl

profile settings

Save your changes and wait for some data to pour into your new or newly updated profile.

Here’s what we see when we look at the Goal URL’s report with the URL parameters removed from the profile,

with filter

Pretty neat, eh?

Don’t forget that Google Analytics does not reprocess data.  In other words, you won’t be able to remove parameters from previous data — only data going forward will have your URL parameters removed.



Get updates on new articles, webinars and other opportunities:

Russ Henneberry

Russ Henneberry is the Editorial Director at Digital Marketer. He's worked on digital marketing projects for companies like CrazyEgg, and Network Solutions. You can connect with Russ on Twitter, LinkedIn, Google+ or on his blog.


Comment Policy

Please join the conversation! We like long and thoughtful communication.
Abrupt comments and gibberish will not be approved. Please, only use your real name, not your business name or keywords. We rarely allow links in your comment.
Finally, please use your favorite personal social media profile for the website field.


Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Pratik N Borkar says:
    May 16, 2017 at 1:59 pm

    Is this possible to block particular url such as ” html” or ”php” from Analytics ?

  2. Vivek says:
    March 20, 2015 at 2:37 am

    I need to get rid/remove the password details that is captured by google analytics.

    Please suggest me.

    • Kathryn Aragon says:
      March 20, 2015 at 8:48 am

      Vivek, try deleting your cookies.

  3. Sam says:
    February 26, 2015 at 6:43 am

    Hey Ross,

    I just implemented this but the ignored parameters are still showing when I ran a post change test.

    Any idea why?


    P.S. I double checked I had the right profile! Could there be a time delay and I need to be more patient?

  4. Sangho says:
    January 7, 2014 at 5:21 am

    Just wondering, we use parameters for personalized links from email campaigns, which we also tag with the standard utm codes. It turns out that the combination of these parameters is preventing the stripping to do its work. Did you run into this issue too? What could be a solution?

  5. Holt says:
    June 17, 2013 at 12:00 pm

    Thanks for the help, I was trying to figure out how to get rid of those pesky parameters.

  6. Ramki@digitalmarketinganalytics says:
    April 1, 2013 at 1:24 am

    This option is very much useful for ecommerce & big portals that has high engagement & traffic

Show Me My Heatmap

literally addicted to the stuff I'm seeing in @CrazyEgg. Such a fantastic piece of software! #Marketing #Content #Digital

Chris Vella-Bone


What makes people leave your website?