Detection Tag - Passive, Interactive

The Passive, Interactive mode helps you to understand the bot traffic that is initiating interactive events on your web properties. This integration type focuses exclusively on events that occur after the page loads, like logging in, liking posts, playing songs, etc., and it ignores the page loads, themselves.


Tag Fields

Required Fields

  • ci: Customer ID
  • dt: Tag ID
  • mo: Tag mode. Value is always 1 for Passive, Interactive
  • pd: Product key, always acc for BotGuard for Applications

Optional Fields

  • ap: App ID
  • ck: Cookie ID
  • dv: Device ID
  • si: Site ID
  • ui: User ID
  • c1 - c10: Custom fields
  • r1 - r10: Reporting fields

Field Index

For detailed information on the full set of Detection Tag fields, refer to the Detection Tag Field Index.

Tag Example

Example JavaScript Detection tag with populated values:

<script src="
  &ap=com.example.Example <!-- in app only -->
  &dv=c3f927f4-3ef9-4b53-8887-d794c4daea82 <!-- in app only -->

Tag Context

Tag Placement

The tag should be loaded as soon as possible after the form provided via fi already exists in the page's HTML.

Server-Side Rendering

If the HTML of the page is fully rendered on the server-side, then you should place the tag should in the <head> section of the HTML, and should be loaded synchronously. The async attribute should not be used. Loading the tag as early as possible will improve the efficacy of the Detection that the tag provides.

Client-Side Rendering

If your website renders HTML on the front-end dynamically, then you should inject the tag only after the form that it will protect has already rendered in the page. The form should already exist in the webpage when you inject the Detection Tag.

Tag Size

The initial JavaScript payload is 2KB ~ 4KB, followed by the main payload that is ~40KB. Postbacks are made one to a few times, and are generally a few hundred Bytes.

JavaScript Required

For the majority of use cases, JavaScript is required for effective detection, and mitigation. Our solution assumes that visitors to your online properties have JavaScript enabled.