- Load the AppMeasurement.js file. This file contains the libraries required to send data to Adobe.
- 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 = "example.omtrdc.net";
- 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"; s.events = "event1";
- When all page-level variables are defined, send the data to Adobe using the t() method. See t for more information.