Browser Metrics do not appear in Business Transaction Node in the investigator (Java/NET)

Document ID : KB000091917
Last Modified Date : 06/09/2018
Show Technical Document Details
Introduction:
Browser Metrics do not appear in Business Transaction Node in the investigator (Java/NET) - Checklist
Environment:
APM 10.5 and higher version
Instructions:

1.- Go to the CEM UI, verify that the interested page or URL matches a Business Transaction (BT) definition

2.-Verify that the agent is able to monitor the Business Transaction under : <App-hostname> | <Process> | <agent> | Business Segment | <BS> | <BT>

3.- Make sure the below properties have been configured in the IntroscopeAgent.profile:

If Java agent:
introscope.agent.browseragent.response.decoration.enabled=true=true
introscope.agent.browseragent.response.decoration.includeURLsRegex=.*
Make sure the pages you need to monitor are not being excluded by includeURLsRegex.
 
If .NET agent:
introscope.agent.browseragent.responseCookieEnabled=true

Changes to the above properties takes effect immediately

4.- Verify that the business transaction match the x-apm-brtm-response-bt-page-<page URL> (for page request) or the x-apm-brtm-response-bt-<uniqueID> cookie (for AJAX request).

In your browser press F12, go to the “Network tab”, open the page you would like to inspect, then click  “Cookies” tabs.
Verify that x-apm-brtm-response-bt-page-<you-app-url> is present
 
In case of Java:

 
In case of .NET:

 
If you can't find the cookie, then problem is in inserting the cookie, make sure Cookies are enabled in the browser, see Browser Agent Prerequisites:
https://docops.ca.com/ca-experience-collector/en/browser-agent/implement-the-browser-agent#ImplementtheBrowserAgent-VerifytheBrowserAgentPrerequisites
 
If you find the cookie, switch from the “Network” to the “Console” tab, check if the javascript can read the cookie, if you see the warning message like below, then problem is in reading the cookie:
 
a) cookie has already expired :
If Java : increase introscope.agent.browseragent.response.decoration.cookie.expirationTime=3  
If .NET: increase introscope.agent.browseragent.responseCookie.expirationTime=3
to some high number, and try again
 
b) cookie can't read because the cookie name. This requires debugging in the JavaScript side, to gather DEBUG logs
If Java : open the IntroscopeAgent.profile, set log4j.logger.IntroscopeAgent.BrowserAgent=TRACE#com.wily.util.feedback.Log4JSeverityLevel,logfile
    If .NET: open the logging.config.xml, set <level value="DEBUG">, save the IntroscopeAgent.profile so the change in the logging.config.xml is trigger immediately
    Reproduce the issue and send the information to CA Support.
 
cid:image002.jpg@01D2D967.BA50EBD0
 

5.- Check if POST requests are blocked.

After executing the Browser Agent JavaScript code, POST requests including the page timing and other performance data are sent to DxC server, make sure POST requests are not being blocked.
User-added image