Installation
FPAI is a standard WordPress plugin. There are two ways to install it:
Option A — WordPress Plugin Directory (recommended)
- In your WordPress admin, go to Plugins → Add New
- Search for FPAI
- Click Install Now, then Activate
Option B — Manual ZIP upload
- Download the zip from WordPress.org
- In your WordPress admin, go to Plugins → Add New → Upload Plugin
- Choose the ZIP file and click Install Now
- Click Activate Plugin
WordPress Multisite is not officially supported in v1.1.1.
Activation
When FPAI is activated, it automatically creates five database tables in your WordPress database:
wp_fpai_sessions— visitor sessions with device, browser, UTM datawp_fpai_pageviews— individual page views with scroll depth and time on pagewp_fpai_events— behavioral events: basic click/form events (Free), full event suite (Pro)wp_fpai_conversions— completed conversion goalswp_fpai_ai_reports— AI conversation history (questions and answers from the AI Analysis page)
Tracking begins immediately after activation. No additional configuration is required to start collecting data.
Viewing your first data
After activation, the FPAI menu item appears in the WordPress sidebar. Click it to open the analytics dashboard.
If you don't see data right away, visit your site's frontend in a non-admin browser (or private/incognito window). Admin sessions are excluded by default. Within a few seconds, a session should appear in the dashboard.
Settings overview
Go to FPAI → Settings to configure the plugin. The settings page is divided into sections:
General
- Enable tracking — master on/off switch for all data collection
- Exclude administrators — prevents admin sessions from being counted (recommended: on)
- Session timeout — minutes of inactivity before a session is closed (default: 30 min)
- Tracking mode — Standard (localStorage-based), Storage-less (nothing is ever stored on the visitor's device), or Auto (storage-less for EU visitors, detected by browser timezone — the recommended default for new installs). In storage-less operation, pseudonymous IDs are derived server-side from a daily-rotating salt, so visitors cannot be linked across days; unique-visitor and new-vs-returning figures are therefore estimates. Each record stores which method collected it (Standard / Storage-less), shown in the dashboard and exports (from v1.1.1).
- Bot / bulk-submission filter (from v1.1.1) — Off / Standard (default) / Strong. Excludes submissions from automation and bots (not "fake-data injection" — abnormal bulk volume from automated clients). Flagged requests are discarded before anything is written. There is no site-wide daily cap; basic safety limits (payload size, event count, per-IP rate) stay enforced at every setting, including Off.
Event tracking options (Pro)
- Track clicks — captures all click events with element selector and text
- Track scroll depth — fires at 25%, 50%, 75%, 90%, and 100% scroll milestones
- Track form submissions — captures form ID and submission event
- Track outbound links — detects clicks on links to external domains
Basic click and form-submit events — the ones conversion goals use — are always collected, in Free and Pro alike. The toggles above control the Pro event suite.
IP exclusions
Enter IP addresses to exclude from tracking, one per line. Useful for filtering out office IPs, agency IPs, or your own development machine.
203.0.113.42
198.51.100.0
AI Analysis Setup
FPAI includes a built-in AI chat interface in your WP dashboard. AI analysis is available on all plans, including Free. You bring your own API key — FPAI never touches it beyond sending it to the AI provider.
Supported providers
- Anthropic Claude
- OpenAI ChatGPT
- Google Gemini
- xAI Grok
- Perplexity
- Mistral
- DeepSeek
- Cohere
- Alibaba Qwen
- Go to FPAI → Settings → AI Analysis
- Select your provider from the nine supported options
- Enter your API key (stored only in your WordPress database)
- Go to FPAI → AI Analysis and ask your first question
Using the AI chat interface
Once your API key is saved, go to FPAI → AI Analysis. Select a date range, choose a pre-built prompt or type your own question, and click Send. FPAI collects your analytics data, formats it, and sends it to your AI provider. The response appears directly in the dashboard.
Conversation history is stored in the wp_fpai_ai_reports table in your WordPress database — no data is retained on FPAI's servers.
Using CSV/JSON export with external AI tools
If you want to use your analytics data in a tool outside of WordPress — Claude.ai, ChatGPT, Gemini, or any other — export it as a file first.
- Go to FPAI → Export
- Select a date range and choose CSV or JSON
- Click Download
- Upload the file into your AI chat (ChatGPT, Gemini, Claude.ai, etc.)
- Ask your question — the AI will read the data from the file
Conversion goals
Conversion goals let you define specific user actions to track and measure. Go to FPAI → Settings → Conversion Goals to manage them.
Goal types
- URL (pageview) — fires when a visitor reaches a specific URL or URL pattern (e.g.
/thank-you/). Available in Free and Pro. - Form submission — fires when a specific form is submitted, identified by form ID (e.g.
#contact-form-7). Available in Free and Pro. - Click — fires when a clicked button or link matches the configured text, link URL, ID, or class. Available in Free and Pro.
Creating a goal
- Click Add Goal
- Enter a name (e.g. "Trial Signup")
- Select the goal type
- Enter the URL, form ID, or the button/link text to match (partial match; link URL, ID, or class also work)
- Optionally enter a monetary value per conversion
- Save — the goal becomes active immediately
Data export
Go to FPAI → Export to download your analytics data.
- CSV — multi-section file with separate tables for sessions, pageviews, events, and conversions
- JSON — full structured export with all fields and values
From v1.1.1: for the last 30 days, pick a date range; for older data, choose a whole calendar month. Click Download — exports stream directly, so any volume downloads without timing out. (The currently distributed v1.1.0 exports a single custom date range.)
Event tracking (Pro)
When a Pro license is active and event tracking is enabled in Settings, the FPAI tracker automatically captures:
- Clicks — element tag, CSS selector, visible text, and target URL
- Scroll depth — 25%, 50%, 75%, 90%, 100% milestones per page per session
- Form submissions — form element ID and method
- Outbound links — the full destination URL
- Copy events — when a visitor selects and copies text from the page
- JS errors — error message, source file and line number (useful for debugging)
Events are visible in the Event Summary card on the dashboard and included in CSV/JSON exports.
Activating a Pro license
- Purchase Pro at fpai.orora.co.jp/pricing via Lemon Squeezy
- You'll receive a license key by email
- Deactivate the FPAI Free plugin (Plugins → Installed Plugins). Your analytics data stays in the database — Free and Pro share the same tables
- Install and activate the FPAI Pro plugin (Plugins → Add New → Upload Plugin, using the zip from your purchase email)
- In WordPress admin, go to FPAI → Settings → License
- Enter your license key and click Activate
- Pro features enable immediately — your existing data carries over with no loss
The license is validated against the Lemon Squeezy API and cached for 12 hours. If the API is temporarily unreachable, a recently verified license keeps working for up to 7 days offline (lifetime licenses up to 180 days); an explicitly invalid or expired response takes effect immediately.
Transferring your license
- On the old site, go to FPAI → Settings → License and click Deactivate
- This frees the license instance in Lemon Squeezy
- On the new site, enter the same license key and activate
FAQ
Note: deleting or deactivating the plugin does not stop billing. To stop being charged, you must cancel via the "Manage your subscription" link above.
Troubleshooting
Plugin conflicts
If you experience unexpected behavior, temporarily deactivate other plugins to identify conflicts. Security plugins (Wordfence, Sucuri) sometimes block REST API endpoints — add /wp-json/fpai/ to your security plugin's whitelist.
Caching plugins
FPAI's tracker script is loaded dynamically and should not be minified or cached by caching plugins. Exclude fpai-tracker.js from your caching plugin's script optimization rules.
REST API blocked
FPAI uses the WordPress REST API (POST /wp-json/fpai/v1/collect) to receive tracking events. If your server or a security plugin blocks unauthenticated REST API access, tracking will not work. The collect endpoint is intentionally public (rate-limited and validated server-side).
Database tables missing
If the FPAI dashboard shows no data and tables appear to be missing, try deactivating and reactivating the plugin. The activation hook re-creates missing tables using dbDelta().