Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/zeeshanraza-official/wpcalibrate-conversion-tracking/releases/download/v1.0.0/wpcalibrate-conversion-tracking-1.0.0.zipEnterprise Multi-Platform Conversion Tracking & Server-Side Event Engine for WooCommerce.
Effortlessly connect Google Analytics 4, Google Ads, Meta (Facebook) Pixel & Conversions API (CAPI), and TikTok Pixel & Events API with deterministic deduplication, Consent Mode v2, and zero checkout latency.
Table of Contents
- About the Plugin
- Why WPCalibrate Conversion Tracking?
- Key Features
- The Method (Architecture Pipeline)
- Supported Platforms & Events
- Documentation & Setup Guide
- Developer Hooks & Filters
- Directory Structure
- Changelog
- License & Support
About the Plugin
WPCalibrate Conversion Tracking is an enterprise-grade WooCommerce conversion and ecommerce tracking plugin built for high-traffic stores. It bridges traditional client-side browser tracking (gtag, fbq, ttq) with direct server-to-server Conversions APIs (Meta CAPI and TikTok Events API).
By sending conversion data directly from your server to advertising networks in the background via WooCommerce Action Scheduler, WPCalibrate eliminates attribution loss caused by ad-blockers, iOS 14.5+ App Tracking Transparency (ATT), Safari Intelligent Tracking Prevention (ITP), and third-party cookie phaseouts.
Why WPCalibrate Conversion Tracking?
Traditional browser-only tracking loses 30% to 50% of conversion data:
- Ad Blockers & Brave Browser: Block standard tracking scripts before they even load.
- Apple iOS 14.5+ & Safari ITP: Limit cookie lifetimes and purge client-side storage within 24 hours.
- Network Latency & Abandoned Tabs: Users close the confirmation page before browser tags finish executing.
- Inaccurate Attribution: Lost conversion signals inflate your Customer Acquisition Cost (CAC) and ruin algorithmic ad bidding.
WPCalibrate solves this completely:
- Hybrid Dual-Track Delivery: Dispatches browser pixels alongside encrypted server-to-server Conversions APIs.
- Deterministic Deduplication: Browser and server events share matching unique
event_idtokens (wpcal_ct_ord_{order_id}_{seed}). Meta and TikTok automatically deduplicate the signals, achieving a 10/10 Event Match Quality (EMQ) score without double-counting sales. - Zero Checkout Delay: Server API calls are queued in WooCommerce Action Scheduler and processed asynchronously with exponential backoff retries. Customer checkout response times remain lightning fast.
Key Features
- Multi-Platform Support:
- Google Analytics 4: Standard ecommerce events via modern
gtag.js. - Google Ads: Conversion tracking with SHA-256 Enhanced Conversions for maximum bidding accuracy.
- Meta (Facebook) Pixel & CAPI: Dual browser & server tracking with Graph API v22.0 adapter and user data matching.
- TikTok Pixel & Events API: Dual storefront & server delivery via TikTok Business API v1.3.
- Google Analytics 4: Standard ecommerce events via modern
- WooCommerce Native & Future-Proof:
- HPOS Ready: Declared and verified compatible with High-Performance Order Storage (
custom_order_tables). - Cart & Checkout Blocks: Native bridge with WooCommerce Block store data events.
- HPOS Ready: Declared and verified compatible with High-Performance Order Storage (
- Privacy & Compliance:
- Google Consent Mode v2: Full support for
analytics_storage,ad_storage,ad_user_data, andad_personalization. - WP Consent API: Native compatibility with standard WordPress consent management platforms (Complianz, Cookiebot, CookieYes).
- GDPR Personal Data: Integrated with WordPress core Personal Data Exporter & Eraser.
- Google Consent Mode v2: Full support for
- Enterprise Management:
- Live Event Logs: Built-in event log table (
wp_wpcalibrate_ct_events) with JSON payload inspection. - Connection Test Tools: One-click API credentials validation for Meta CAPI and TikTok Events API.
- Sanitized Diagnostics Exporter: Easy system report sharing for quick support.
- Live Event Logs: Built-in event log table (
The Method (Architecture Pipeline)
[ WooCommerce Storefront / Checkout ]
│
▼ (1. Native Hooks: Classic & Blocks)
[ NormalizedEvent Engine ]
│
┌─────────────┴─────────────┐
▼ ▼
(2. Client Dispatch) (3. Async Server Queue)
• Google Consent Mode v2 • WooCommerce Action Scheduler
• gtag.js (GA4 & Ads) • SHA-256 Customer Data Normalization
• fbq (Meta Pixel) • Meta CAPI (Graph API v22.0)
• ttq (TikTok Pixel) • TikTok Events API (v1.3)
│ │
└─────────────┬─────────────┘
▼
(4. Deterministic Deduplication: shared event_id)
│
▼
[ 10/10 Event Match Quality & Clean Reporting ]
Supported Platforms & Events
| Event Name | GA4 (gtag.js) |
Google Ads | Meta Pixel | Meta CAPI | TikTok Pixel | TikTok Events API |
|---|---|---|---|---|---|---|
view_item_list |
Yes | - | - | - | - | - |
view_item |
Yes | - | ViewContent | ViewContent | ViewContent | ViewContent |
add_to_cart |
Yes | - | AddToCart | AddToCart | AddToCart | AddToCart |
remove_from_cart |
Yes | - | - | - | - | - |
view_cart |
Yes | - | - | - | - | - |
begin_checkout |
Yes | Optional | InitiateCheckout | InitiateCheckout | InitiateCheckout | InitiateCheckout |
add_shipping_info |
Yes | - | AddPaymentInfo | AddPaymentInfo | AddPaymentInfo | AddPaymentInfo |
add_payment_info |
Yes | - | AddPaymentInfo | AddPaymentInfo | AddPaymentInfo | AddPaymentInfo |
purchase |
Yes | Conversion | Purchase | Purchase | PlaceAnOrder | PlaceAnOrder |
refund |
Yes | - | - | - | - | - |
Documentation & Setup Guide
1. Requirements
- WordPress 6.8 or higher (tested up to 7.1.3).
- WooCommerce 10.0 or higher (tested up to 11.2.1).
- PHP 8.2 or 8.3 (tested on PHP 8.3.33, PHP 8.4 ready).
- cURL extension enabled for server-side API dispatches.
2. Quick Start (5 Steps)
- Navigate to Settings: Go to WooCommerce > Conversion Tracking in your WordPress dashboard.
- Google Tab: Enter your GA4 Measurement ID (
G-XXXXXXXXXX) and Google Ads Conversion ID / Label. Enable Enhanced Conversions. - Meta Tab: Enter your Meta Pixel ID and System User Access Token. Run the Test Connection button to verify API connectivity.
- TikTok Tab: Enter your TikTok Pixel Code and Access Token.
- Consent Tab: Choose your Consent enforcement mode and set Google Consent Mode v2 default states.
Developer Hooks & Filters
Extend and customize payloads with native WordPress hooks:
// Filter hashed customer matching parameters before server dispatch
add_filter( 'wpcalibrate_ct_hashed_customer_data', function( array $data, $order ) {
return $data;
}, 10, 2 );
// Filter Meta Conversions API single event payload before transport
add_filter( 'wpcalibrate_ct_meta_capi_event_payload', function( array $payload, $event ) {
return $payload;
}, 10, 2 );
// Filter TikTok Events API payload before transport
add_filter( 'wpcalibrate_ct_tiktok_eapi_event_payload', function( array $payload, $event ) {
return $payload;
}, 10, 2 );
// Hook into completed refund processing
add_action( 'wpcalibrate_ct_order_refund_processed', function( $order_id, $refund_id ) {
// Custom action
}, 10, 2 );
Directory Structure
wpcalibrate-conversion-tracking/
├── wpcalibrate-conversion-tracking.php # Main plugin entry point & bootstrap
├── uninstall.php # Secure cleanup handler
├── readme.txt # WordPress.org standard metadata
├── README.md # Comprehensive documentation
├── composer.json # PSR-4 autoload definition
├── languages/
│ └── wpcalibrate-conversion-tracking.pot
├── branding/
│ ├── icon-dark.png # Admin header & branding asset
│ └── icon-white.png # Admin menu icon asset
├── assets/
│ ├── admin/
│ │ ├── css/admin.css # Modern admin design stylesheet
│ │ └── js/admin.js # Connection tests & AJAX controllers
│ └── frontend/
│ ├── css/frontend.css # Frontend styling
│ ├── js/tracker.js # Central frontend event bus & SDK loader
│ └── js/blocks.js # WooCommerce Blocks event bridge
└── src/
├── Autoloader.php # Standalone PSR-4 autoloader
├── Plugin.php # Core lifecycle orchestrator
├── Activation/ # Activator & Deactivator handlers
├── Admin/ # AdminManager & tab view renderers
├── Contracts/ # Strongly typed interfaces
├── Data/ # NormalizedEvent & CartItemData
├── Events/ # EventFactory & Deduplication
├── Integrations/ # GA4, Ads, Meta, TikTok adapters
├── Consent/ # Consent Mode v2 & WP Consent API
├── Queue/ # Action Scheduler queue & retry
├── Logging/ # Custom DB log table & logger
├── Diagnostics/ # System status & exporter
├── Settings/ # Settings repository & validator
├── Licensing/ # Licensing service abstraction
└── Privacy/ # WP Personal Data Exporter & Eraser
Changelog
[1.1.0] - 2026-10-19
- Added: Complete modern UI redesign with CSS variables, elevated cards, and switch toggles.
- Added: Comprehensive Overview Tab with Executive Hero stats, Plugin Purpose, Method Pipeline, and 5-step Quick Start guide.
- Added: Automated PowerShell FTP deployment script (
deploy-ftp.ps1). - Enhanced: Status pills in admin header indicating WooCommerce, HPOS, and Blocks readiness.
[1.0.1] - 2026-10-19
- Fixed: Resolved IDE Intelephense diagnostics ("Problems 448") by adding
.vscode/settings.json,stubs/wordpress-stubs.php, andstubs/woocommerce-stubs.php. - Added: Standardized project context files (
CLAUDE.md,PROJECT_MEMORY.md,TROUBLESHOOTING.md,CHANGELOG_AI.md,TODO_AI.md).
[1.0.0] - 2026-10-19
- Initial Release: Enterprise conversion tracking for GA4, Google Ads, Meta Pixel/CAPI, and TikTok Pixel/Events API.
- HPOS & Blocks: Full compatibility with WooCommerce High-Performance Order Storage and Cart/Checkout Blocks.
- Action Scheduler: Decoupled asynchronous server event queue with automatic backoff retry.
- Testing: 100% automated test suite coverage with PHPUnit (27 tests, 117 assertions).
License & Support
- License: GPLv2 or later (GNU General Public License v2.0)
- Developer: WPCalibrate
- Support: support@wpcalibrate.com
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.