Skip to main content

Validation

checkIntegrationIdMatch(integration) ⇒ Promise.<(boolean|undefined)>

Compares the current Pendo visitor ID against the current user ID for the given integration and logs the result to the console.

Returns: Promise.<(boolean|undefined)> - true if the IDs match, false if they don't, or undefined if the match couldn't be confirmed

ParamTypeDescription
integrationstringname of the integration to check against (currently only 'intercom' is supported)

Example

pendo.checkIntegrationIdMatch('intercom')

validateBuiltInGlobals([skipLogging]) ⇒ Array

Checks global variables in the current frame related to iframes and events.

Returns: Array - results from globals validation

ParamTypeDescription
[skipLogging]booleandoes not log output to console if true, returning an array instead

Example

pendo.validateBuiltInGlobals()

validateEnvironment([skipLogging])

Runs all Pendo validation checks and logs output to the console. Checks: install metadata, overwritten native JavaScript or global variables, URL customizations, configuration, and error history.

ParamTypeDescription
[skipLogging]booleandoes not log output to console if true, returning the environment object instead

Example

pendo.validateEnvironment()

validateInstall([skipLogging]) ⇒ Array

Checks visitor and account metadata in the current Pendo installation. Either logs to the console or returns an array with the results of validation.

Returns: Array - results from install validation

ParamTypeDescription
[skipLogging]booleandoes not log output to console if true, returning an array instead

Example

pendo.validateInstall()

validateNativeMethods([skipLogging]) ⇒ Array

Checks if any native JavaScript methods have been overwritten in the current window context.

Returns: Array - results from native methods validation

ParamTypeDescription
[skipLogging]booleandoes not log output to console if true, returning an array instead

Example

pendo.validateNativeMethods()

validateUrl([skipLogging]) ⇒ Array

Checks the current URL of the browser for strings customized or sanitized by the application.

Returns: Array - results from url validation

ParamTypeDescription
[skipLogging]booleandoes not log output to console if true, returning an array instead

Example

pendo.validateUrl()