Skip to main content

Goal

Goals are metrics to track campaign success. This tutorial creates a Click goal to count clicks on the .cta-button element. See the goal creation guide for more information.

Requirements

  • access token
The Automation API requires an access token. Retrieve the token programmatically by following the instructions in the obtaining an access token section.

Create the goal

Endpoint:
Example: