Popis
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
- Custom Form Tracking – track email submissions from any form using CSS selectors
- URL Email Capture – capture referrals from thank you pages where the email is in the URL
- Cross-domain tracking support
- Automatically send sales data to FirstPromoter (WooCommerce, MemberPress)
- Automatic refund and cancellation tracking (WooCommerce)
- Track recurring subscription payments (MemberPress)
- Force tracking bypass for privacy browsers and ad-blockers
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.
Custom Form Tracking
When enabled, the Custom Form Tracking integration allows you to:
- Track email submissions from any form on your site — no plugin dependency required
- Works with any form builder, custom HTML forms, or dynamically loaded popups
- Configure CSS selector pairs: one for the email input, one for the submit button or form element
- Supports multiple forms with separate selector pairs
- Uses MutationObserver to handle dynamically loaded forms (popups, AJAX-injected content)
- AJAX fallback for ad-blocker bypass when force tracking is enabled
URL Email Capture
When enabled, the URL Email Capture integration allows you to:
- Track referrals from thank you pages where the email is passed as a URL query parameter
- Useful when your checkout, funnel, or external platform redirects to a confirmation page with the customer’s email in the URL (e.g.
/[email protected]) - Configure the URL parameter key for the email (e.g.
email) - Optionally configure a second parameter key for the user ID (e.g.
uid) - No plugin dependency required — works on any WordPress page
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
- Custom Form Tracking: Track email submissions from any form using CSS selectors
- URL Email Capture: Capture referrals from thank you pages where the email is in the URL
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
Inštalácia
- 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
Časté otázky
-
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?
-
The plugin has specific integrations for WooCommerce, OptimizePress, Contact Form 7, and MemberPress. The Custom Form Tracking and URL Email Capture integrations work with any platform — no additional plugin required.
-
How do I use URL Email Capture?
-
Enable the „URL Email Capture“ integration and enter the URL parameter name that contains the email on your thank you page. For example, if your thank you page URL looks like
/[email protected], enteremailin the Email URL Parameter Key field. Optionally enter a second parameter name for the user ID. -
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.
Recenzie
Pre tento plugin nie sú žiadne recenzie.
Prispievatelia a vývojári
“FirstPromoter” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli nasledujúci ľudia.
PrispievateliaPreložiť „FirstPromoter“ do vašho jazyka.
Máte záujem o vývoj?
Prehľadávajte zdrojový kód, preskúmajte SVN repozitár, alebo sa prihláste na odber vývojárskeho logu cez RSS.
Zoznam zmien
0.3.1
- New: URL Email Capture integration — capture referrals from thank you pages where the email (and optionally a user ID) is passed as a URL query parameter
- Configurable parameter key names for both email and UID
0.3.0
- New: Custom Form Tracking integration — track email submissions from any form using CSS selectors
- Supports multiple form selector pairs (email input + submit element)
- MutationObserver support for dynamically loaded forms (popups, AJAX content)
- Server-side AJAX fallback for ad-blocker bypass when force tracking is enabled
- Admin repeater UI for managing form selectors
- Removed Guzzle dependency – replaced with WordPress native wp_remote_post() for all API calls
- Lowered PHP requirement from 7.2 to 5.6 for broader hosting compatibility
- Fixed: AJAX fallback handler now registers once instead of per-integration
- Fixed: WooCommerce double-tracking on checkout (track_checkout and order_payment_successful both calling track_referral)
- Fixed: OptimizePress JS crash when button element not found in form
- Fixed: Removed IE-only window.attachEvent from OptimizePress integration
- Fixed: setcookie now includes SameSite attribute for modern browser compatibility
- Improved: Centralized API request handling via api_post() helper method
- Improved: Consolidated debug logging via log() helper to reduce boilerplate
- Improved: All API methods now return false on failure instead of exception objects
- Removed dead track_registration() method from WooCommerce integration
- Removed redundant cross-domain setting check
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

