Microsoft clarity support
The Clarity Support plugin adds integration for Microsoft Clarity to Flutter applications. Microsoft Clarity is a powerful analytics tool that provides insights into user behavior on your app.
This plugin enables developers to seamlessly integrate Microsoft Clarity into their Flutter applications, allowing for advanced user tracking and behavior analytics.
To use the Clarity Support plugin, add it to your pubspec.yaml
file:
dependencies:
clarity_support: ^0.0.2
Then, run 'flutter pub get' to install the package.
Import the plugin in your Dart file:
import 'package:clarity_support/clarity_support.dart';
No additional setup required for Android.
NOT SUPPORTED
Here's a simple example to get you started:
import 'package:flutter/material.dart';
import 'package:clarity_support/clarity_support.dart';
void main() {
ClaritySupport.initialize('YOUR_CLARITY_PROJECT_ID');
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('Clarity Support Example')),
body: Center(child: Text('Hello, Clarity!')),
),
);
}
}
ClaritySupport.trackEvent('button_click', {
'button_name': 'start_button',
'timestamp': DateTime.now().toString(),
});
For more usage examples, check out the examples directory in the GitHub repository.
To customize the behavior of the Clarity Support plugin, you can configure additional settings:
ClaritySupport.configure({
'enableDebugMode': true,
'trackUserSessions': true,
});
- Follow Dart and Flutter best practices when integrating the plugin into your app.
We welcome contributions! Please read our contribution guidelines before submitting a pull request.
Coding Guidelines
Report issues on our GitHub Issues page.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to expand further based on more specific details about the plugin and its features.