
外掛標籤
開發者團隊
② 後台搜尋「ProductMetrics Profit Intelligence Platform for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Product Metrics shows what each order and product actually earns once product costs, payment fees and shipping are taken into account. This plugin connects your WooCommerce store to your Product Metrics account in a few minutes.
Once connected, Product Metrics:
Keeps your orders, refunds and order history in sync, including new orders as they come in.
Uses your product costs from WooCommerce’s cost of goods field or any custom field you already use, plus payment and shipping costs if you store them on orders.
Stays up to date with your product catalog.
Records storefront visits, add to cart, checkout and purchases, so your ad accounts learn which campaigns bring in profitable orders.
You need a Product Metrics account. Create a WooCommerce connection there, paste the one-time setup token under WooCommerce → Product Metrics, and you’re connected.
External services
This plugin connects your store to the Product Metrics service. It starts sending data once you connect the store with your setup token.
woocommerce.productmetrics.io keeps your store data in sync:
When you connect: the setup token, the plugin version, and your store’s country and currency.
While connected: orders, refunds, customer order history and your product catalog. Order data includes order numbers, totals, taxes, discounts, line items, costs, and the customer’s email address, phone number, name, postcode and country. Product Metrics uses customer details to recognise returning customers and to report conversions to your ad accounts.
Your cost and order status settings, connection checks, and a short notice when a product changes.
When you disconnect or delete the plugin: a request to remove the connection.
tracking.productmetrics.io receives storefront events:
Your site loads the storefront’s tracking settings from this service.
Events go through your own site to this service. They contain the page address and its campaign parameters, the referring page, the visitor’s consent choices, cart and checkout contents, and for purchases the order number, value and items. After a visitor opts in to advertising, events also include a hashed email address.
Your site adds the visitor’s IP address and browser user agent to each event, which Product Metrics uses to match conversions for the ad accounts you connect.
After a visitor opts in to advertising, the plugin sets first-party cookies on your domain. It also keeps consent and measurement state in the browser’s local storage.
Terms of service: https://productmetrics.io/terms-of-service
Privacy policy: https://productmetrics.io/privacy-policy
Source code
The storefront script (assets/bundle.js and assets/sdk.deflate.js) is minified. Its full TypeScript source and build script are included under assets/src/. With Bun installed (the version is in assets/src/sdk-build.json), run:
bun assets/src/build.ts rebuilt/
to rebuild both files exactly.
