02-06-2018 08:28 PM - edited 08-03-2022 01:08 PM
Overview
To get started with Invoca on your landing page, see How to configure and deploy your Invoca Tag with the Invoca Tag Wizard.
Invoca supports single page apps built with technologies like AngularJS or React, where content is dynamically loaded as the user interacts with the content. This means Invoca can detect when a number to replace is loaded/brought into view, and then dynamically switch it out for one of our own numbers.
In order to take advantage of this feature you will need to set autoRun to false in the Custom Code block:
options.autoRun = false
And then trigger the Invoca.PNAPI.run() function. This is typically done via some load event listener or library render callback in your Javascript. For example, you might have a 'Contact Us' widget that contains the number, but the content is loaded dynamically, so once that widget is shown you would trigger Invoca.PNAPI.run().