One script tag to collect, one API key to read. Everything the dashboard shows is available as JSON, so your own tools and AI agents can ask the same questions.
Include this code in the <head> or <body> section of your website. It loads asynchronously and never blocks rendering.
<script data-host="https://anltcs.com" data-dnt="false" src="https://anltcs.com/js/script.js" id="anltcs-tracker" async defer></script>
Events can be tracked using the anltcs.track() JavaScript function. The anltcs.track() function accepts an object as the argument. Values with a unit are summed in the Events report, so revenue and conversions land next to your traffic.
anltcs.track({name: 'Subscription'})
anltcs.track({name: 'Payment', value: 5, unit: 'USD'})
namevalueunitThe API key should be sent as a Bearer token in the Authorization header of the request. Every request must also accept JSON. Log in to get your API key.
https://anltcs.com/api/v1curl 'https://anltcs.com/api/v1/account' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Errors come back as JSON with a message and the HTTP status. The API is limited to 60 requests per minute per key; when you hit the limit the response is 429 and the Retry-After header tells you how long to wait.
{
"message": "Resource not found.",
"status": 404
}
{
"message": "You don't have access to this feature.",
"status": 403
}
200Success401Missing or invalid API key403Your plan does not include API access404Resource not found422Validation failed, see errors in the body429Too many requests