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

# Events Tracking

> Google Tag Manager events tracking for conversion and much more.

Track and analyze user behavior during the checkout process with Paytring's Quick Checkout. Here's a breakdown of key events and how they enhance your analytics:

## Key Events

### `begin_checkout`

This event signifies the start of the checkout process. It captures details such as:

* Items in the cart
* Total value
* User information (if logged in)
* Relevant pricing details

**Example Payload:**

```json theme={null}
{
  "event": "begin_checkout",
  "event_label": "begin_checkout",
  "event_category": "ecommerce",
  "value": "1049.00",
  "currency": "INR",
  "shipping": "5.99",
  "shipping_tier": "Ground",
  "items": [
    {
      "item_id": "string",
      "item_name": "string",
      "item_variant": "string",
      "affiliation": "Quick Checkout",
      "price": "string",
      "currency": "string"
    }
  ]
}
```

### `add_shipping_info`

This event indicates that the user has provided their shipping details. It includes additional information such as:

* Shipping address (city, country, line1, line2, name, etc.)
* Shipping handle
* Shipping charges

### `purchase`

This event signifies the completion of a purchase. It includes detailed order information, marking the successful processing of the order.

## Send Custom Cart Data to Your Analytics Stack

With Paytring’s Quick Checkout, **all cart attributes—including custom fields like `rp_id`, `track_code`, `source_code`, and more—are automatically pushed to your analytics platforms**. This ensures deeper insights, better attribution, and actionable data.

### Seamless Integration with Analytics Tools

Paytring supports all major analytics platforms, including:

* **Mixpanel**
* **Google Analytics (GA4)**
* **Google Tag Manager (GTM)**

**Example:**
If your cart includes:

```json theme={null}
{
  "rp_id": "CAMPAIGN_1234",
  "track_code": "SUMMER24",
  "source": "newsletter"
}
```

These attributes will appear in your event data across analytics dashboards, enabling segmentation, funnel analysis, and campaign attribution.

### Benefits of Analytics Sync

* ✅ **Campaign Attribution:** Identify which marketing efforts drive revenue.
* ✅ **User Segmentation:** Create granular cohorts using custom attributes.
* ✅ **Funnel Optimization:** Pinpoint drop-off points with more context.
* ✅ **A/B Testing Insights:** Correlate test variants with real checkout behavior.
* ✅ **Zero Manual Tagging:** Automatically sync all data passed through Quick Checkout.

This powerful visibility empowers your **marketing, product, and data teams** to optimize campaigns, product offerings, and customer journeys—without additional development effort.
