Skip to main content

Update a metric

PATCH 

/projects/:project/metrics/:metric

Changes the fields you send. The result is checked as a whole metric, so a change that leaves it inconsistent is refused: to switch a value_per_visitor metric to unique_count, send event_parameter: null in the same call. Fields you leave out keep their values; send a field as null to clear it. Needs an editor or publisher key.

Request​

Responses​

The metric as it is now.