Actions37
- 🎯 Campaign Management Actions
- 👥 Lead Management Actions
- 📧 Email Accounts Actions
- 📊 Analytics & Stats Actions
Overview
This node integrates with the SmartLead API to retrieve detailed analytics and statistics related to email marketing campaigns. Specifically, the Campaign Stats operation fetches statistical data for a given campaign by its ID. This is useful for marketers and campaign managers who want to monitor campaign performance metrics such as engagement, delivery rates, or other key indicators provided by SmartLead.
Typical use cases include:
- Tracking the effectiveness of an email campaign.
- Comparing campaign performance over different time periods.
- Extracting campaign stats to feed into dashboards or reporting tools.
For example, you can input a campaign ID and receive aggregated statistics about that campaign’s performance, enabling data-driven decisions on campaign adjustments.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign for which statistics are requested. |
| Additional Fields | Optional parameters to refine the query: |
| - Limit | Number of results to return (pagination control). |
| - Offset | Number of results to skip (pagination control). |
| - Status | Filter campaigns by their status; options are: Active, Paused, or Stopped. |
Output
The node outputs JSON data containing the campaign statistics retrieved from the SmartLead API. The structure typically includes various metrics and performance indicators related to the specified campaign. The exact fields depend on the API response but generally cover counts, rates, and summaries relevant to campaign analytics.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the SmartLead API via an API key credential configured in n8n.
- Network access to
https://server.smartlead.ai/api/v1is necessary. - Proper permissions on the API key to access campaign analytics endpoints.
Troubleshooting
Common Issues:
- Invalid or missing Campaign ID will cause the API request to fail.
- Network connectivity issues may prevent reaching the SmartLead API.
- Insufficient API permissions can result in authorization errors.
Error Messages:
- Errors returned from the API will be surfaced, often indicating invalid parameters or authentication failures.
- If the node is set to continue on failure, error details will be included in the output JSON for each failed item.
Resolutions:
- Verify the Campaign ID is correct and exists in your SmartLead account.
- Check API credentials and ensure they have the required scopes.
- Confirm network connectivity and firewall settings allow outbound HTTPS requests to the SmartLead server.
Links and References
- SmartLead API Documentation (Assumed URL based on baseURL in code)
- n8n Documentation on HTTP Request Node for understanding API integrations
- General best practices for email marketing analytics and campaign management