Within the Adobe Analytics tool, under Code Configuration, I have it set to "Custom" and the option for "Set reporting suites using custom code below" is checked. Then I have the code hosted within DTM and am loading the latest version of AppMeasurement v.1.6.1.
At the top of the code block within "Code Configuration" I have the following code prior to loading the plugins and the AppMeasurement library:
var s = new AppMeasurement();
Then, within "Customize Page Code", I have the following:
When I fire an event-based rule, this function that sets the reporting suite is not being called and I get an error within the console "SATELLITE: Adobe Analytics: tracker not initialized because account was not found" and "SATELLITE: Adobe Analytics: page code not loaded".
The problem is with the s.sa() function you are using. It is not recommended to initialize a report suite using s.sa() function.The s.sa() function only lets you dynamically change a report suite at any time on the page, before or after an image request fires.
Hence please use the following code to in "customize page code" to properly initialize the report suite id to be used for Page Load Rules and Event Based rules.
var r_suite = _satellite.getDataElement('reportingSuite') ; s_account=r_suite; s.account=s_account;