DX Application Performance Management

 View Only

CEM: Browser based Transaction data Filtering

By Viruvaibhav_apm posted Aug 09, 2014 11:27 PM

  

Hi,

 

I have been confronted with a requirement where customer wants the browser based transaction data using CEM where i provided the below specification for his use. So I thought to share this information to community by writing it in a blog.

 

Just to make one thing clear before we proceed, this blog is not related to browser response time but to get the user-browser statistical data.

 

To filter the transaction based on their browser usage, we need to create a template we would be matching the "User-Agent" parameter in Request Header using Regular expression. To elaborate this point, let us say if we want to know how many users are accessing my application using IE, Firefox and Chrome browser, we will be creating three business transactions for each of the browser for the SignOn page. ( the page which comes after signing in ).
So let us say my application's URL is https://communities.ca.com and after logIn the path is /US/Home.do ; So we will be creating a template for each of the browser with parameters matching the URL, path, (port) etc and the most important is the User-Agent.



User-Agent is the part of the request header which contains the user-browser information. Though it contains various information like OS etc, the key thing is to capture the string - "Trident" for IE, "Chrome" for chrome and "Firefox" for Mozilla.
Below is the e.g. of a user-agent data for IE - Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko

 

So to match the particular keyword Trident in it, use - "([^\|:]*)(?=Trident)([^\|:]*)" regular expression against user-agent form field. Replace Trident with keyword "Chrome" for chrome browser and "Firefox" for Mozilla browser.

This additional parameter along with URL and path will filter the transaction according to the browser the end-user is using.

 

Hope this helps you in some or the other way. You may also use this regular expression to match different parameters according to your requirement like browser version, system-bit etc.

 

Thanks,
Vaibhav

2 comments
1 view