Adobe Launch is the recommended way to implement Analytics, Target, and Audience Manager within Single Page Applications (SPAs).
The Single-Page Application (SPA) Editor feature was introduced with AEM 6.4 and is currently a release candidate. The SPA Editor will be available in 6.4 SP2.
The SPA Editor is the recommended solution for projects that require SPA framework based client-side rendering (e.g. React).
To understand how to integrate your SPA with Adobe Launch, please see this knowledge base article and tutorial, which will guide you through the Launch setup as well as implement the Experience Cloud in built with Angular or React.
The referenced KB was created to enable Launch integration with SPAs that don't leverage the AEM SPA Editor. These methods should also allow the Launch integration to coexist with SPAs that are built to use the SPA Editor.