Installation
WordPress
Single-file plugin with WooCommerce purchase tracking.
The PixelFox WordPress plugin injects the tag on every page and - when WooCommerce is
active - records product_added_to_cart and server-side purchase events.
Install
- Download
signals.php(or copy it frompackages/wordpress/in the repo). - Upload it to
wp-content/plugins/(or zip it and use Plugins → Add New → Upload). - Activate PixelFox in the plugins list.
- Open Settings → PixelFox and paste:
- API key - from your PixelFox dashboard.
- Host - your ingest API URL, e.g.
https://api.pixelfox.app. - Script URL - where
signals.min.jsis served from.
The tag is injected via the wp_head hook on every front-end page.
WooCommerce events
With WooCommerce active you get, with zero extra configuration:
product_added_to_cart- fired on the next page render after an add-to-cart (flashed through the session), withproduct_id,product_name,price,quantityandcurrency.purchase- sent server-side from thewoocommerce_thankyouhook (and the processing/completed status transitions, so a closed tab still counts) straight to/v1/ingest, withorder_id,total,currency, the line items, the full billing profile (email, phone, name, city, state, postcode, country), the customer id, the shopper's IP and user agent as recorded by WooCommerce, and the_fbp/_fbccookies and click ids snapshotted on the order at checkout. Because it originates on your server it is immune to ad blockers, and the profile lets PixelFox hash and forward every match key Meta and TikTok weigh.
Limitations
- AJAX/block-based carts don't reload the page, so the flashed
product_added_to_cartevent fires on the next page navigation. For instant tracking, define aclickevent on your add-to-cart button in the dashboard instead - no code needed. - The server-side
purchaseevent uses a fresh UUID as itsevent_id. If you also track purchases in the browser on the thank-you page, disable one of the two to avoid double counting on GA4 (Facebook/TikTok dedup only applies when both sides share an id).