DxC provides a snippet that needs to be present in the monitored application web pages.
The snippet will look like this
<script type=text/javascript id=ca_eum_ba src=http://lewda16-rhel72dxc:8080/api/1/urn:ca:tenantId:default-tenant/urn:ca:appId:default-app/bajs?agent=browser data-profileUrl=http://lewda16-rhel72dxc:8080/api/1/urn:ca:tenantId:default-tenant/urn:ca:appId:default-app/profile?agent=browser data-tenantID=default-tenant data-appID=default-app data-appKey=b0361800-4736-11e6-b8e5-bddc75280658></script>
This snippet will either be added to pages using automatic JavaScript injection if the agent is configured to do so, and the page content is suitable for it.
Else it would need to be added manually to pages that you would want to monitor.
In my application where automatic JavaScript insertion is working, when I look at the page source, I can see the snippet information added
As a basic test, you can see there are two URLs in the snippet:
http://lewda16-rhel72dxc:8080/api/1/urn:ca:tenantId:default-tenant/urn:ca:appId:default-app/bajs?agent=browser
http://lewda16-rhel72dxc:8080/api/1/urn:ca:tenantId:default-tenant/urn:ca:appId:default-app/profile?agent=browser
The second downloads the monitoring configuration profile and would look like this:
{ "profileId":1, "profileName":"BAProfile1", "created":345185400, "lastUpdated":345185400, "baAttributes":{ "browserAgentEnabled" : true, "pageLoadMetricsEnabled" : true, "pageLoadMetricsThreshold" : 100, "ajaxMetricsEnabled" : true, "ajaxMetricsThreshold" : 100, "jsFunctionMetricsEnabled" : false, "jsFunctionMetricsThreshold" : 100, "domChangeTimeout" : 10000, "domChangePollingInterval" : 100, "jsErrorsEnabled" : true, "geoEnabled" : false, "geoHighAccuracyEnabled" : false, "geoMaximumAge" : 10000, "geoTimeout" : 5000, "urlExcludeList" : [], "urlIncludeList" : [], "urlMetricOff" : false, "metricFrequency" : 3750, "browserLoggingEnabled" : false, "sessionTimeout" : 3600000, "collectorUrl": "http://lewda16-rhel72dxc:8080/api/1/urn:ca:tenantId:default-tenant/urn:ca:appId:default-app/browserMetrics" } }
The first URL downloads too much information to paste here.
The host and port will be different for your deployment. Access these URLs with the browser you are accessing the application and check what gets loaded. You should see json content in the browser.
If there is any error when accessing these URLs, the DxC is not configured correctly.
You can also review the network configuration of the browser to see if bajs?agent=browser and profile?agent=browser operations are returning any particular HTTP 500 error.
When data is actually sent to DxC there will be a POST operation called browserMetrics with HTTP response 200
If it seems like automatic insertion is not working, you have to review the page source to see if there is any <head> tag at the beginning of the page, we search for this to know where the snippet can be inserted.