Skip to main content
Block the Invoca Tag from running for specific IP addresses using custom code that checks a visitor’s IP against a block list before autoRun fires.
The Invoca Tag doesn’t have built-in support for capturing a visitor’s IP address as marketing data attribution. To block the tag from running for specific IP addresses, you’ll need to provide:
  • A data source: a global variable, cookie, or session storage — whichever method you use to store and share the visitor’s IP address with the Tag.
  • A list of blocked IP addresses: the IPs for which the Invoca Tag shouldn’t run.
Using this information, custom code in the Tag can read the IP address from your specified data source, check whether it’s on your blocked list, and prevent the Tag from running if it matches.

Where to go next

Last modified on September 21, 2026