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

# Click and conversion events

> Send click and conversion events from your BigCommerce store to the Algolia Insights API.

export const UserToken = () => <Tooltip tip="A user token is a pseudonymous ID that represents an individual user across Algolia searches and events. It links queries, clicks, and conversions to a user profile, enabling user-level analytics, personalization, and recommendations." cta="User token" href=" /doc/guides/sending-events/concepts/usertoken">
    user token
  </Tooltip>;

By default, you'll send [click and view events](/doc/guides/sending-events/concepts/event-types) when users view or select search results.

To turn off sending events,
clear the **Use click analytics** checkbox.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/insights-1.png?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=a4e4eec5d3ac373759d6b04e3758426f" alt="Screenshot of a settings page with a checked 'Use click analytics' checkbox and toggles for 'Add to cart' and 'Order purchased' events." width="616" height="673" data-path="doc/integration/bigcommerce/search-settings/insights-1.png" />

By default, a new anonymous <UserToken /> is generated on every page refresh.
For more persistent user tokens, select **userToken is set using cookies depending on the user's approval**.

Before you can use cookies to store the user token,
you must turn on "Cookie consent tracking" in your BigCommerce control panel.
To find this option in your BigCommerce store,
go to **Settings > Security & Privacy > Your customers' privacy.**

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/insights-3.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=a75e6df24cad399bbc89b6c952b55980" alt="Screenshot of a settings section with a 'Cookie consent tracking' toggle enabled and a 'Privacy Policy URL' input field." width="1539" height="317" data-path="doc/integration/bigcommerce/search-settings/insights-3.jpeg" />

## Big Open Data Layer analytics

1. Check **Use data layer analytics** to enable [Big Open Data Layer](https://developer.bigcommerce.com/docs/integrations/hosted-analytics).
2. Select  **Add to cart**, **Order purchased**, or both events.
3. Select the type of user interaction to track:

   * **Add to cart**. Send an event when a user add a product to their cart.
   * **Order purchased.** Send an event when a user completes a purchase.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/big-open-data-layer-storefront-event.png?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=e64e1a0d315b41aed61993448e657b81" alt="Screenshot of the 'Big Open Data Layer Analytics' section with 'Use data layer analytics' enabled and 'Add to cart' and 'Order purchased' toggles on." width="955" height="439" data-path="doc/integration/bigcommerce/search-settings/big-open-data-layer-storefront-event.png" />
