Browser Agent Release Notes

CA Experience Collector consists of the Browser Agent and CA Digital Experience Collector components. The Browser Agent monitors the web application performance in the browsers and provides visibility into the end-user experience. The Browser Agent posts the collected end-user monitoring data to Digital Experience Collector.
caaxa173
CA Experience Collector consists of the Browser Agent and CA Digital Experience Collector components. The Browser Agent monitors the web application performance in the browsers and provides visibility into the end-user experience. The Browser Agent posts the collected end-user monitoring data to Digital Experience Collector.
This section provides the list of new features or enhancements for Digital Experience Collector or Browser Agent that impact.
 
 
Single Script Tag for Browser Agent and Browser Agent Extensibility
Starting this release, the BA.js, BAExt.js, and profile.json files are combined into a single JavaScript file. As a result, a single script tag replaces the Browser Agent and Extensibility tags. This script tag enables the asynchronous loading of the BA.js file (by default) as shown in the sample snippet. Add this script tag to all the web pages to be monitored. The APIs in the BAExt.js are available even in the BA.js file.
<script type="text/javascript" id="ca_eum_ba" src="https://<hostname>:<port>/api/1/urn:ca:tenantId:<tenantID>/urn:ca:appId:<appID>/bajs?agent=browser" data-profileUrl="https://<hostname>:<port>/api/1/urn:ca:tenantId:<tenantID>/urn:ca:appId:<appId>/profile?agent=browser" data-tenantID="<tenantID>" data-appID="<appId>" data-appKey="<appKey>" async ></script>
Asynchronous Loading of BA.js File is Enabled by Default
Starting this release, the asynchronous loading of the BA.js file is enabled by default. The Browser Agent JavaScript file loads asynchronously while the web page is loading. When the script tag in the browser is executed, the web page does not wait for the Browser Agent file to download completely but continues to load the resources.
<script type="text/javascript" id="ca_eum_ba" src="https://<hostname>:<port>/api/1/urn:ca:tenantId:<tenantID>/urn:ca:appId:<appID>/bajs?agent=browser" data-profileUrl="https://<hostname>:<port>/api/1/urn:ca:tenantId:<tenantID>/urn:ca:appId:<appId>/profile?agent=browser" data-tenantID="<tenantID>" data-appID="<appId>" data-appKey="<appKey>" async ></script>
To disable asynchronous loading, remove the async flag from the snippet as shown in the sample snippet:
<script type="text/javascript" id="ca_eum_ba" src="https://<hostname>:<port>/api/1/urn:ca:tenantId:<tenantID>/urn:ca:appId:<appID>/bajs?agent=browser" data-profileUrl="https://<hostname>:<port>/api/1/urn:ca:tenantId:<tenantID>/urn:ca:appId:<appId>/profile?agent=browser" data-tenantID="<tenantID>" data-appID="<appId>" data-appKey="<appKey>" ></script>
 For more information about how to use this tag, see the section.
Download and Upload the BAExt.js File Using the Admin Console
You can now download the default BAExt.js (
BAExt-default.js
) file from the CA App Experience Analytics Admin Console to make any changes. You can also upload the edited or customized BAExt.js file using the Upload link.
The following image displays the options to upload and download the Extension file:
 The following image displays the options to upload and download the Extension file: 
After you upload the file:
  • The uploaded custom BAExt.js file is written to the database and is served from the Digital Experience Collector instead of you hosting it locally.
  • All the three files (BA.js, BAExt.js, and profile.json) are concatenated to generate an artifact that you can host in your local environment. To host it locally, download the complete artifact from the Admin Console. Also ensure that you modify the path to the file in the snippet.
 For more information, see the Collect Data From Your Web Application section.
Download the Artifact for App Profile Changes to Take Effect
When you host the artifact file locally, any changes that are made to the app profile in the Admin Console do not take effect immediately. You must download the artifact and host it again for the changes to take effect. Alternatively, you may contact CA Technologies (a Broadcom Company).