AvniFlow Analytics Documentation

AvniFlow Analytics is a comprehensive analytics platform for Web3 teams. Track wallet connections, user journeys, and DeFi engagement in real time.

🎬 Demo Preview

Curious what your analytics dashboard will look like?
Check out a live demo of AvniFlow Analytics results with sample data!


🚀 View Demo Dashboard

Getting Started

  1. Register Your Website:
    POST /api/v1/websites/register

    {
      "name": "My Web3 App",
      "domain": "myapp.com",
      "description": "A decentralized application",
      "owner": {
        "name": "Your Name",
        "email": "you@yourapp.com"
      }
    }
          

    Receive your API key and Website ID.

  2. Install the Widget:
    <script 
      src="https://avni.fi/widget.js"
      data-avniflow-analytics
      data-website-id="YOUR_WEBSITE_ID"
      data-api-key="YOUR_API_KEY">
    </script>
          

    Add this to your website’s <head> or via a WordPress Custom HTML block.

Tracking Events

Use the JavaScript API to track custom events:

AvniFlowAnalytics.trackWalletConnect('0x1234...', 'metamask');
AvniFlowAnalytics.trackTransaction({
  hash: '0xabcd...',
  from: '0x1234...',
  to: '0x5678...',
  value: '1000000000000000000',
  network: 'ethereum'
});
AvniFlowAnalytics.trackCustomEvent('nft_minted', {
  collection: 'Bored Apes',
  tokenId: 1234
});
  

API Reference

  • Track Event: POST /api/v1/events/track
  • Batch Events: POST /api/v1/events/track/batch
  • Get Events: GET /api/v1/events/events
  • Get Stats: GET /api/v1/events/stats
  • Get Website Analytics: GET /api/v1/websites/analytics

Support

More features and advanced guides coming soon!