BilyProvider Setup
TheBilyProvider component initializes Bily tracking in your React application and makes the tracking client available to all child components.
Installation
Basic Setup
Wrap your application with theBilyProvider:
Configuration Options
TheBilyProvider accepts the following props:
Usage with Next.js
For Next.js applications, wrap your_app.js or _app.tsx:
Multiple Providers
You can nest providers for different configurations:Best Practices
- Place the provider at the highest level possible
- Use environment variables for tracking IDs
- Enable verbose mode during development
- Ensure all tracked components are within the provider
Next Steps
- Learn about Using Hooks
- See Component Examples
- Explore Advanced Configuration