how to remove fbclid, glid and msclkid from Google analytics

What Is MSCLKID, FBCLID, Or GCLID In Google Analytics?

Have you ever seen MSCLKID, FBCLID, or GCLID  as a traffic source or medium in your Google Analytics before?

Do not panic. It is not an error.

In this post, you’ll understand what MSCLKID, FBCLID, or GCLID  mean and how to get rid of them in Google Analytics.

What does MSCLKID Mean?

Simply put, MSCLKID means Microsoft Click ID. It shows up in your Google Analytics report when you receive a visit via a Microsoft ad.

For MSCLKID to be active, an advertiser would have to enable it.

What does FBCLID Mean?

FBCLID means Facebook Click Identifiers. It is a tracking parameter that is automatically added to any outbound link from Facebook.

In the case of FBCLID, it tracks links in organic posts, not Facebook ads unlike MSCLKID.

For Facebook ads, you can simply build UTM parameters to track your campaign. This is one good attribute of a successful online ad.

What does GCLID Mean?

GLCID means Google Click ID. It is a parameter appended to a url being clicked from a Google Ad.

It is important to mention that GCLID tracks so many parameters that a regular UTM would not. However, the downside of GCLID is that it cannot be interpreted by any other reporting tool apart from Google Analytics.

No other 3rd party software can track the report conveyed in the GCLID.

Read More: How to do Keyword Research on Google

The Problem With MSCLKID, FBCLID, and GCLID 

MSCLKID, FBCLID, and GCLID are all cick identifiers for respective platforms as explained above.

The problem with these click identifiers is that they create so many paths on one single page of your website in Google Analytics.

This makes your report complicated and it looks really untidy.

How to remove MSCLKID, FBCLID, and GCLID from Google Analytics

There are 2 ways to remove MSCLKID, FBCLID, and GCLID from your Google Analytics.

  1. View Settings
  2. Filter Settings
Load WordPress Sites in as fast as 37ms!

The first method is easy and the second method is a bit complicated. However, I’ll explain both.

If you are not so technical, I recommend sticking with the first method.

Read More: How To Reduce Bounce Rate in Google Analytics

Load WordPress Sites in as fast as 37ms!

Method 1: View Settings

Here, you’ll learn how to remove MSCLKID, FBCLID, and GCLID from your Google Analytics via view settings.

view settings in Google analytics

Go to your View Settings and add “fbclid”, “msclkid”, “gclid” into the “Exclude URL Query Parameter” section. 

how to remove fbclid, msclkid, or gclid from Google Analytics

Remember to separate each identifier with a comma. See the screenshot above.

Method 2: Filter Settings

Here, you’ll find out what you need to do to exclude the msclkid, fbclid and gclid parameters using the filter settings.

Please note that we’ll use msclkid in this instance but you can apply the same steps to filter out fbclid and gclid in your Google Analytics.

Step 1:

  • Go to the admin panel (at the bottom left corner of your account.)
  • Click on All Filters to add a new filter
  • Name Filter using the Filter Name field
  • Next, Change the filter type to Custom
  • Now, select the Search and Replace option
  • Choose “Request URL” in the Filter Field
  • Enter the following expression within the Search String:

(((msclkid)(=[^&#]*))+)

  • Leave the “Replace String” field empty.
  • Finally, Save changes.

Keynotes:

*Repeat the same procedure to remove MSCLKID and GCLID.

*This Filter will help you clean up your data and get rid of the msclkid, fcblid, and gclid parameters and a couple of others that mess up your analytics.

Step 2:

  • Create another Filter and name it “tidy filter”. Use the steps above to create another filter.

*As soon as you create this Filter, you need to set up a so-called “tidy” filter. This filter will help to exclude the “?” or “&.”.

  • Enter the following expression within the Search String field:

([?&]$)

  • Leave the Replace String field empty.

*Ensure that your “tidy” Filter ranks below all your query filters.

*Remember that you can also remove all unnecessary URL queries by simply applying one Filter.

Step 3:

  • Create another Search and Replace Filter (same procedure as before)
  • Enter the following expression within the Search String field:

\?.*

This Filter will help you remove everything that comes after the first “?” in the page path.

Conclusion

By now, you should have found a way to get rid of MSCLKID, FBCLID, or GCLID in your Google Analytics.

It is important to clean up your Google Analytics report by filtering these parameters out.

Remember that there are two methods to do this as explained above.

I recommend that you stick with the “view settings” method to remove MSCLKID, FBCLID, or GCLID from Google Analytics.

If you still cannot fix it, drop your comments here or contact me for help.

Leave a Comment

Your email address will not be published.