WooCommerce plugin docs / Analytics

Analytics (feature)

Overview

Store-side funnel and attribution for assistant activity. Not Google Analytics. Disabling it does not disable shopping features.

How It Works

Events are written off the hot path (Emitter). Attribution matches WooCommerce orders to prior AI activity inside the window. Shoppers cannot write attribution via REST.

Admin: WooCommerce → AI Assistant → Analytics → Overview (Today / Yesterday / Last 7 / 30 / 90 Days), Settings, and Attribution details (section=order).

Overview can include chart, funnel, products, actions, Top AI Languages, questions, comparison, attributed orders, and insights. Export: admin_post_aiwsa_analytics_export. Insights refresh: admin_post_aiwsa_analytics_insights.

How to Enable It

Analytics → Settings → Enable AI Analytics. Optional Enable Revenue Attribution.

Configuration

Analytics settings.

Frontend Usage

None. Shoppers are not shown this dashboard.

Example

7-day window: 40 chats, 12 add-to-carts, 3 attributed orders. Top AI Languages shows bn vs en session codes.

Behavior

Empty store → empty cards, not fake numbers. Attribution details hide emails and payment details.

Limitations

  • Attribution is heuristic, not a court-ready causal model.
  • Forever retention (0) never purges analytics tables.

Troubleshooting

No data: analytics off, or no storefront traffic yet. Orders missing: attribution off or outside window.