v0.3.0
Adds support for new events API.
// Create an event.
import { useTrackEvent } from "@tjh-dev/fathom";
const event = useTrackEvent("event name");
// Track an event.
<button onclick={() => { event({ _value: 450 }); }}>Track Me!</button>Adds support for new events API.
// Create an event.
import { useTrackEvent } from "@tjh-dev/fathom";
const event = useTrackEvent("event name");
// Track an event.
<button onclick={() => { event({ _value: 450 }); }}>Track Me!</button>