Enable SPA support by disabling autoRun and manually triggering Invoca.PNAPI.run() whenever your dynamic content loads.Invoca supports single page apps built with technologies like AngularJS or React, where content loads dynamically as a visitor interacts with the page. This lets Invoca detect when a number to replace is loaded or brought into view, and dynamically swap it for one of your Invoca numbers. Before you begin: To deploy the Invoca Tag on your landing page for the first time, see Deploying the Invoca Tag.
Enabling SPA support
- In the Custom Code block of your Invoca Tag, set:
- Trigger the
Invoca.PNAPI.run()function once your dynamic content loads. This is typically done through a load event listener or a library render callback in your JavaScript.
Invoca.PNAPI.run() once that widget is shown.