Instructions
IMPORTANT: To enable accurate attribution, install Formo on both your website (example.com) and your app (app.example.com) using the same project/SDK write key.
- Website
- React
- Next.js app router
- Next.js pages router
1. Install the Formo SDK
Install this script in the<head>
tag of your website. Replace <YOUR_WRITE_KEY>
with the SDK Write key found in your project settings:identify
at the start of every session or page load links wallets to user sessions.To improve security, enable Subresource Integrity (SRI).2. Track events (optional)
Formo autocaptures events like page views, wallet connects, signatures, and transactions for you.For everything else, use thetrack
function to track custom user actions specific to your app.