---
title: "Magento integration"
description: "Combine Cometly webhooks for purchase events with the Cometly Pixel for add-to-cart and initiate-checkout signals. Magento stores get full-funnel attribution without custom development work."
source: "https://www.cometly.com/integration/magento"
---

# Magento integration for Cometly

Track Magento purchases, add-to-carts, and checkout starts in attribution.

Combine Cometly webhooks for purchase events with the Cometly Pixel for add-to-cart and initiate-checkout signals. Magento stores get full-funnel attribution without custom development work.

- Category: Ecommerce
- Connection method: Webhook

## What you can do

- Webhook-based purchase tracking with first/last name, email, and amount
- Pixel-based add-to-cart and initiate-checkout tracking
- Auto-captures email from the checkout form for visitor stitching
- Send conversions back to Meta, Google, and TikTok via Conversion APIs

## Setup (Webhook)

1. In Cometly, copy the Magento purchase webhook URL.
2. In Magento, configure a webhook on order placed/paid events.
3. Install the Cometly Pixel for add-to-cart and initiate-checkout coverage.
4. Map purchase fields (email, amount, names) in Cometly.
5. Activate each event.

## Events

| Event | Description |
| --- | --- |
| Purchase | Fires on a paid Magento order. |
| Add to Cart | Fires when a shopper adds an item to their cart. |
| Initiate Checkout | Fires when a shopper begins checkout. |