1.1.11 • Published 11 months ago
audit-it v1.1.11
Features
Features
- Easy Installation: Get started quickly with npm install audit-it.
- Flexible Configuration: Customize tracking for specific pages using a simple configuration file.
- Centralized Dashboard: Monitor and analyze user events conveniently from a centralized dashboard.
- Community Contributions: Open to contributions and improvements from the community.
Getting Started
You need to Sign in to Audit Admin Dashboard and create pages and their curresponding events to record.
- Insall on project:
npm instal audit-it
- Import and call it Dom events:
import record from "audit-it"
const MyComponent = () => {
const handleTrigger = () => {
#pass the event name
record("user_read_desc");
}
return (
<Button onClick={handleTrigger} >click</Button>
);
}
if you are not passing the event, then user will be anonymous
andpage will take up from the current pathname
- Customize the event and page:
....
# changing the page name
const handleTrigger = () => {
# passing event and page
record("user_read_desc", "home_page");
}
# passing user info
const handleTrigger = () => {
record("user_read_desc", userData?.email);
}
.....
- For more information https://crosscodeblogs.netlify.app/blog/auditit
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Acknowledgments
- Hat tip to anyone whose code was used.
- Inspiration.
- etc.