Archive analytics goal
analytics_archive_goalArchive an analytics goal to preserve its history without deleting data. This changes live tracking on your site and is idempotent by state.
Instructions
Archive a goal via DELETE /api/v1/analytics/goals/:goalId. Archival preserves history (state becomes 'archived'); it does not delete data. Idempotent by state. This changes live tracking on the user's site. Does not use credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goalId | Yes | Stable numeric goal id from analytics_list_goals. | |
| projectId | No | Numeric project id (convenience shape; do not combine with propertyId). | |
| propertyId | No | Explicit analytics property id (primary target). Pass ALONE — combining with a project reference is rejected. When omitted, pass a project reference instead; that resolves only when the project has exactly one property (409 property_scope_ambiguous otherwise). | |
| projectUuid | No | Project UUID (alternative to projectId). |