` with the SDK Write key found in your project settings.
#### 3. Identify users
Call [`identify`](/data/events/identify) at the start of every session or page load to link a wallet address to a session..
```tsx
import { useFormo } from "@formo/analytics";
import { useAccount } from "wagmi";
const HomePage = () => {
const { address } = useAccount();
const analytics = useFormo();
useEffect(() => {
if (address && analytics) {
analytics.identify({ address });
}
}, [address, analytics]);
}
```
#### 4. Track events (optional)
Formo autocaptures events like page views, wallet connects, signatures, and transactions for you.
Use the [`track`](/data/events/track) function to track custom user actions specific to your app.
```tsx
import { useFormo } from '@formo/analytics';
const HomePage = () => {
const analytics = useFormo();
useEffect(() => {
// Track a custom event
analytics.track('Swap Completed', { points: 100 });
}, [analytics]);
return Welcome to the Home Page!
;
};
export default HomePage;
```