Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Appd tocbox

On this page:

Table of Contents

Related pages:


  1. From the User Experience App Integration page, click the JavaScript Agent Injection tab.
  2. In the JavaScript Agent Injection tab, select a browser application from the Inject the JavaScript Agent configured for this Browser App dropdown.

Create JavaScript Injection Rules

  1. From the Configure JavaScript Injection tab, expand Create Injection Rules.
  2. Click the + icon to open the Create Manual Injection Rule dialog.
  3. From the Where to Inject JavaScript tab:
    1.  In the Name field, enter a name for the rule. 
    2. Check Enable.
    3. In the Class and Method to intercept section, define match conditions for the class and method that write to the output stream in your application. This is the class that server-side agent intercepts for injection.
    4. If the write method is overloaded:
      1. Check the Is this Method Overloaded? check box.

      2. Click Add Parameter.
      3. Add the parameters that define the method.
    5. In the Pointer to the writer section: 
      1. Select how to obtain a reference to the writer object using either the selected method with a configured number of parameters, return value, or invoked object.
      2. Specify a getter chain
    6. In the Injection options section, specify:
      • the output stream write method the server-side agent should use to inject the JavaScript agent
      • when the injection should occur:  when the method begins or when the method ends
      • which part of the script should be injected: the header or the footer
      • optional prefix to output before writing the header or footer, such as <DOCTYPE. . . >
  4. Select the Inject for these Business Transactions tab.
  5. Choose either All Business Transactions or These Business Transactions.
  6. If you chose These Business Transactions, select the desired business transactions and click Add.
  7. Click Create Injection Rule.
  8. Check the Request Attribute Injection check box.
  9. Click Save.

Copy Code Snippets into Your Page Template