Halfborg Pixel Tracking for WooCommerce sends your store’s e-commerce events to Meta and Google from one plugin. For Meta, it sends events both from the browser (Meta Pixel) and from your server (Facebook Conversions API), so conversions are still recorded when the browser pixel is blocked. The two
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.0 and PHP 7.2.
SourceWordPress plugins · Nov 23, 2026
01 / Source details
Aboutthistool.
Halfborg Pixel Tracking for WooCommerce sends your store’s e-commerce events to Meta and Google from one plugin.
For Meta, it sends events both from the browser (Meta Pixel) and from your server (Facebook Conversions API), so conversions are still recorded when the browser pixel is blocked. The two halves share an event ID so Meta counts each event once.
For Google, it loads one Google tag at the top of every page and sends the full WooCommerce funnel to Google Analytics 4 and Google Ads.
Features
Meta: ViewContent, AddToCart, InitiateCheckout and Purchase, sent from both the browser and the server with deduplication
Google Analytics 4: view_item_list, select_item, view_item, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, with full item data
Google Ads: purchase conversion with transaction ID, new-customer flag and optional cart data for Merchant Center, dynamic remarketing (retail) with product IDs that match your Merchant Center feed, and optional enhanced conversions
Each Google purchase is reported once, even if the thank-you page is reloaded
Consent Mode defaults that deny storage in the EEA, UK and Switzerland until a consent tool updates them
Shop managers and administrators are left out of Google tracking by default
Works with WooCommerce’s High-Performance Order Storage (HPOS)
Works with the classic and the block-based cart and checkout, and with classic and block themes
Customer data is SHA-256 hashed before it is sent
How It Works
01As a visitor browses, adds to cart and checks out, the plugin sends each step to the services you have configured
02Google add-to-cart and remove-from-cart events are recorded from WooCommerce’s own cart, so they are captured whether the product was added from a product page, a shop page link, an AJAX button or a cart block, and when a quantity is changed
03When a customer completes an order, the purchase is sent with its value, currency, items and order number
04Customer data is hashed with SHA-256 before it leaves your server
External services
This plugin connects to Meta (Facebook) and Google to send e-commerce tracking events. This is the core purpose of the plugin and it cannot function without them. Each service is used only once you enter its ID on the settings screen.
1. Meta Conversions API (server-side)
The plugin sends conversion events from your server to the Meta Conversions API endpoint at https://graph.facebook.com . This is what allows conversions to be attributed to your Meta ad campaigns even when the browser pixel is blocked.
Events are sent when a visitor views a product (ViewContent), adds a product to the cart (AddToCart), begins checkout (InitiateCheckout), and completes an order (Purchase).
The data sent with these events is: the customer’s email address, phone number, first and last name, city, state, postcode and country — each of which is irreversibly hashed with SHA-256 before it leaves your server — together with the order or product value, the currency, the product IDs, the number of items, an event ID used for deduplication, the page URL, and the visitor’s IP address, browser user-agent and Meta browser cookies ( _fbc and _fbp ), which Meta requires in unhashed form for attribution.
Nothing is sent until you enter a Pixel ID and a Conversions API Access Token on the settings screen. If either is missing, no server-side event is sent.
2. Meta Pixel (browser-side)
When a Pixel ID is configured, the plugin loads Meta’s tracking script fbevents.js from https://connect.facebook.net into your visitors’ browsers, and the pixel reports page views and the events listed above to https://www.facebook.com . Each browser event carries the same event ID as its server-side counterpart so Meta can deduplicate the pair. A <noscript> image fallback to https://www.facebook.com/tr is included for visitors with JavaScript disabled.
This service is provided by Meta Platforms, Inc. Please review their terms and privacy policy, and make sure your site’s own privacy policy and cookie consent notice disclose this tracking to your visitors:
Meta Terms of Service: https://www.facebook.com/legal/terms/
Meta Business Tools Terms: https://www.facebook.com/legal/terms/businesstools
Meta Privacy Policy: https://www.facebook.com/privacy/policy/
3. Google Analytics 4 and Google Ads (browser-side)
When a GA4 Measurement ID or Google Ads Conversion ID is configured, the plugin loads Google’s tag gtag.js from https://www.googletagmanager.com into your visitors’ browsers. Nothing is loaded for Google if both IDs are empty.
The tag reports page views and the following events to Google Analytics ( google-analytics.com ) and Google Ads ( google.com , googleadservices.com , doubleclick.net ): product list views, product clicks, product views, add to cart, remove from cart, cart views, begin checkout, shipping and payment method selection, and purchases. These events carry the product IDs, SKUs, names, categories, prices and quantities involved, the cart or order value, the currency, any coupon codes, and for purchases the order number, tax and shipping. If you enter a Merchant Center ID, the Google Ads purchase conversion also carries that ID, your feed’s country and language, the sold product IDs, prices and quantities, and the order discount. Google’s tag also collects the page URL, the visitor’s IP address, browser details and Google cookies.
If you turn on enhanced conversions, the purchase conversion also includes the customer’s billing email address, phone number, first and last name and street address, each SHA-256 hashed before it is added to the page, plus their unhashed city, state, postcode and country.
This service is provided by Google LLC. Please review their terms and privacy policy, and make sure your site’s own privacy policy and cookie consent notice disclose this tracking to your visitors:
Google Terms of Service: https://policies.google.com/terms
Google Analytics Terms of Service: https://marketingplatform.google.com/about/analytics/terms/us/
Google Privacy Policy: https://policies.google.com/privacy
See it in action
A closer look.
Settings page
02 / Source details
Gettingstarted.
01Upload the plugin files to the /wp-content/plugins/halfborg-pixel-tracking-for-woocommerce directory, or install the plugin through the WordPress plugins screen directly.
02Activate the plugin through the ‘Plugins’ screen in WordPress
03Go to WooCommerce > Pixel Tracking to configure the plugin
04For Meta, enter your Facebook Conversions API Access Token and Pixel ID
05For Google, enter your GA4 Measurement ID and/or Google Ads Conversion ID and purchase conversion label
06Deactivate any other plugin that sends the same events to Meta or Google, so nothing is counted twice
03 / Source details
Frequently asked questions.
Where do I find my Facebook Conversions API Access Token?
You can generate an access token in Events Manager. Go to Events Manager > Data Sources > select your Pixel > Settings > Conversions API > Generate access token.
Facebook’s official instructions: https://developers.facebook.com/docs/marketing-api/conversions-api/get-started/
Where do I find my Facebook Pixel ID?
Your Pixel ID can be found in Events Manager under Data Sources, next to your pixel name.
Facebook’s official instructions: https://www.facebook.com/business/help/952192354843755
Where do I find my GA4 Measurement ID?
In Google Analytics, go to Admin > Data streams, open your web stream, and copy the Measurement ID (it starts with G-).
Google’s official instructions: https://support.google.com/analytics/answer/9539598
Where do I find my Google Ads Conversion ID and label?
In Google Ads, go to Goals > Conversions, open your Purchase conversion action, and choose to set up the tag yourself. The event snippet contains send_to: ‘AW-XXXXXXXXX/label’. The part before the slash is the Conversion ID and the part after it is the label.
Google’s official instructions: https://support.google.com/google-ads/answer/6095821
Google Ads says sold item IDs can’t be matched to Merchant Center. What do I check?
The product IDs the plugin sends must be the IDs in your Merchant Center feed. Check two settings under WooCommerce > Pixel Tracking: “Remarketing Product ID” must match your feed plugin’s ID format, and “Product Variations in Feed” must match whether your feed lists each variation separately or only the parent product. Products you have excluded from your feed are not in Merchant Center, so they can never be matched; their sales still count as conversions.
Google Ads shows 0% basket data coverage for my purchase conversion. Why?
Google Ads only reads sold products from the purchase conversion when it also knows which Merchant Center account they belong to. Enter your Merchant Center ID under WooCommerce > Pixel Tracking. Feed Country and Feed Language default to your store’s country and site language; change them only if your feed targets a different country or language.
Can I use it alongside other Google or Meta tracking plugins?
Only if those plugins are not sending the same events. Two plugins sending GA4 or Google Ads events will count every page view, add to cart and purchase twice. Switch the duplicate tracking off in the other plugin, or deactivate it.
Is this plugin compatible with WooCommerce HPOS?
Yes, this plugin is fully compatible with WooCommerce’s High-Performance Order Storage (HPOS) feature.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati