For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceChangelog
ReferenceChangelog
  • Browser API
    • wf.ready()
  • Consent Management
    • Get consent status
    • Allow user tracking
    • Deny user tracking
  • Optimize
    • Quickstart
    • Variations
    • Custom attributes
  • Custom Goals
    • On-site conversions
    • Off-site conversions
  • Data Exports
    • Data destinations
    • Data schema
  • Additional Resources
    • Support Documentation
LogoLogo
Resources
Get started
On this page
  • wf.denyUserTracking(options)
  • Syntax
  • Parameters
  • Returns
  • Example
Consent Management

Deny user tracking

Was this page helpful?
Previous

Optimize methods in the Browser API

Next
Built with

wf.denyUserTracking(options)

Disables user tracking for the current user.

Syntax

1wf.denyUserTracking(options?: { reload?: boolean }): void

Parameters

  • options?: object - Controls deactivation behavior. Optional.
    • reload?: boolean - Reloads the page after disabling tracking. Default: false

Returns

This method doesn’t return a value to the caller.

Example

1// Ensure Browser APIs are ready before calling
2wf.ready(() => {
3 // Disable user tracking and reload the page
4 wf.denyUserTracking({ reload: true });
5});