A WordPress plugin for integrating Rybbit privacy-first analytics.
- Simple setup with Site ID configuration
- Support for self-hosted Rybbit instances
- Option to ignore logged-in users (enabled by default)
- Query parameter tracking control
- SPA mode for AJAX-based themes
- Modern React-based settings interface
- Pre-configured download support for Rybbit integration
- Download the latest release zip file
- Go to WordPress Admin > Plugins > Add New > Upload Plugin
- Upload the zip file and activate
git clone https://github.com/wolfdevs/rybbit-wp.git
cd rybbit-wp
npm install
npm run buildCopy the plugin folder to /wp-content/plugins/ and activate.
- Navigate to Settings > Rybbit Analytics
- Enter your Site ID (found in your Rybbit dashboard)
- Optionally configure:
- Host URL - For self-hosted instances (default:
https://app.rybbit.io) - Ignore logged-in users - Exclude admin activity from tracking
- Track query parameters - Include URL query strings
- SPA mode - For single-page applications
- Host URL - For self-hosted instances (default:
# Install dependencies
npm install
# Development mode with hot reload
npm run dev
# Production build
npm run buildCreate distributable zip files using the build script:
# Interactive mode (prompts for site ID)
./build-zip.sh
# With arguments (for automation)
./build-zip.sh "your-site-id" "https://app.rybbit.io"
# Generic build (press Enter to skip site ID prompt)
./build-zip.shOutput:
- Generic:
rybbit-wp.zip - Pre-configured:
rybbit-wp-{site-id}.zip
This plugin supports pre-configured downloads for seamless Rybbit integration.
-
Build script bundles a
rybbit-config.jsonwith the user's settings:{ "site_id": "your-site-id", "host_url": "https://app.rybbit.io" } -
On plugin activation, WordPress reads the config and auto-saves settings
-
Config file is deleted after applying - analytics starts immediately
Rybbit can offer "Download WordPress Plugin" by:
- Hosting a base zip and injecting config client-side (using JSZip)
- Or calling the build script server-side with user's site ID
rybbit-wp/
├── rybbit-wp.php # Main plugin file
├── includes/
│ └── class-rybbit-wp.php # Core plugin class
├── src/
│ ├── main.jsx # React entry point
│ ├── App.jsx # Settings component
│ └── styles.css # Tailwind styles
├── build/ # Compiled assets
├── build-zip.sh # Build script
├── package.json
├── vite.config.js
├── tailwind.config.js
├── readme.txt # WordPress readme
└── README.md
- WordPress 5.8+
- PHP 7.4+
GPL v2 or later