=== FirstPromoter === Contributors: maxwellfp Tags: affiliate, referral tracking, woocommerce, optimizepress, marketing Requires at least: 5.0 Tested up to: 6.8 Stable tag: 0.1 Requires PHP: 7.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Integrate FirstPromoter's affiliate and referral tracking system with your WordPress site - supports WooCommerce, OptimizePress, and custom tracking. == 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 * Custom tracking options * Cross-domain tracking support * Automatically send sales data to FirstPromoter (WooCommerce) * Automatic refund and cancellation tracking (WooCommerce) * Shortcode support for manual tracking = 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. = Custom Integration = The custom integration option allows you to: * Add your own custom tracking scripts * Use the shortcode to manually track referrals = Shortcode Usage = Use the shortcode to manually track referrals: `[firstpromoter_track email="user@example.com"]` == Installation == 1. Upload the plugin files to the `/wp-content/plugins/firstpromoter` directory, or install the plugin through the WordPress plugins screen 2. Activate the plugin through the 'Plugins' screen in WordPress 3. Use the FirstPromoter menu item in your admin sidebar to configure the plugin == Configuration == After activation, you'll find a new menu item in your WordPress admin dashboard labeled "FirstPromoter". = Base Configuration = 1. Navigate to the FirstPromoter settings page in your WordPress admin 2. Enter your FirstPromoter Account ID (required) 3. Optionally enter your API key if you plan to use the sales tracking feature 4. If you want to track across multiple domains, enter them in the Cross Domain field, separated by commas 5. Click "Save" to store your settings = Integration Settings = The plugin supports three types of integrations: 1. **WooCommerce Integration**: Track new account registrations and checkouts 2. **OptimizePress Integration**: Track form submissions 3. **Custom Integration**: Add your own tracking scripts or use the shortcode Enable the integrations that apply to your website and configure their specific settings. == Frequently Asked Questions == = 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. = How do I track custom events? = You can either: 1. Use the provided shortcode: `[firstpromoter_track email="user@example.com"]` 2. Enable the Custom integration and add your own tracking script = Does this work with other e-commerce plugins? = Currently, this plugin has specific integrations for WooCommerce and OptimizePress. For other platforms, you can use the Custom integration option. = 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. == Screenshots == 1. FirstPromoter settings page 2. WooCommerce integration settings 3. OptimizePress integration settings 4. Custom integration settings == Changelog == = 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 * Custom integration options with shortcode support * Cross-domain tracking support * Enhanced security with proper nonce verification * Automatic refund and cancellation tracking == Upgrade Notice == = 0.1 = Initial release with FirstPromoter v2 API integration and WooCommerce support. == 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: 1. Adds the base FirstPromoter tracking script to all pages 2. Captures and tracks user emails at registration and checkout (when enabled) 3. Supports cross-domain tracking 4. Can send WooCommerce sales data directly to FirstPromoter's API