Description
FirstPromoter for WordPress allows you to easily integrate FirstPromoter’s affiliate tracking scripts with your WordPress website.
With this plugin, you can track referrals, registrations, and sales across your website, with special integrations for popular platforms.
Features
- Add FirstPromoter tracking to your WordPress site
- WooCommerce integration – track new account registrations and checkouts
- OptimizePress integration – track form submissions
- Contact Form 7 integration – track form submissions with email capture
- MemberPress integration – track member signups, transactions, and recurring payments
- Cross-domain tracking support
- Automatically send sales data to FirstPromoter (WooCommerce, MemberPress)
- Automatic refund and cancellation tracking (WooCommerce)
- Track recurring subscription payments (MemberPress)
WooCommerce Integration
When enabled, the WooCommerce integration allows you to:
- Capture emails when users create new accounts
- Capture emails at checkout
- Automatically send sale information to FirstPromoter
- Track refunds and generate negative commissions
- Track order cancellations and update customer status
OptimizePress Integration
The OptimizePress integration tracks form submissions and captures emails for referral tracking.
Contact Form 7 Integration
When enabled, the Contact Form 7 integration allows you to:
- Track form submissions automatically (all forms tracked)
- Capture email addresses from any field containing “email” in its name
- Attribute form leads to the correct referral source
- Requires API key – uses server-side tracking
MemberPress Integration
When enabled, the MemberPress integration allows you to:
- Track new member signups and registrations (always enabled)
- Automatically send transaction data to FirstPromoter (requires API key)
- Track recurring subscription payments (requires API key)
- Associate members with their referral source
- API sale tracking uses prefixed user IDs (“mepr-“) to prevent conflicts
Important: If you’re using FirstPromoter’s Stripe integration, only enable signup tracking. Leave sale tracking OFF to avoid duplicate sales.
Configuration
After activation, you’ll find a new menu item in your WordPress admin dashboard labeled “FirstPromoter”.
Base Configuration
- Navigate to the FirstPromoter settings page in your WordPress admin
- Enter your FirstPromoter Account ID (required)
- Enter your API key (required for most integrations – see below)
- If you want to track across multiple domains, enter them in the Cross Domain field, separated by commas
- Click “Save” to store your settings
API Key Requirements
The FirstPromoter API key is required for the following features:
- Contact Form 7 integration (all tracking)
- WooCommerce sale tracking
- MemberPress sale tracking
- MemberPress recurring payment tracking
The following features work without an API key:
- WooCommerce signup tracking
- WooCommerce checkout email capture
- OptimizePress integration
- MemberPress signup tracking (without sales)
You can find your API key in your FirstPromoter dashboard: Settings > Integrations > Manage API keys
Integration Settings
The plugin supports multiple types of integrations:
- WooCommerce Integration: Track new account registrations and checkouts
- OptimizePress Integration: Track form submissions
- Contact Form 7 Integration: Track contact form submissions with email capture
- MemberPress Integration: Track member signups, transactions, and recurring payments
Enable the integrations that apply to your website and configure their specific settings.
External Services
This plugin connects to FirstPromoter’s external services to provide affiliate and referral tracking functionality. It’s essential for the plugin’s operation to track referrals, registrations, and sales.
FirstPromoter Tracking Service
What it is: FirstPromoter’s affiliate tracking platform that monitors referral activity and conversions.
What data is sent:
– Email addresses (for referral tracking)
– User IDs (when available)
– Order information including amount, order ID, and coupon codes (when WooCommerce sales tracking is enabled)
– Page visit information for referral attribution
When data is sent:
– Every time a page loads (for referral attribution via JavaScript tracking)
– When users register or create accounts (if integration is enabled)
– When purchases are completed (if WooCommerce integration is enabled)
– When custom tracking events are triggered
Service provider: FirstPromoter (https://firstpromoter.com)
– Terms of Service: https://firstpromoter.com/terms
– Privacy Policy: https://firstpromoter.com/privacy
– API Documentation: https://docs.firstpromoter.com/api-reference-v2/
FirstPromoter CDN Service
What it is: Content delivery network that serves the FirstPromoter tracking JavaScript library.
What data is sent: Standard web request data (IP address, user agent, referrer)
When data is sent: On every page load where tracking is active
Service details:
– CDN URL: https://cdn.firstpromoter.com/fpr.js
– v2 API Endpoints: https://api.firstpromoter.com/api/v2/track/*
– This is required for the tracking functionality to work
Technical Details
This plugin works by adding the FirstPromoter tracking script to your website and handling various trigger points for tracking registrations, checkouts, and custom events. The plugin:
- Adds the base FirstPromoter tracking script to all pages
- Captures and tracks user emails at registration and checkout (when enabled)
- Supports cross-domain tracking
- Can send WooCommerce sales data directly to FirstPromoter’s API
Installation
- Upload the plugin files to the
/wp-content/plugins/firstpromoterdirectory, or install the plugin through the WordPress plugins screen - Activate the plugin through the ‘Plugins’ screen in WordPress
- Use the FirstPromoter menu item in your admin sidebar to configure the plugin
FAQ
-
Where do I find my FirstPromoter Account ID?
-
You can find your Account ID in your FirstPromoter dashboard under Settings > Integrations.
-
Where do I find my FirstPromoter API key?
-
You can find your API key in your FirstPromoter dashboard under Settings > Integrations > Manage API keys. You can use an existing key or create a new one for this WordPress integration.
-
Which features require an API key?
-
API key is required for: Contact Form 7 (all tracking), WooCommerce sale tracking, MemberPress sales and recurring payments.
Basic signup/email tracking for WooCommerce, OptimizePress, and MemberPress works without an API key.
-
Does this work with other plugins?
-
Currently, this plugin has specific integrations for WooCommerce, OptimizePress, Contact Form 7, and MemberPress. Additional integrations may be added in future updates.
-
What information is sent to FirstPromoter?
-
When tracking is enabled, the plugin sends:
– Email addresses (for referral tracking)
– User IDs (when available)
– Order information (when WooCommerce sales tracking is enabled) -
Is cross-domain tracking supported?
-
Yes, you can enable cross-domain tracking in the Base Configuration settings.
Reviews
There are no reviews for this plugin.
ডেভেলপার এবং কন্ট্রিবিউটর
“FirstPromoter” is open source software. The following people have contributed to this plugin.
কন্ট্রিবিউটরTranslate “FirstPromoter” into your language.
ডেভেলপমেন্ট এ আগ্রহী?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.2.1
- Fixed: Comprehensive error handling to prevent API failures from breaking payments
- Fixed: All FirstPromoter API calls now fail gracefully when API credentials are missing or invalid
- Improved: Enhanced error logging for debugging API issues without affecting store functionality
0.2.0
- New: Contact Form 7 integration – track form submissions with automatic email capture
- New: MemberPress integration – track member signups, transactions, and recurring payments
- Improved: Plugin now supports tracking across multiple membership and form plugins
- Enhanced: Admin settings page now dynamically shows available integrations based on installed plugins
0.1.1
- Fixed: WooCommerce integration checkbox settings not saving properly
- Fixed: Email capture not working during WooCommerce checkout
- Fixed: Sale tracking API calls not being made when only sale tracking was enabled (without email capture)
- Fixed: Sale tracking now works with both ‘processing’ and ‘completed’ order statuses
- Fixed: Server-side API tracking now properly uses fallback cookies when ad blockers are active
- Improved: Referral tracking script injection to work with late-stage WordPress hooks
- Improved: Added duplicate sale prevention to avoid tracking the same order multiple times
- Improved: Comprehensive debug logging for troubleshooting API calls and tracking issues
0.1
- Initial release
- FirstPromoter v2 API integration with Bearer token authentication
- WooCommerce integration – track registrations, checkouts, refunds, and cancellations
- OptimizePress integration – track form submissions
- Cross-domain tracking support
- Enhanced security with proper nonce verification
- Automatic refund and cancellation tracking

