MailerLite
E-commerce API

Settings

Check whether e-commerce orders are attributed to your campaigns and automations, and for how many days after a click.

Get e-commerce tracking settings

If you want to check whether orders are attributed to your campaigns and automations, send this GET request

GET https://connect.mailerlite.com/api/ecommerce/settings

Response

Response code: 200 OK
{
  "data": {
    "ecommerce_tracking_in_campaigns": false,
    "ecommerce_tracking_in_automations": true,
    "ecommerce_attribution_window": 30
  }
}
FieldTypeDescription
ecommerce_tracking_in_campaignsbooleanWhether new campaigns track e-commerce. Defaults to false.
ecommerce_tracking_in_automationsbooleanWhether new automations track e-commerce. Always false while you have no enabled shop.
ecommerce_attribution_windowintegerDays after a click during which a purchase is attributed to the email. Defaults to 30.

These are account defaults, copied to each campaign or automation when it is created. To check or change tracking on one item, use settings.ecommerce_tracking on the campaign or trigger_data.track_ecommerce on the automation.

On this page