Skip to main content
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

  1. In the Custom Code block of your Invoca Tag, set:
  1. 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.
For example, if you have a “Contact Us” widget containing a phone number that loads dynamically, trigger Invoca.PNAPI.run() once that widget is shown.

Where to go next

Last modified on September 21, 2026