# How do I link my custom event on my button with my insights?

**URL:** https://forum.builder.io/t/how-do-i-link-my-custom-event-on-my-button-with-my-insights/1412
**Category:** Technical Questions
**Created:** [December 2, 2021, 11:20pm UTC](https://forum.builder.io/t/how-do-i-link-my-custom-event-on-my-button-with-my-insights/1412 "2021-12-02T23:20:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jkwonny](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jkwonny](https://forum.builder.io/u/jkwonny)
#### Post date: [December 2, 2021, 11:20pm UTC](https://forum.builder.io/t/how-do-i-link-my-custom-event-on-my-button-with-my-insights/1412/1 "2021-12-02T23:20:56Z")

</div>

_Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank._

**Builder content link**

> **[Builder.io: Drag and drop page builder and CMS](https://builder.io/content/ea651cd8181542d692ed41e3058fcb86)**
>
> Build and optimize digital experiences for any tech stack, visually.

**What are you trying to accomplish**  
I set a custom action on a button. The action listens for a click and I tried “tracking” and “custom code” that uses the builder sdk of builder.track(‘eventname’). After this, how do I see within the insights tab?

**Code stack you are integrating Builder with**  
React

---

<div class="post-metadata">

### Author: ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)
#### Post date: [December 3, 2021, 12:29am UTC](https://forum.builder.io/t/how-do-i-link-my-custom-event-on-my-button-with-my-insights/1412/2 "2021-12-03T00:29:24Z")

</div>

@jkwonny Could you provide some more info…are you not able to access the Insights tab at all? Or you just aren’t seeing the clicks registered within the Insights tab? If you want to see your custom events, you will need to enable them in the Insights page, by selecting the three dots to the right and checking any metrics you want to add to the page:

 ![Screen Shot 2021-12-02 at 4.27.32 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/51194333b048bedea7f9f61e6043b9e96b01a9fe.png)

Our documentation for Analytics can be found here: [Custom Analytics Dashboards - Builder.io](https://www.builder.io/c/docs/custom-analytics-dashboards)

Let me know if that answers your question, otherwise any further info would be helpful to pinpoint your issue !

---

<div class="post-metadata">

### Author: ![jkwonny](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jkwonny](https://forum.builder.io/u/jkwonny)
#### Post date: [December 3, 2021, 4:27pm UTC](https://forum.builder.io/t/how-do-i-link-my-custom-event-on-my-button-with-my-insights/1412/3 "2021-12-03T16:27:56Z")

</div>

Sorry if the question wasn’t clear.  
I feel as if the docs are missing step 1-2. I understand the customize metrics portion, but what needs to be done before the event is tracked? After setting up the custom click event on the component/layer, how does the custom event on the insight dashboard link with the custom event that I have here?:

 ![Screen Shot 2021-12-03 at 11.27.28 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/fd7779d1ae842db27bc61b2aabe859ca1ac61667.png)

Is it based on event name?

---

<div class="post-metadata">

### Author: ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)
#### Post date: [December 4, 2021, 12:26am UTC](https://forum.builder.io/t/how-do-i-link-my-custom-event-on-my-button-with-my-insights/1412/4 "2021-12-04T00:26:26Z")

</div>

@jkwonny that is correct, as long as given names match then it should track and report accordingly.

For example, the UI in the image you linked is simply adding a builder.track(‘Hello’) on whatever event you bind it to.

If you click command+J to see JSX view, you can see the click events added to the buttons on your attached page as well

 ![Screen Shot 2021-12-03 at 4.23.51 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/80a63830ae7cc681891e6126828b7276406e1242.png)
