Track an event from a Button
Record button clicks as events to report on, target, and send to other tools.
Table of Contents
Track button clicks as events so you can see who clicked, target other experiences at them, and send the clicks to your other tools. Also known as click tracking or a custom event. This works in Flows 2.0, Embeds, Banners, and Pins. Legacy Flows use a different toggle: see Using legacy Flows? below.
To track clicks on your own app's buttons rather than an Appcues button, see Track events without code using Click to track.
Track clicks on a button
In Flows 2.0, Embeds, and Banners:
- Open the experience in the builder and select the button. Its settings open on the Actions tab.
- Expand Additional options and turn on Track event.
- Click Choose an event to track. Pick an existing event, or type a new name and click Create "[name]".
- Publish or push your changes.
A name you create is added to your account straight away, so you and your teammates can pick it in targeting, dashboards, and Key Moments before anyone has clicked. Choose a name that says what the click means, such as Clicked Upgrade CTA. In raw data exports, the event appears with an appcues_custom: prefix.
Images and text links have the same Track event option under Additional options.

Track clicks on Pins
- In the Pin builder, click the button. A toolbar appears above it.
- Click the action menu, such as Select an Action, and turn on Track event.
- Enter an event name.
- Publish the Pin.
A name typed here isn't added to your account until someone clicks the button. To make it available for targeting, open a page where the Pin shows and click the button once. The event can take a few minutes to appear.
Using legacy Flows?
In the legacy Flow builder, select the button, turn on Track Event, and enter an event name.

The event isn't available for targeting or analytics until someone clicks the button once. To click it yourself:
- Set the Flow's trigger to Only manually and publish it.
- Open the Flow's Permalink and click the button.
Or use Test mode to click it without changing the trigger. The event can take a few minutes to appear.
See who clicked
- On a dashboard: add a card that counts your event. See Add cards to a dashboard.
- For one user: open the user's profile and check their activity. See Find and inspect users.
Target experiences with a button event
To show or hide another experience based on the click, open that experience's Settings tab. In Who sees this, choose Specific users, click Add audience rule, and add an event rule for your button event. See Configure Audience Targeting.
For example, a webinar Banner's Register button tracks Clicked Webinar CTA. A follow-up Flow targets users who haven't done that event, so it reminds only the people who didn't register.
To stop an experience showing after a user declines it, you don't need an event. Turn on Mark Flow as complete on the decline button and Stop showing when experience is completed in the frequency settings. To bring it back later, use a Snooze button. See Set experience frequency.
Send button events to other tools
Button events go to your front-end integrations, HubSpot, and Salesforce automatically.
If the event isn't appearing
- It isn't in the targeting list (Pins and legacy Flows): nobody has clicked the button yet. Publish the experience and click the button once.
- The count stays at zero: check that Track event is on for the button users click, and that the experience is published. New clicks can take a few minutes to show.
If it's still not working, contact support with the experience's Experience ID (on its Settings tab, in Who changed this), the event name, the affected user's User ID, and a screenshot of the button's settings.