: How do I filter traffic from IE7 in Google Analytics? I would like to filter all traffic from IE7 to our website in Google Analytics. Because of some back-end controls we use for a desktop
I would like to filter all traffic from IE7 to our website in Google Analytics.
Because of some back-end controls we use for a desktop app, we have an unusually large amount from that browser, even though the technology has been deprecated. This is obviously skewing the data with "fake" traffic.
In GA, I get stuck on "Filter Pattern" as per screenshot.
What do I do from here?
More posts by @Samaraweera270
1 Comments
Sorted by latest first Latest Oldest Best
An example IE 7 user agent string is (source):
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3)
You need to do is filter on the MSIE 7 against the user agent.
Unfortunately, Google Analytics does not allow you to filter by user agent by default. Google Analytics breaks the user agent down into browser name and browser version. However, you cannot create a filter based on two fields.
You will need to pass user agent into Google Analytics as a custom variable. This site has instructions for doing so:
Create a custom dimension in Google Analytics named "User Agent" (note its index)
Use Google Tag Manager to create the custom variable on your site as JavaScript Variable and navigator.userAgent. Then put that into a custom dimension of GA using the index you noted earlier and {{User Agent}} If you are not using GTM, you can modify your GA snippet with some JS as shown here:
ga('send', '', {
'dimension1': navigator.userAgent
});
You will need to change the number after "dimension" to match the index you noted earlier.
Wait a couple days for some data to populate before trying to create your filter so that you can test it.
Google has an example of creating a filter for IP addresses here. Based on that example the filters are regular expressions that can match a portion of the field. (You shouldn't have to use .* at the beginning and end of the regular expression to ensure that it matches the entire field.)
So you should just be able to make your filter pattern:
MSIE 7
If you ever wanted to expand that to other IE versions you could do so with something like:
MSIE [5678]
or
MSIE (7|8|9|10)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.