# Loamly - Complete Documentation > AI traffic analytics infrastructure. From bot crawl to revenue: Loamly deploys edge infrastructure that detects AI bot crawls via Cloudflare Worker + RFC 9421 crypto signatures, infers the buyer query with a Bayesian engine, links the human visit that GA4 mislabels as "Direct," and attributes the revenue via Stripe. The complete chain no one else tracks. --- ## What is Loamly? Loamly is AI traffic analytics infrastructure that tracks the complete chain from AI bot crawl to revenue. Traditional analytics tools like Google Analytics and Plausible label AI-referred visitors as "Direct" traffic. Loamly deploys edge infrastructure (Cloudflare Worker + RFC 9421 crypto signatures) that detects the bot crawl, infers the buyer query, links the human visit, and attributes the revenue. 34% of "Direct" traffic is actually AI-referred. ### The Problem Loamly Solves When ChatGPT, Claude, or Perplexity recommend your product or link to your website, traditional analytics show the visit as "Direct" or "Unknown referrer." You have no way to know: 1. Which AI platforms are sending you traffic 2. What those AI platforms tell users about your brand 3. Whether AI-driven visitors convert differently than organic visitors 4. How your AI visibility compares to competitors Loamly provides answers to all of these questions. --- ## Detection Methods ### Tier 1: RFC 9421 Cryptographic Verification (100% Accuracy) RFC 9421 defines HTTP Message Signatures, a cryptographic standard where bots sign their requests with Ed25519 keys. OpenAI, Anthropic, and other AI companies publish their public keys. Loamly's edge worker or managed proxy intercepts requests and verifies these signatures. Requirements: Deploy Loamly's edge worker (Cloudflare) or use the managed proxy (DNS A record pointing to 37.16.7.18). ### Tier 2: Navigation Timing API (65-78% Accuracy) The JavaScript tracker analyzes browser navigation timing patterns. AI-embedded browsers (like Perplexity's citation previews) exhibit distinct timing signatures compared to regular browsers. Requirements: Basic JavaScript tracker only. ### Tier 3: Behavioral ML (75-90% Accuracy) Machine learning model trained on mouse movement, scroll patterns, and click behavior. AI-driven "click farms" or automated browsers exhibit patterns distinguishable from human behavior. Requirements: Basic JavaScript tracker only. ### Tier 4: User-Agent Pattern Matching (95%+ Accuracy) Some AI bots identify themselves through User-Agent strings. This method catches crawlers but not AI-embedded browsers where users click through from ChatGPT. Requirements: Basic JavaScript tracker only. --- ## Installation ### Basic JavaScript Tracker Add this script tag to your website's ``: ```html ``` The tracker is lightweight (< 5KB gzipped), async-loaded, and does not block page rendering. ### Edge Deployment for 100% Accuracy #### Option 1: Managed Proxy (Recommended) Point your domain's DNS A record to Loamly's proxy server: ``` your-domain.com A 37.16.7.18 ``` Then enter your origin URL (where your site is actually hosted, e.g., your-site.vercel.app) in Loamly's dashboard. Loamly handles SSL certificates automatically and forwards all traffic to your origin while intercepting and verifying AI bot signatures. #### Option 2: Cloudflare Worker For sites already on Cloudflare, deploy our worker via API token in your Loamly dashboard. #### Option 3: CLI Deployment For developers who prefer manual control: ```bash npm install -g @loamly/edge loamly-edge deploy ``` --- ## Pricing All plans include a 30-day free trial. No credit card required. ### Starter - €29/month (ChatGPT only) - 15 daily prompts - 15,000 events/month - 15 Ask Loamly questions/month - 1 workspace, 1 user - 1 year data retention - Basic AI visibility dashboard ### Grow - €89/month (Most popular) - Everything in Starter, plus: - 50 daily prompts - 50,000 events/month - 100 Ask Loamly questions/month - All 4 platforms (ChatGPT, Claude, Gemini, Perplexity) - 2 years data retention - Competitor intelligence - API access & CSV export - Unlimited workspace users ### Pro - €199/month - Everything in Grow, plus: - 150 daily prompts - 250,000 events/month - Unlimited Ask Loamly questions - Unlimited data retention - Priority support ### Enterprise - Custom pricing - Everything in Pro, plus: - Custom prompts & events limits - Dedicated account manager - SLA & compliance - Custom integrations - SSO & advanced security --- ## Features ### Analytics Dashboard Real-time visitor analytics with: - AI vs Human traffic segmentation - Traffic sources breakdown - Geographic distribution - Device and browser analytics - Page view and session tracking ### AI Intelligence Track what AI platforms say about your brand: - Monitor mentions across ChatGPT, Claude, Perplexity, Gemini - Competitive positioning analysis - Brand sentiment tracking - Prompt monitoring ### Revenue Attribution Connect AI traffic to business outcomes: - Stripe integration for conversion tracking - Revenue per source attribution - AI visitor LTV comparison - Conversion funnel analysis ### Ask Loamly Natural language analytics powered by Claude: - Query your analytics data conversationally - "How many visitors from ChatGPT last week?" - "What's my AI traffic trend over the past month?" - Export insights and reports --- ## Privacy & Security ### Privacy by Design - **No cookies**: Uses sessionStorage instead - **No IP storage**: IP addresses are hashed for deduplication, then immediately discarded - **GDPR compliant**: No consent banner required for basic analytics - **No fingerprinting**: Does not use browser fingerprinting techniques ### Data Security - All data encrypted in transit (TLS 1.3) and at rest (AES-256) - SOC 2 Type II certification in progress - Data stored in EU (Germany) and US regions - Self-hosting option available for enterprise --- ## Integrations ### Next.js For App Router: ```tsx // app/layout.tsx import Script from 'next/script' export default function RootLayout({ children }) { return ( {children}