Major Updates:
1. Architecture Clarification
✅ Fixed folder structure
✅ admin-spa/ - Admin interface ONLY
✅ customer-spa/ - Storefront + My Account in ONE app
✅ includes/Admin/ - Admin backend
✅ includes/Frontend/ - Customer backend
✅ Added tracking/ folder in customer-spa
2. SEO Strategy (NEW SECTION)
✅ Hybrid rendering approach
✅ SSR for product/category pages (SEO-critical)
✅ CSR for cart/checkout/account (no SEO needed)
✅ SEO plugin compatibility (Yoast, RankMath, etc.)
✅ WordPress renders HTML, React hydrates for interactivity
✅ Search engines see full, SEO-optimized HTML
3. Tracking & Analytics (NEW SECTION)
✅ Full compatibility with tracking plugins
✅ PixelMySite support (Facebook, TikTok, Pinterest)
✅ Google Analytics / GTM support
✅ Keep WooCommerce classes for compatibility
✅ Trigger WooCommerce events (added_to_cart, etc.)
✅ Push to dataLayer for GTM
✅ Call pixel APIs (fbq, ttq, etc.)
✅ Complete tracking implementation examples
✅ 9 e-commerce events tracked
Key Decisions:
- Product pages: WordPress SSR + React hydration
- SEO plugins work normally (no changes needed)
- Tracking plugins work out of the box
- Store owner doesn't need to configure anything
Result: Customer SPA is SEO-friendly and tracking-compatible!