> ## 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.

# Custom Cart Data

> Track user activity with custom attributes

Personalize your checkout experience by capturing and integrating custom cart data seamlessly into your order processing system. Here's how Paytring's Quick Checkout empowers you:

## Why Custom Cart Data Matters

### For Business Owners

* **GST Compliance:** Collect GST numbers during checkout.
* **Campaign Tracking:** Track marketing campaigns with custom codes.
* **Personalized Options:** Offer gift options or delivery preferences.
* **Streamlined Operations:** Ensure accurate order details.

### For Developers

* Persist cart data throughout the checkout process.
* Handle Shopify's 100-attribute limit effectively.
* Implement robust error handling and data validation.

## Paytring's Solution

### Seamless Integration

1. Customize your Shopify cart using `cart/update.js` or cookies.
2. Paytring captures and integrates this data into your orders.
3. Exclude unwanted attributes using `skip_attributes_by_quick`.

**Example:**

```jsx theme={null}
fetch('/cart/update.js', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    attributes: {
      'gst_number': '12345',
      'skip_attributes_by_quick': 'internal_code'
    },
    note: 'Custom tracking code: ABC123'
  })
});
```

### Benefits

* **Accuracy:** Minimize errors in order processing.
* **Customization:** Cater to individual customer preferences.
* **Efficiency:** Automate data transfer and reduce manual effort.
* **Control:** Decide which attributes are included in order details.

## Technical Deep Dive

* Use `cart/update.js` or cookies to add cart attributes.
* Validate data to ensure quality and security.
* Access cart data via Paytring's API for detailed insights.

## Ready to Enhance Your Checkout?

Unlock the power of custom cart data with Paytring's Quick Checkout. Contact us to get started!
