A single-page application (SPA) is a Web application that loads a single HTML page and dynamically updates that page as the site visitor interacts with the application. SPAs use AJAX and HTML5 to create fluid and responsive Web applications without the constant page reloads found in traditional Web applications.
Integrating a Single-Page Application Site with Monetate
Many Monetate clients build their sites on SPA frameworks such as Angular and React. Depending on your site's technical requirements and development resources, Monetate offers options to implement its platform.
Three recommended implementation methods are available:
- Engine API — This implementation is server-side and uses Monetate's RESTful API.
- Hybrid — This implementation uses both the Engine API and the Monetate tag.
Single-Page Application Front-End Implementations
In addition to the main implementation methods available, SPA frameworks can also use a front-end method of implementation. In this method, the Monetate tag remains, and the Engine API is used—but from the front end.
Here are some of the pros of using an SPA front-end implementation:
- There's no need to change back-end services.
- Data is still collected with the Monetate tag, so there's no need to re-implement data collection.
Here are some of the cons of using an SPA front-end implementation: