
CP Referrer and Conversion Tracking registers how the website visitors reached the website, identifying the referral website. Also track conversions.
CP Referrer and Conversion Tracking is a useful tool for evaluating the result of marketing campaigns. It records the referral website of each visitor and it can also be used to identify the referral of the conversions (purchases, contact form submissions, appointments, bookings).
The main features are:
-
Records the referrer (HTTP referer) of each website visitor (tracking logs)
-
Provides graphics / stats of referral websites and visitors (tracking stats)
-
Allow to create different referral links for different marketing campaigns (referral sources)
-
Records the original referrer and the latest referrer of the conversions
-
Includes integration with multiple plugins for tracking its conversions
Recording the referrer
The CP Referrer and Conversion Tracking plugin implements an efficient way to detect and store the referral website when the HTTP referer header is present(when the user clicks on a link pointing to a webpage). This automatically identify for example when the user comes from Google, Facebook or from other external website.
The visitors with identified referrers are listed under the “Tracking Logs” menu. The referrer, IP address and time of the first visit is recorded as part of the logs.
To avoid storing a large number of referrer logs, the old logs are deleted as default every 90 days. This number of days to delete old logs can be edited from the plugin settings.
Graphics / stats of referral websites
The recorded logs are used to render graphics indicating the evolution of logs received per day, the logs received per hour and the referral websites identified.
Stats are provided also for logs received per year, during the latest 12 months, during the latest 12 weeks and during the latest 30 days. This helps to evaluate evolution of referrers and visitors during different periods of time. Note: These stats may be impacted by the automatic deletion of old logs.
This section is located under the plugin menu “Tracking Stats”.
Creating different referral links for different marketing campaigns
The purpose of this section is to create links for different marketing platforms, making easier to identify the referral.
For example you can setup a different entry point for a Google Adwords campaign and for a Facebook Ads, this way the exact referrer source will be reported even if the automatic HTTP referer info is not sent.
This section is located under the plugin menu “Referral Sources”.
Tracking Conversions
The CP Referrer and Conversion Tracking plugin can identify the referral of conversions, for example contact form submissions, purchases, bookings, appointment requests, etc…
The conversions are listed with the referrer of the initial visit and also with the referrer of the latest user session in the case the visitor used a different referrer for the latest sessions when the conversion happened.
To register the conversions the related add-on must be activated (add-ons are included in the plugin). Currently the plugin support several conversion add-ons for different plugins (contact forms, appointment requests, bookings, paypal payments) and we will be continuously working adding new integrations to identify conversions of third party plugins.
This section is located under the menu “Tracking Conversions”.
Tracking conversions originated in other plugins
The “Add Ons” menu already includes several conversion add-ons for different plugins, for example to track conversions like the following:
- Contact forms
- Quote request forms
- Appointment bookings
- General bookings
- Polls
- Payment forms
Includes conversion tracking for the following plugins:
New add-ons will be added soon.
For developers: If you need to track a custom conversion writing the please see in the FAQ the supported hooks.
Screenshots

Tracking logs with referrers, UTM parameters, and landing pages

Tracking stats and interactive charts with UTM breakdowns

UTM Campaign URL Builder and custom referral rules

Conversions with first-touch and last-touch referrer and UTM attribution
FAQ
I need a new plugin conversion integrated or a new feature.
Feel free to contact us in the support forum. We will point you to an existing solution if one is available or add your request to our development roadmap.
How do I remove all plugin database tables and settings when uninstalling?
Go to CP Referrer Tracking > General Settings, enable Delete All Plugin Data on Uninstall, and save your settings before deleting the plugin from the WordPress Plugins screen.
For developers: Which hooks are supported for registering custom conversions and reading UTM data?
Register a custom conversion:
do_action( 'cpreftrack_register_conversion', 'my_custom_conversion_identifier', 'My Conversion ID or Data' );
Retrieve the current visitor’s recorded referrer:
$referrer = apply_filters( 'cpreftrack_referrer', '' );
Retrieve the current visitor’s recorded first-touch UTM parameters (associative array):
$utm = apply_filters( 'cpreftrack_utm_data', array() );
Retrieve the current visitor’s complete attribution snapshot (first/last referrer, landing page, and first/last UTM parameters):
$attribution = apply_filters( 'cpreftrack_attribution_data', array() );
Customize how UTM-only visits (without an HTTP referer header) are labeled:
add_filter( 'cpreftrack_utm_referrer_label', function( $label, $utm_params ) {
return $label;
}, 10, 2 );
Customize how a conversion appears in the Conversions list:
add_filter( 'my_custom_conversion_identifier', 'my_custom_conversion_identifier_fn', 10, 1 );
function my_custom_conversion_identifier_fn( $text ) {
// Modify and escape the output as needed.
return esc_html( $text );
}
Customize the capability required to access plugin admin screens (defaults to manage_options):
add_filter( 'cpreftrack_capability', function() {
return 'manage_options';
} );
ChangeLog
2.1.0
- Added Native UTM Parameter Tracking (
utm_source, utm_medium, utm_campaign, utm_term, utm_content) with automatic first-touch and last-touch attribution even when HTTP referer headers are stripped.
- Added a dedicated UTM Parameters column to Tracking Logs, first-touch and last-touch UTM attribution badges to Conversions, and dedicated UTM columns (
UTM Source, UTM Medium, UTM Campaign, UTM Term, UTM Content) to CSV exports.
- Added an interactive UTM Campaign URL Builder with live preview and one-click copy under Referral Sources.
- Added UTM Source, UTM Medium, and UTM Campaign breakdown dimensions to Tracking Stats.
- Added a native WordPress Dashboard Widget displaying 7-day referral and conversion KPIs, an inline SVG 7-day activity sparkline, top referrers, and recent conversions (toggleable from General Settings).
- Added a dedicated WooCommerce Order Attribution Metabox (HPOS and Classic Order Storage compatible) displaying origin type, first-touch and last-touch referrers, initial landing page, and first/last UTM chips directly inside WooCommerce orders, plus formal WooCommerce HPOS (
custom_order_tables) compatibility declaration and the cpreftrack_attribution_data developer filter.
- Added a toggle in General Settings to enable/disable native UTM tracking, updated WordPress GDPR Privacy Policy Guide & Personal Data Exporter to include UTM attribution, and added the
cpreftrack_utm_data and cpreftrack_utm_referrer_label developer filters.
- Added a practical built-in Help & User Guide screen covering quick-start setup, UTM best practices, attribution, WooCommerce, GDPR privacy, and troubleshooting, with contextual Help links from every plugin screen, the WP Dashboard widget, and the WooCommerce Order metabox.
- Synchronized
CPREFTRACK_VERSION and CPREFTRACK_DB_VERSION constants to 2.1.0 with automatic dbDelta() migration adding utm_data to the conversions table.
2.0.9
- Added GDPR and privacy settings: salted one-way IP hashing, IP anonymization, Do Not Track (DNT) / Global Privacy Control (GPC) support, cookieless tracking mode, WordPress Privacy Policy Guide integration, and Personal Data Exporter & Eraser support.
- Added a multisite-compatible
uninstall.php script with an opt-in setting to remove all plugin tables and options upon deletion.
- Modernized the admin interface with a unified navigation shell, live KPI dashboard cards, native date filters, a campaign link builder with live preview and one-click copy, toggle switches, and interactive HiDPI canvas charts with hover tooltips.
- Removed legacy jQuery UI 1.8.20 Cupertino styles, IE8
excanvas.min.js, and unscoped global CSS; all admin styles are cleanly scoped under .cprt-admin.
- Security hardening: added
ABSPATH guards to all PHP files, standardized capability checks (manage_options), moved all destructive and settings actions to POST with CSRF nonces and PRG redirects, added nonce verification and formula-injection protection to CSV exports, updated all dynamic SQL queries to $wpdb->prepare() with $wpdb->esc_like(), replaced unsafe unserialize() with JSON storage and allowed_classes => false fallback, and added HttpOnly, SameSite=Lax, and Secure attributes to tracking cookies.
- Performance improvements: added SQL
LIMIT/OFFSET pagination to all list tables, added database indexes via dbDelta(), and replaced full-table PHP stats loops with SQL GROUP BY aggregation.
- Add-on & PHP 8.2+ fixes: added WooCommerce HPOS support, fixed refunded status detection in CP Contact Form with PayPal, fixed User Registration add-on auto-detection, prevented manually disabled add-ons from auto-enabling, fixed conversions bulk-delete SQL syntax, and resolved PHP 8+ compatibility issues.
1.01.30
- Compatible with WordPress 7.1
1.01.29
- Compatible with WordPress 7.0
1.01.28
1.01.27
- Compatible with WordPress 6.9
1.01.26
1.01.25
- Compatible with WordPress 6.8
1.01.24
- Compatible with WordPress 6.7
1.01.23
- Compatible with WordPress 6.6
1.01.22
- Compatible with WordPress 6.5
- Removed tag: marketing
1.01.21
1.01.20
- Compatible with WordPress 6.4
1.01.19
1.01.18
- Compatible with WordPress 6.3
1.01.17
- Compatible with WordPress 6.2
1.01.16
1.01.15
- Compatible with WordPress 6.1
1.01.14
- Contact Form 7 integration improvement
1.01.12
- Added user registration tracking add-on
1.01.11
- Added tracking of entry page
- Compatible with WordPress 6.0
1.01.10
1.01.09
- Compatible with WordPress 5.9
1.01.08
- Compatible with WordPress 5.8
1.01.07
- Compatible with WordPress 5.7
1.01.06
- Compatible with WordPress 5.6
1.01.05
- Compatible with WordPress 5.5
1.01.04
- Compatible with WordPress 5.4
1.01.03
- Conversion tracking for WooCommerce orders
- Conversion tracking for Contact Form 7 submissions
- Auto-detection added for Contact Form to Email
- Auto-detection added for Appointment Hour Booking
- Auto-detection added for Appointment Booking Calendar
- Auto-detection added for Booking Calendar Contact Form
- Auto-detection added for Calculated Fields Form
- Auto-detection added for Contact Form with PayPal
- Auto-detection added for CP Polls
- Auto-detection added for WP Time Slots Booking Form
1.01.01