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 logEvent you will see the created Login Button Click function on the project dashboard pages.