cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
4101members
1384posts
InvocaKnowledge
Community Manager
Community Manager

Question Variations

I can see the tag loaded on the website by typing "Invoca" in Console, but when typing "Invoca.PNAPI.run()" in Console, it throws this error. 

Applies To

Invoca Tag, Number Swap

Answer

In order for the Invoca tag to run successfully, there will be two js files that need to be loaded on the website:
  • invoca-latest.min.js (or pnapi_intergration-latest.min.js) It is a library file for all customers.
  • tag-live.js:  This file contains a customer's tag configured within the network that's required to ha
The invoca-latest.min.js file will be loaded by the tag snippet you added in the source file or via tag managers. However, if there are any errors within the tag-live.js file or if this file is missed during the deployment, It fails to be loaded on the website and could throw an error stating, "Could not run because settings not initialized." This means that your tag configuration has not been set up correctly.

When this error occurs in the Console, you can verify the Invoca tag files under the "Source" tab in the Devtool and check if two files are added.  


1. If tag-live.js is missing, please review how the tag is deployed, see if there is any error in your tag configuration and ensure these files are loaded for the tag functionality.

2. Ensure the tag code snippet is correctly copied from your network and added to your website. If any part of the code snippet is missing, it can fail to load the necessary files.  

3. When you implement the code Invoca.PNAPI.run() to run the tag on your end, there could be a potential race condition issue. If Invoca.PNAPI.run() is called before the two necessary files are successfully loaded on the website, it will throw an error since the settings for the tag have not been completed yet. When running the tag with this method, please ensure that it is called only after both files are fully loaded on the website.
Need more help?

Don't see what you are looking for? You can ask the Community or contact support.