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

# Native Checkout Events

> Track checkout events with native Google Analytics 4 e-commerce integration via Google Tag Manager

Understanding how customers interact with your checkout is essential for optimizing conversion rates. Ollie Shop natively implements [Google Analytics 4 e-commerce events](https://developers.google.com/analytics/devguides/collection/ga4/ecommerce), giving you complete visibility into your checkout funnel without writing any additional code.

## How It Works

When you configure your Google Tag Manager container in your store's [Integrations](/ollie-shop/configuration/integrations), Ollie Shop automatically sends standardized e-commerce events to the `dataLayer`. These events follow Google's recommended schema, ensuring seamless integration with GA4 and other analytics platforms.

<Info>
  Only a GTM container ID is required. Ollie Shop handles all event formatting and dispatching automatically.
</Info>

## Native Events

The following e-commerce events are automatically tracked throughout the checkout journey:

| Event               | Description                           | When It Fires                   |
| ------------------- | ------------------------------------- | ------------------------------- |
| `view_cart`         | User views their shopping cart        | Cart page is displayed          |
| `begin_checkout`    | User initiates the checkout process   | Checkout flow starts            |
| `add_to_cart`       | Item is added to the cart             | Product added during checkout   |
| `remove_from_cart`  | Item is removed from the cart         | Product removed during checkout |
| `add_shipping_info` | User submits shipping information     | Shipping step completed         |
| `add_payment_info`  | User submits payment information      | Payment step completed          |
| `purchase`          | Transaction is successfully completed | Order confirmation              |

<Tip>
  All events include the standard GA4 e-commerce parameters such as `currency`, `value`, and `items` array with product details. See [Google's GA4 event reference](https://developers.google.com/analytics/devguides/collection/ga4/reference/events) for the complete parameter specifications.
</Tip>

## Prerequisites

Before events are tracked, ensure you have:

1. A [Google Tag Manager](https://tagmanager.google.com/) container configured
2. The GTM container ID added to your store's [Integrations](/ollie-shop/configuration/integrations)
3. GA4 tags configured in GTM to receive the e-commerce events

## What's Next

<CardGroup cols={2}>
  <Card title="Custom Events" icon="code" href="/ollie-shop/analytics/custom-events">
    Send custom analytics events from your components
  </Card>

  <Card title="Enrich Events with GTM" icon="layer-plus" href="/ollie-shop/analytics/gtm-enrichment">
    Add session context to events using GTM Custom HTML
  </Card>

  <Card title="Device Fingerprint" icon="fingerprint" href="/ollie-shop/analytics/device-fingerprint">
    Anti-fraud device fingerprint compatibility
  </Card>

  <Card title="GTM Setup" icon="gear" href="/ollie-shop/configuration/integrations">
    Configure your GTM container ID
  </Card>
</CardGroup>

## Further Reading

* [Google Analytics 4 E-commerce Implementation](https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
* [GA4 Event Reference](https://developers.google.com/analytics/devguides/collection/ga4/reference/events)
* [Google Tag Manager Documentation](https://developers.google.com/tag-platform/tag-manager)
