Actions39
- Campaign Actions
- Campaign Statistic Actions
- Client Actions
- Email Account Actions
- Lead Actions
- Master Inbox Actions
- Webhook Actions
Overview
This node interacts with the Smartlead.ai API to retrieve campaign statistics analytics filtered by a date range. Specifically, the "Get Analytics By Date" operation under the "Campaign Statistic" resource fetches detailed campaign performance data between a specified start and end date.
This node is useful for marketing teams or sales operations that want to analyze how their campaigns performed over a specific period. For example, you can track email open rates, click-throughs, replies, or other engagement metrics within a custom date range to evaluate campaign effectiveness or optimize future outreach strategies.
Practical examples:
- Fetching daily campaign analytics for the last week to monitor trends.
- Comparing campaign performance month-over-month.
- Integrating campaign stats into dashboards or reports automatically.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign for which analytics are being retrieved. |
| Start Date | The beginning date/time of the analytics range (inclusive). |
| End Date | The ending date/time of the analytics range (inclusive). |
Output
The output is a JSON array containing the campaign analytics data returned by the Smartlead.ai API for the specified campaign and date range. This typically includes various statistical metrics related to campaign performance such as opens, clicks, replies, and other engagement indicators aggregated by date.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Smartlead.ai API via an API key credential configured in n8n.
- The node makes authenticated HTTP GET requests to the endpoint:
https://server.smartlead.ai/api/v1/campaigns/{campaignId}/analytics-by-date - The user must provide valid campaign ID and date range parameters.
Troubleshooting
- Invalid Campaign ID: If the campaign ID does not exist or is incorrect, the API will likely return an error. Verify the campaign ID is correct.
- Date Range Errors: Ensure the start date is before or equal to the end date. Invalid or missing dates may cause request failures.
- Authentication Issues: If the API key credential is missing, expired, or invalid, authentication errors will occur. Check your API credentials configuration.
- API Rate Limits: Frequent requests might hit rate limits imposed by Smartlead.ai. Consider adding delays or handling rate limit responses gracefully.
- Network Issues: Connectivity problems can cause request failures. Confirm network access to the Smartlead.ai server.
Links and References
- Smartlead.ai API Documentation (general reference for API endpoints and data structures)
- n8n HTTP Request Node Documentation (for understanding how authenticated requests work in n8n)