Smalk AI Analytics

Smalk AI Analytics

5/5 (3 ratings) 10 active installs Updated Jun 18, 2026
Screenshot 1

See the AI agents and AI Search visitors your site actually receives — and never lose an event again.

The web is shifting from search results to answer engines. GPTBot, ClaudeBot, PerplexityBot, Gemini, Google AI Overviews and dozens of other AI crawlers visit your pages every day, and a growing share of your human traffic now arrives from an AI assistant rather than a classic SERP. Most analytics tools were built for the old web and miss all of it.

Smalk AI Analytics adds an AI-aware tracking layer to your WordPress site: every public-page visit (AI agent OR human-from-AI-search) is captured, classified, and pushed to your Smalk dashboard where you can see which engines cite you, which pages they prefer, and how that AI exposure converts into real human traffic.

Unlike crawler-blocking plugins, Smalk does not block AI bots. It helps you measure, optimize, and turn AI exposure into growth.

KEY FEATURES

Tracking

  • Real-time capture of AI agent visits (GPTBot, ClaudeBot, PerplexityBot, GeminiBot, GoogleOther, OAI-SearchBot, Mistral, AppleBot-Extended, and 30+ others) plus human visitors arriving from AI search engines.
  • Two tracking layers: a lightweight hook captures bot traffic (which never executes JavaScript) AND a tracker.js snippet captures human session context. Both feed the same Smalk dashboard.
  • Rich proxy header capture (Cloudflare, geo, X-Forwarded-For, X-Real-IP, X-Smalk-CMS) so bot classification stays accurate even behind CDNs.

Reliability (new in 1.1.0)

  • Local MySQL queue buffers visits when the Smalk API is briefly unreachable — no more lost events during transient outages.
  • Background cron flushes the queue every minute via a batched endpoint (up to 500 visits per request).
  • Built-in circuit breaker pauses outbound calls after repeated failures and resumes automatically.
  • Per-row exponential-backoff retry + daily cleanup of stale entries.
  • “Direct” fallback mode for sites that prefer the old fire-and-forget behavior (no queue table).

Privacy & compliance

  • Per-site redact list for query parameters (passwords, tokens, credit-card and SSN-style keys are redacted by default before any value leaves your server).
  • Deny-paths textarea with wildcards on top of a strict built-in exclusion list (/wp-admin, /wp-login, /wp-json, /xmlrpc.php, REST API calls, favicon, etc.).
  • Per-request-type skip toggles (admin / cron / AJAX / REST) — admin / cron / AJAX skipped by default.
  • No cookies are set on visitors.

Admin experience

  • Modern card-based settings page with a 4-tile Status & Diagnostics panel: queue size, last successful send, circuit-breaker state, last error — refreshed live on every action.
  • One-click Send test event (probes the Smalk API with a X-Smalk-Probe: 1 header so the test never appears in your real analytics), Force-flush queue now, Resume sending (reset circuit breaker), and Clear page caches (purges WP Rocket, W3 Total Cache, LiteSpeed Cache, Autoptimize, WP Super Cache, Hummingbird, FlyingPress, SG Optimizer, WP Fastest Cache, Cache Enabler, WP Engine, plus the WordPress object cache and PHP OPcache).
  • Auto-save when you paste a new API key — no scrolling to “Save changes”.
  • Debug report generator: collects plugin version, queue + sender stats, cron schedules, detected cache plugins, live connectivity probes, and active plugins into a single text blob you can email to support — never dumps raw error_log (no risk of leaking unrelated secrets).

Performance

  • <link rel="preconnect"> + <link rel="dns-prefetch"> for the tracker origin before the async script tag — saves ~50–150 ms TLS+DNS handshake on cold connections (mostly mobile / first-time visitors).
  • Tracker JS auto-excluded from 10+ caching/minify plugins (WP Rocket, Autoptimize, W3TC, LiteSpeed, SG Optimizer, Hummingbird, FlyingPress, Asset CleanUp, …) so caching never strips it.
  • Zero impact on TTFB: every flavor of outbound call is either non-blocking (direct mode) or deferred to cron (queued mode, the default).

WHY CHOOSE SMALK AI

  • See AI traffic accurately. Most analytics drop AI agents entirely (they don’t run JS); Smalk catches them and classifies them in real time.
  • Never lose an event. The queued mode keeps tracking your site even when our API is briefly unreachable.
  • Privacy-first defaults. Sensitive query parameters are redacted, admin / cron / AJAX requests are skipped, no cookies on visitors.
  • No bot blocking. Smalk helps you grow your AI footprint, not shrink it.
  • Plays nicely with every host and cache. Tested on WP 5.0 / PHP 7.0 through WP 6.9 / PHP 8.3. Auto-detects and works around the major caching / minify plugins.

EXTERNAL SERVICES

This plugin connects to Smalk AI’s API services for analytics and tracking functionality. The following data transmissions occur:

  1. Analytics Tracking:

    • The plugin sends website visit data to api.smalk.ai when AI agents visit your site
    • Data sent includes: visit information, page URLs, and user agent data
  2. Project Configuration:

    • The plugin connects to the Smalk API to retrieve project settings when the API key is saved or updated
    • Project data is cached locally and reused — no API calls are made on page loads
    • Only authenticated API requests are made using your project key
    • No personal user data is transmitted during these requests

For more information about our data handling practices, please visit:
– Terms of Service: https://smalkapp.notion.site/Terms-of-service-Smalk-9f047b4200b84b70a4fb38142cfb5799
– Privacy Policy: https://smalkapp.notion.site/Privacy-Policy-Smalk-08a503612b3e481596b0a434e96dd7c1?pvs=74