WooCommerce
The PixelMili WordPress / WooCommerce plugin installs the tracking script, wires every WooCommerce hook to the right event, and handles COD filtering — zero code changes needed.
PixelMili Tracker for WooCommerce
Version 1.0.7 · Requires WooCommerce 4.0+ · PHP 7.2+
Install the plugin
- উপরের Download Plugin বাটনে click করে zip ডাউনলোড করুন।
- WordPress admin-এ যান: Plugins → Add New → Upload Plugin → Choose file → Install → Activate.
- Activate করলে WordPress sidebar-এ Settings → PixelMili মেনু আসবে।
Configure
- WordPress admin-এ Settings → PixelMili এ যান।
- Tracking ID paste করুন — PixelMili dashboard-এ Domains page-এ প্রতিটা domain-এর পাশে
pm_xxxxformat-এ দেখাবে, copy button আছে। - Save Settings click করুন।
এতটুকুই। কোনো code edit, theme পরিবর্তন লাগবে না।
What the plugin auto-tracks
| WooCommerce action | Event fired | Sent from |
|---|---|---|
| Every page load | PageView | Browser script |
| Product page view | ViewContent (exact product ID) | Browser script |
| Add to cart (any button, AJAX or not) | AddToCart | WordPress server |
| Checkout page load | InitiateCheckout (cart product IDs) | Browser script |
| Online payment complete | Purchase | WordPress server |
| COD order marked Completed | Purchase | WordPress server |
প্রতিটা event শুধু একটা জায়গা থেকেই যায়, তাই Meta / TikTok কোনো event দুইবার গোনে না। Page view-এর event গুলো browser থেকে যায় কারণ cache করা page-এ বা search-engine bot-এর visit-এ WordPress server-এর code চলে না/ভুল করে চলে। Add to cart আর Purchase server থেকে যায় কারণ ওগুলো WooCommerce-এর আসল cart/order record থেকে আসে।
iPhone / Safari: returning buyers stay recognised
Safari deletes tracking cookies that a website's JavaScript creates after 7 days (24 hours when the visitor came from an ad). A customer who clicks your Facebook ad, leaves, and buys on day 10 would normally look like a brand-new visitor — the sale can't be tied back to the ad.
The plugin's Cookie Keeper fixes this for WooCommerce stores: your own WordPress
server keeps a copy of the visitor's tracking IDs (PixelMili ID, Meta _fbp/_fbc,
TikTok and Google click IDs) for up to 400 days, and puts them back when Safari has removed them —
on the visitor's next cart, checkout or add-to-cart. It's on automatically; nothing to configure.
COD-aware purchases
Advanced matching fields
The plugin automatically passes email, phone, first/last name, city, and external_id (WooCommerce customer ID) to Meta for enhanced matching — sent to PixelMili over HTTPS and SHA-256 hashed on PixelMili's server before being forwarded to any ad platform.