Web Analytics Bot
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
DELETE |
List all web analytics bot rules
The project's own bot rules, in the order they are checked at query time.
Required API key scopes
web_analytics:readExample request
GET /api /projects /:project_id /web_analytics_bot_rulesExample response
Status 200
RESPONSE
Create web analytics bot rules
Add one bot rule to the project. A rule combines one or more single-property conditions with AND or OR. A pattern is rejected if it cannot run, because a broken rule would break every query that classifies traffic for the project.
Required API key scopes
web_analytics:writeRequest parameters
- namestring
- categorystring
- combinerstringDefault:
AND - itemsarray
Response
Example request
POST /api /projects /:project_id /web_analytics_bot_rulesExample response
Status 201
RESPONSE
Delete web analytics bot rules
Remove one bot rule by its id. The built-in bot list is unaffected.
Required API key scopes
web_analytics:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /web_analytics_bot_rules /:id