Remix Fathom

screenshot of Remix Fathom

React Hook to use Fathom in Remix.

Overview

The remix-fathom package is a tool that exports different hooks for tracking user views and goals using Fathom analytics. It provides the useFathom and useGoal hooks to integrate Fathom into your application.

Features

  • useFathom(id, opts): This hook sets up loading and registering your tracked views each time the page changes. It requires your Fathom site ID and an optional object to configure fathom-client.
  • useGoal(code, cents): This hook returns a memoized function pre-populated with your provided code and cents. It allows tracking user goals using Fathom analytics.

Summary

The remix-fathom package is a helpful tool for integrating Fathom analytics into your application. It provides hooks that allow you to track user views and goals effortlessly. By following the installation guide, you can easily set up and start using these hooks in your project.