Simprosys Product Feed for WooCommerce
Pre-Installation

Plugin Setup

Product Submission Controls

Product Attributes & Optimization

Automated Feed Rule

Troubleshooting & Issue Fixes

Advanced Setup Made Easy

Google Merchant Center Setup & Integration

Tracking Tag Setup (Google Ads & Google Analytics 4)

Google Ads & Campaign Setup

Multi-Country

Promotions Feed

Microsoft Advertising Integration & Campaign Setup

META (Facebook) Integration

WooCommerce Store Access & Setup

Billing & Payments

Google Local Inventory Setup

How to resolve “Purchase Conversion Tracking Issue on WooCommerce”
Aug 04, 2026
In this doc, we'll walk you through the Purchase tracking tag triggering issue after a successful purchase on the website, and how you can fix it by adding a few lines of code in your store’s theme file.
This issue is relevant if your store uses a custom theme, page builder, checkout customization plugin, or any third-party extension that overrides the default WooCommerce Thank You page behavior.
Why This Happens
The Purchase Event relies on WooCommerce's standard order completion flow and default Thank You page hooks. When these default hooks are bypassed, our plugin's purchase tracking code does not trigger, and purchase data is not reported to the ad platforms.
This typically happens when:
- A custom theme overrides the thankyou.php file
- A checkout customization plugin replaces the default Thank You page template
- A page builder creates a custom order confirmation page
- Custom code redirects users away from the default WooCommerce Thank You page
- WooCommerce hooks are removed or not executed during checkout completion
Pre-requisite:
- Should be using plugin version 5.3.0 or later.
The Solution
This is easy to fix. The simprosys_purchase_action hook accepts either a WooCommerce Order object or simply an Order ID.
So, before adding the script below to your theme file, please check whether you are passing an order object or order ID when a successful purchase happens on the website.
To restore the purchase event, all you need to do is manually trigger the Simprosys purchase action from your custom Thank You page template.
A. Using Order ID
If your template has access to the WooCommerce Order ID directly, use the following implementation:
if (isset($order_id) && !empty($order_id)) {
if (has_action('simprosys_purchase_action')) {
do_action('simprosys_purchase_action', $order_id);
}
}
| Parameter | Type | Description |
| $order_id | Integer | WooCommerce Order ID of the completed purchase |
B. Using WooCommerce Order Object
If your template provides a WooCommerce Order Object instead of the Order ID, use the following implementation:
if ($order instanceof WC_Order) {
if (has_action('simprosys_purchase_action')) {
do_action('simprosys_purchase_action', $order);
}
}
| Parameter | Type | Description |
| $order | WC_Order | WooCommerce order object. Recommended when already available in the template |
Note: Use whichever implementation matches to what's already available in your custom template; Avoid adding both solutions to prevent any conflicts.
Typical places to add this code include:
- Your custom thankyou.php template
- Checkout success page template
- Order confirmation page template
- Custom WooCommerce checkout override files
Still Facing Issues?
If the purchase event is still not triggering after implementing the above solution, please reach out to our support team. Our team will:
- Our team will verify the purchase event on the website to verify the implementation
- Check for theme or plugin conflicts that may be preventing the action from firing
- Verify that the simprosys_purchase_action hook is being executed correctly
- Verify any custom checkout or order confirmation page customizations
- Provide guidance or a suitable solution based on your store's setup
We hope this will be helpful.
If you have any kind of query on any of these options, you can write to us at support@simprosys.com, and we will definitely help you.
Simprosys Product Feed for WooCommerce
Pre-Installation

Plugin Setup

Product Submission Controls

Product Attributes & Optimization

Automated Feed Rule

Troubleshooting & Issue Fixes

Advanced Setup Made Easy

Google Merchant Center Setup & Integration

Tracking Tag Setup (Google Ads & Google Analytics 4)

Google Ads & Campaign Setup

Multi-Country

Promotions Feed

Microsoft Advertising Integration & Campaign Setup

META (Facebook) Integration

WooCommerce Store Access & Setup

Billing & Payments

Google Local Inventory Setup
