> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oppla.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Disable Tracking

> Learn how to disable tracking in Oppla tours

# Disable Tracking

Learn how to disable tracking in your tours for development or testing purposes.

## Basic Usage

### Disable Tracking Globally

```javascript theme={null}
import { createTour, TourManager } from '@oppla-ai/tours';

// Create tour manager
const manager = new TourManager();

// Configure to disable tracking
manager.configure({
  tracking: {
    enabled: false
  }
});
```

### Disable Tracking for Specific Tour

```javascript theme={null}
// Create a tour with tracking disabled
const tour = createTour({
  id: 'feature-tour',
  steps: [
    {
      type: 'tooltip',
      target: '#feature-button',
      content: 'Try our new feature!'
    }
  ],
  tracking: {
    enabled: false
  }
});
```

## Advanced Features

### Conditional Tracking

```javascript theme={null}
// Create a tour with conditional tracking
const tour = createTour({
  id: 'feature-tour',
  steps: [
    {
      type: 'tooltip',
      target: '#feature-button',
      content: 'Try our new feature!'
    }
  ],
  tracking: {
    enabled: process.env.NODE_ENV === 'production'
  }
});
```

### Selective Tracking

```javascript theme={null}
// Create a tour with selective tracking
const tour = createTour({
  id: 'feature-tour',
  steps: [
    {
      type: 'tooltip',
      target: '#feature-button',
      content: 'Try our new feature!',
      tracking: {
        enabled: false
      }
    },
    {
      type: 'modal',
      content: 'Welcome to our app!',
      tracking: {
        enabled: true
      }
    }
  ]
});
```

## Best Practices

1. **Be Consistent**: Use consistent tracking settings
2. **Be Clear**: Document tracking configuration
3. **Be Secure**: Protect sensitive data
4. **Be Efficient**: Only track necessary events

## Common Issues

### Tracking Not Disabled

* Check configuration
* Verify environment
* Check for overrides
* Ensure proper initialization

### Data Privacy

* Review tracked data
* Check for sensitive information
* Verify compliance
* Monitor data usage

## Next Steps

<CardGroup cols={2}>
  <Card title="Tooltips" icon="comment" href="/tours/tooltip">
    Learn about tooltip steps
  </Card>

  <Card title="Modals" icon="window-maximize" href="/tours/modal">
    Learn about modal steps
  </Card>
</CardGroup>
