Actions37
- 🎯 Campaign Management Actions
- 👥 Lead Management Actions
- 📧 Email Accounts Actions
- 📊 Analytics & Stats Actions
Overview
This node integrates with the SmartLead API to retrieve detailed campaign statistics within a specified date range. It is designed for users who want to analyze the performance of their email marketing campaigns over time, enabling data-driven decisions to optimize outreach efforts.
Typical use cases include:
- Monitoring campaign engagement metrics between two dates.
- Comparing campaign performance across different periods.
- Extracting filtered analytics data for reporting or further processing.
For example, a marketer can use this node to fetch stats for a campaign from January 1st to January 31st to evaluate its effectiveness and adjust future campaigns accordingly.
Properties
| Name | Meaning |
|---|---|
| Campaign ID | The unique identifier of the campaign to retrieve statistics for. |
| Start Date | (Optional) The start date for the analytics data in YYYY-MM-DD format. |
| End Date | (Optional) The end date for the analytics data in YYYY-MM-DD format. |
| Additional Fields | Optional collection of extra parameters: |
| - Limit | Number of results to return (default 100). |
| - Offset | Number of results to skip (default 0). |
| - Status | Filter by campaign status; options are Active, Paused, or Stopped (default Active). |
Output
The node outputs an array of JSON objects representing the campaign statistics for the specified date range. Each object contains various metrics related to campaign performance such as opens, clicks, bounces, and other relevant analytics data provided by the SmartLead API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the SmartLead API.
- The node makes HTTP requests to
https://server.smartlead.ai/api/v1. - Proper configuration of the API authentication credential in n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing Campaign ID will cause the API request to fail.
- Incorrect date formats for Start Date or End Date may result in errors or no data returned.
- Network connectivity problems or invalid API credentials will prevent successful data retrieval.
Error messages:
"Campaign not found": Verify that the Campaign ID is correct and exists."Invalid date format": Ensure dates are inYYYY-MM-DDformat.- Authentication errors: Check that the API key credential is correctly set up and has sufficient permissions.
To resolve these, double-check input values, ensure valid credentials, and confirm network access to the SmartLead API endpoint.
Links and References
- SmartLead API Documentation (Assumed URL based on base URL in code)
- n8n Documentation on HTTP Request Node (for understanding API calls)
- General best practices for email campaign analytics and optimization