Hi @PrateekSi7,
On AEM Forms as a Cloud Service with Adaptive Forms Core Components, the events you’re listening for – submitSuccess, afSubmitSuccess, afFormSubmitSuccess as DOM events – are from older / different implementations and won’t fire the way they did with classic/foundation components.
For Core Components on AEMaaCS you have two supported options to trigger Adobe Analytics on successful form submission:
1. Subscribe to Adaptive Forms runtime submit events (recommended for custom JS)
Adaptive Forms Core Components expose submission events via the AF runtime (guideBridge) API, not via the older custom DOM events. You can safely hook into these to call Adobe Analytics / Launch:
// Successful submit
guideBridge.on("submitSuccess", function (event, payload) {
// Trigger Analytics here
if (window._satellite && typeof _satellite.track === "function") {
_satellite.track("af-submit-success", {
formTitle: payload?.form?.title,
formPath: payload?.form?.path,
submissionId: payload?.submissionId
});
}
});
This pattern is the supported way to detect a successful Adaptive Form submission, and Invoke your Analytics/Launch tracking logic exactly at that point. You can refer the sample code that’s included on the form page or implement equivalent logic directly in a Launch custom code rule.
2. Use Experience Cloud Setup Automation (no custom JS for basic tracking)
If your requirement is to track standard form KPIs (renders, submissions, errors, etc.) and report in Adobe Analytics, the simplest option is to let AEM do most of the wiring:
1. In Forms → Forms & Documents, select your Adaptive Form.
2. In the left rail, click Setup Analytics and Activate Adobe Analytics.
3. Follow the wizard to create or select the Analytics report suite and Launch the property.
Once this is done, AEM connects the form to Experience Platform tags (Launch) and Adobe Analytics and Standard events like Render, Submit, Error, Abandon, Help, and Field Visit are tracked automatically for Adaptive Forms (Core Components).
Form Analytics with Adobe Analytics and AEM Forms – Complete Guide: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/forms/integrate/services/integrate-aem-forms-with-adobe-analytics
Integrate AEM Forms with Adobe Analytics to report on form data fields: https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/forms/forms-and-analytics/introduction
Thanks
Pranay