How to create events using buttons

If you're using buttons in your flows, you can also track an event with them. These events are then useful for a couple of things, namely to use in the targeting of other experiences or simply to track the interaction with that specific button.

How to create an event from a button

Once you have the Appcues Builder opened and you're building your flow, you'll have an option to add a button and also to dictate which action it will take. Once you decide which action your button will have (next step, dismiss flow, etc.), you'll see that there's an option to 'Track Event'. Once that option is selected, you can name the event. In the example below we're using the button to dismiss the flow and we're naming it 'Dismiss Welcome Flow'.

In order for these events to show up for targeting, they'll need to be clicked on first. For this, you can go to your flow's settings page, set it to trigger "Only manually" and publish the flow. Once published, grab the permalink and click on your button. This will make the event trigger. (note: it might take a few minutes for the event to show up in your targeting options.)

Now, you'll be able to find this event both as an option when targeting different experiences and also under Application Events in Events Explorer.

If you click on the event you've just tracked with your button, you'll open up an analytics page where you can find who interacted with the button and when.

Different uses for these button events

As mentioned, these events are very useful to target other flows. For example, if we want to keep showing a flow to all users until they actively dismiss it, we can add a button like the one above and then use that event in the targeting of the same flow. For this, we're saying that the event must occur in order to stop showing the flow. In logic language, this translates into adding a condition that will say 'Dismiss Welcome Flow' < has not occurred (along with the condition 'show every time). Once this condition turns false, the flow will stop showing.

Another use case can be to track clicks on a button that goes to a URL. If you want to know which users are clicking on a button that directs them to a different place in your app (perhaps to a page where they can register to attend a webinar), you can enable an event and then monitor the results in Events Explorer or even target new flows off of that.

If you'd like to read more about different targeting options using buttons, check out this article about adding a Remind me later option.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.