Implement Adobe Analytics with AppMeasurement for JavaScript

AppMeasurement for JavaScript has historically been a common method to implement Adobe Analytics. However, with increasing popularity of Tag Management Systems, using tags in Adobe Experience Platform is recommended.

Overall workflow sending data to Adobe using JavaScript

  1. Load the AppMeasurement.js file. This file contains the libraries required to send data to Adobe.

    <script src="AppMeasurement.js"></script>
  2. Define configuration variables within AppMeasurement.js. When the Analytics object is instantiated, these variables make sure data collection settings are correct. See Configuration variables for a full list of variables you can define.

    // Instantiate the Analytics tracking object with report suite ID
    var s_account = "examplersid";
    var s=s_gi(s_account);
    // Make sure data is sent to the correct location
    s.trackingServer = "";
  3. Define page-level variables within your site’s page code. These variables determine specific dimension and metrics sent to Adobe. See Page variables for a full list of variables you can define.

    s.pageName = "Example page";
    s.eVar1 = "Example eVar"; = "event1";
  4. When all page-level variables are defined, send the data to Adobe using the t() method. See t for more information.


On this page