GUIDE
Tracking goals
A goal is any conversion you care about — a form submit, a signup, a checkout start. Dupes counts them and attributes each to the visitor's channel and campaign.
1. Fire the goal
Two ways — a declarative attribute, or a JS call. Goal names are lowercased and limited to 64 characters.
<!-- Declarative: fire when clicked -->
<button data-dupes-goal="submit_form">Sign up</button>
<!-- Programmatic: fire from anywhere -->
<script>
window.dupes("submit_form", { plan: "pro" });
</script>2. Define it in the dashboard
Open your site's Goals page and add a goal with the same event key (e.g. submit_form). Conversions then show up on your Overview with counts and unique visitors.
Common goals
- initiate_form
- submit_form
- start_checkout
- signup