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.
A high-level overview of the implementation tasks:
Define configuration variables within AppMeasurement.js. When the Analytics object is instantiated, these variables make sure that data collection settings are correct.
code language-javascript
// 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 tracking server
s.trackingServer = "example.data.adobedc.net";