> ## Documentation Index
> Fetch the complete documentation index at: https://docs.innkeepr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# WooCommerce

> [card] Connection Info
>
> The WooCommerce Connection is an **Events** connection.
>
> * **Events:** Sends events, such as page views or orders, to Innkeepr.

[WooCommerce](https://woocommerce.com) is the e-commerce plugin for WordPress. Add WooCommerce as a Connection to Innkeepr to send your orders to Innkeepr, so Objectives and Signals learn from real purchases.

## Getting Started

1. In WordPress, go to **WooCommerce** > **Settings** > **Advanced** > **REST API**.
2. Click **Add key**, enter a description such as `Innkeepr`, select an administrator as **User**, and set **Permissions** to **Read**.
3. Click **Generate API key** and copy the **Consumer key** and **Consumer secret**.
4. In Innkeepr, go to your workspace's **Connections** page and click **Add connection**.
5. Choose **WooCommerce**.
6. Enter your **store URL** and paste the **Consumer key** and **Consumer secret**.
7. Click **Save**.

## Supported events

| WooCommerce | Innkeepr event | Description |
| :- | :- | :- |
| Completed order | `checkout_completed` | The customer completed the order |

Innkeepr detects the order on the order confirmation page and reads its details, such as revenue, products, and currency, through the WooCommerce REST API. The event follows the [E-Commerce Spec](https://docs.innkeepr.ai/connections/spec-ecommerce.md#checkout-completed).

WooCommerce sends no other events to Innkeepr. To track product views, add-to-cart, or checkout starts, send them with [Innkeepr.js](https://docs.innkeepr.ai/getting-started/getting-started-guide.md#install-innkeepr-js).

## Permissions

* The REST API key needs **Read** permission. Innkeepr never changes data in your store.
* Only WordPress users who can manage WooCommerce, such as **Administrators**, can create REST API keys.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.