Before you start
- The Cometly pixel must be installed on your Magento store, including the checkout. See Install the Cometly pixel.
Send events from Magento to Cometly
Purchase events
- Use Cometly webhooks to send purchase event data directly from Magento.
- In the webhook request, send fields such as first name, last name, email and order amount to Cometly. The Cometly pixel on your store automatically captures the email field on the order checkout, and Cometly uses that email to attribute the purchase to the visitor’s journey, so you can see the source of the purchase.
Add to cart and initiate checkout events
Follow the Add to Cart and Initiate Checkout guide to set these up as browser events tracked through the Cometly pixel.Set up Cometly webhooks
See the Cometly webhooks guide for detailed instructions on:- Creating your webhook in Cometly.
- Selecting the event for the webhook, or creating a new one.
- Mapping the webhook data to the matching fields in Cometly.
- Setting up filters so that only the data you want is tracked.
Check it worked
In Events Manager, your webhook event shows a switch that is turned on in the Status column. Place a new order in your Magento store, then open the Events Log tab: the purchase appears there within 60 seconds, with SUCCESS in the Details column.Frequently asked questions
Does Cometly have a built-in Magento integration?
No. Magento connects to Cometly through webhooks, so your store sends its order data to a webhook URL that you create in Cometly. The Cometly webhooks guide covers the setup from the first click to activation.Which fields does my Magento webhook need to send to Cometly?
Email and Event Time are the two required fields in the webhook mapping. If your order data has no event time, choose The time we receive the event for Event Time. Send the first name, last name and order amount as well, so the contact and the revenue are complete in Cometly.How long does it take for a Magento purchase to show up in Cometly?
The purchase shows in the Events Log within 60 seconds of being sent. It can take up to 15 minutes to appear in the reporting areas, such as the Report Builder or Ads Manager.Next steps
- Send event data to Cometly with webhooks
- Set up Add to Cart and Initiate Checkout events
- Use the Events Log to check incoming events
- Learn how events work in Cometly