Learn how to disable tracking in Oppla tours
import { createTour, TourManager } from '@oppla-ai/tours'; // Create tour manager const manager = new TourManager(); // Configure to disable tracking manager.configure({ tracking: { enabled: false } });
// 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 } });
// 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' } });
// 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 } } ] });
Was this page helpful?