Overview
The Tracker node's "By Name" resource with the "Increase" operation is designed to increment a tracked value associated with a specific name. This is typically used in scenarios where you need to keep count or track usage, such as rate limiting, quota management, or monitoring event occurrences. For example, you might use this node to increase a counter every time a user performs a certain action, up to a specified maximum.
Properties
Name | Meaning |
---|---|
Name | The identifier for the counter to be increased. Used in the endpoint /increase/<name> . |
Max | The maximum value the counter can reach. If not specified, defaults to 1024. |
Step | The amount by which to increase the counter each time the operation is performed. Defaults to 100. |
Output
The node outputs a json
field containing the result of the increase operation. While the exact structure depends on the API response, it typically includes information about the updated counter value and possibly metadata such as the name and limits.
Dependencies
- External Service: Requires access to a Tracker API endpoint.
- Credentials: Needs
trackerApi
credentials configured in n8n, including adomain
property for the base URL. - Environment Variables: None explicitly required, but the API domain must be set in the credentials.
Troubleshooting
- Missing Credentials: If the
trackerApi
credentials are not provided or incomplete, the node will fail to connect to the API. - Invalid Name: Supplying an invalid or non-existent name may result in a "Not Found" or similar error from the API.
- Max Limit Exceeded: Attempting to increase the counter beyond the specified max may result in an error or the counter being capped at the maximum value.
- Common Error Messages:
"401 Unauthorized"
: Check your API credentials."404 Not Found"
: Verify the "Name" property matches an existing counter."400 Bad Request"
: Ensure all required properties are correctly filled.
Links and References
- n8n Documentation: Creating Custom Nodes
- (If available) Tracker API documentation for details on the
/increase/<name>
endpoint.