Basic usage
Logging example
You can easily create log by calling logEvent function.
const { logEvent } = useBrowserLamion({ ... });
logEvent("Login button click");
Calling logEvent will record log event for function with name specified in arguments (e.g. 'Login button click').
If function didn't already exists, it will be created.
Usage sample
<button id="btnLogin">Login</button>
const { logEvent } = useBrowserLamion({ ... });
document.getElementById("btnLogin").addEventListener("click", () => {
logEvent("Login button click");
});
After calling
logEventyou will see the createdLogin Button Clickfunction on the project dashboard pages.
