WooCommerce-এ order আছে, কিন্তু GA4 report-এ purchase নেই। আবার কোনো site-এ একই order দুবার দেখা যায়। Order system ও analytics collection এক নয়। Event তৈরি, tag fire, সঠিক property-তে পৌঁছানো এবং report-এ দেখা—এই স্তরগুলো আলাদা করে পরীক্ষা করলে অনুমানের বদলে কারণ ধরা যায়। এই গাইড client-side ecommerce tracking-এর diagnosis নিয়ে; আপনার integration-এর implementation আলাদা হতে পারে।
GA4-এ WooCommerce Purchase Tracking কাজ করছে না: পরীক্ষা
একটি দায়িত্বপ্রাপ্ত integration রাখুন
Plugin, GTM এবং theme code—কোনটি ecommerce event পাঠায় লিখুন। একাধিক system একই purchase পাঠাচ্ছে কি না দেখুন। সব tracking একসঙ্গে delete করার বদলে প্রতিটির owner ও purpose নির্ধারণ করুন। Staging বা test property ব্যবহার করলে production report অপ্রয়োজনীয় test data দিয়ে ভরবে না।
Property ও Measurement ID মিলান
সঠিক GA4 property ও web stream নির্বাচন করুন। Website-এ বসানো Measurement ID-এর সঙ্গে dashboard মিলিয়ে নিন। ভুল property-তে দেখলে functioning tag-ও missing মনে হবে। GTM ব্যবহার করলে container version publish হয়েছে কি না এবং সঠিক site-এ load হচ্ছে কি না দেখুন।
Purchase event আসলে তৈরি হচ্ছে?
আপনার plugin বা data layer-এর documented event পরীক্ষা করুন। Developer Tools বা supported debugger-এ payload দেখুন। Order confirmation page খোলা মানেই purchase event তৈরি হয়েছে নয়। Event name-এর spelling ও case গুরুত্বপূর্ণ। Data layer event এবং GA4 event tag mapping আলাদা হতে পারে।
Transaction ও item data দেখুন
প্রতিটি প্রকৃত transaction-এর জন্য স্থিতিশীল ও উপযুক্ত transaction_id, amount, currency ও item তথ্য দিন। Example ID সব order-এ hardcode করবেন না। Google-এর ecommerce schema অনুযায়ী required ও recommended parameters মিলান। Quantity বা price ভুল হলে event দেখা গেলেও revenue report বিভ্রান্ত হবে।
Consent ও collection blocker
Consent choice, browser extension, content blocker বা network failure collection-এ প্রভাব ফেলতে পারে। বৈধ consent configuration রেখে controlled test করুন; tracking বাড়ানোর জন্য user choice bypass করবেন না। Backend order count ও analytics count সবসময় সমান হবে ধরে নেবেন না।
DebugView ও network evidence
Tag preview বা supported debug mode দিয়ে নিজের test session দেখুন। Browser request পাঠিয়েছে কি না ও debug property-তে event এসেছে কি না আলাদা করুন। Network request fail হলে response দেখুন। DebugView-এ event থাকলেও standard report processing আলাদা; সঙ্গে সঙ্গে সব report-এ একই ফল আশা করবেন না।
Paid order-এর trigger ঠিক করুন
আপনার business ও integration অনুযায়ী purchase কখন পাঠানোর কথা সেটি লিখুন। Payment cancel বা failed order-এ successful purchase পাঠানো হচ্ছে কি না test করুন। Browser refresh-এ duplicate event হচ্ছে কি না দেখুন। Provider verification ও analytics transaction mapping-এর সম্পর্ক developer-কে পরিষ্কার করুন।
Report ও privacy review
Report date, timezone ও filter মিলিয়ে দেখুন। GA4-এ customer email, phone বা নামের মতো নিষিদ্ধ ব্যক্তিগত তথ্য পাঠাবেন না। Test order-এর non-sensitive transaction reference দিয়ে মিলান। Update-এর পরে একটি small regression test রাখুন, যাতে plugin change-এ tracking বন্ধ হলে দ্রুত বোঝা যায়।
কাজের ক্রম: ছোট checklist
- Tracking owner, stream ও Measurement ID লিখুন।
- একটি controlled test order করুন।
- Purchase payload এবং tag firing দেখুন।
- Consent ও debug collection যাচাই করুন।
- Processed report ও backend order আলাদা reconcile করুন।
পরীক্ষার ফল যেভাবে মিলাবেন
| পরীক্ষা | যা দেখবেন |
|---|---|
| Successful order | সঠিক purchase event ও transaction reference |
| Refresh | একই sale অনিয়ন্ত্রিতভাবে নতুন transaction নয় |
| Cancelled order | ভুল successful purchase নেই |
সাধারণ প্রশ্ন
সব order GA4-এ না থাকলে tracking ভাঙা?
সবসময় নয়। Consent, blocker ও implementation-এর সীমা বিবেচনা করে test evidence দেখুন।
একটি ID সব order-এ দিতে পারি?
না। প্রকৃত আলাদা transaction আলাদা পরিচয় পাবে; একই transaction-এর পরিচয় স্থিতিশীল রাখুন।
Email দিয়ে order মিলাব?
GA4 event-এ customer email পাঠাবেন না। অনুমোদিত non-sensitive transaction reference ব্যবহার করুন।
সম্পর্কিত গাইড
- Google Ads duplicate conversion
- Payment ও order mismatch যাচাই
প্রাথমিক বিষয়গুলো জানতে WooCommerce payment verification গাইড পড়তে পারেন।