--- title: "Track flow button clicks" slug: "track-flow-button-clicks" description: "Learn how to track button clicks in tooltips or modals using hidden steps or user attributes for effective user engagement analysis." updated: 2026-11-13T16:29:34Z published: 2026-11-13T16:29:34Z canonical: "help.userflow.com/track-flow-button-clicks" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.userflow.com/llms.txt > Use this file to discover all available pages before exploring further. # Track flow button clicks To track clicks on a button in a flow step (a tooltip, speech bubble or modal), add a **Track event** action to the button. This is useful for buttons that open an external page, such as a webinar sign-up, where the click is the only thing you can measure. ![A flow button that opens an external webinar page](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/button-tracking.png) There are three ways to track a flow button click. Most people use the first. ## Method 1: Add a Track event action to the button 1. Open the step and click the button. 2. Click **Add action** and choose **Track event**. 3. Pick an existing event, or type a new name to create one. 4. Publish the flow. Each click now tracks that event for the user. The event shows under **Settings → Events**, and you can use it in [Chart Builder](/userflow/docs/chart-builder), segments and auto-start conditions. Events created this way aren't listed on the **Event trackers** page, which only shows no-code trackers built there. The same action works on buttons in launchers, banners and announcements. See [Button Click Tracking](/userflow/docs/button-click-tracking). ## Method 2: Count clicks with a hidden step A [hidden step](/userflow/docs/hidden-steps) counts as a step view in the flow's analytics, so you can use one to count clicks. 1. Add a hidden step after the step with the button. 2. Give the hidden step a trigger that's always true, such as "Water is wet". 3. Move the button's actions onto that trigger, and connect the button to the hidden step. 4. Make sure the hidden step always ends with an action, such as dismiss, so users don't get stuck on it. The hidden step's views in the flow's [Analytics](/userflow/docs/analytics) step funnel now equal the number of clicks. If the button already leads to a normal step, you can read that step's views the same way. ![Button tracking via hidden step](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/button-tracking-via-hidden-step.png) ## Method 3: Record clicks in a user attribute Add a **Set attribute** action to the button. For example, set a true/false user attribute to true when the button is clicked. To count how many times each user clicks, use a number attribute and have the **Set attribute** action add 1 on each click. You can then filter users or build a segment of users who clicked. See [Users and Segments](/userflow/docs/users-and-segments). ![Button tracking via set attribute](https://cdn.us.document360.io/9697557a-eb5d-476f-9b09-062b0f7bdcbd/Images/Documentation/button-tracking-via-attribute.png) ## How do I track a click on a tooltip's target element? When a tooltip has no next step, track a click on its target element with a hidden step (Method 2) or a Set attribute action (Method 3). To track clicks on elements in your app outside a flow, use a [no-code event tracker](/userflow/docs/no-code-event-tracking) instead.