# Google Analytics Event Tracking

**URL:** <https://meta.discourse.org/t/google-analytics-event-tracking/20083>\
**Category:** Feature\
**Created:** [15 Settembre 2014, 5:56pm UTC](https://meta.discourse.org/t/google-analytics-event-tracking/20083 "2014-09-15T17:56:44Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![thiago](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thiago/32/65699_2.png) [@thiago](https://meta.discourse.org/u/thiago)\
**Post date:** [22 Febbraio 2017, 12:33am UTC](https://meta.discourse.org/t/google-analytics-event-tracking/20083/19 "2017-02-22T00:33:09Z")

</div>

I’m currently trying to track events such as Creating a Topic and Replying to an existing one.  
I know how GA Events work and I know how to add custom JS code to the `head` via Admin→Customize→CSS/HTML→`</head>`.

What I still haven’t figured out is what I should listen to, in order to call the event tracking code and send the Event to GA.

I even thought about listening to a click on the button, but that doesn’t seem the right way to do it.

Any thoughts?

Edit: Nevermind, I got it. This topic helped me: [https://meta.discourse.org/t/how-to-catch-click-events-within-topic-posting-form-with-jquery/36184](https://meta.discourse.org/t/how-to-catch-click-events-within-topic-posting-form-with-jquery/36184)

---

_[View the full topic](https://meta.discourse.org/t/google-analytics-event-tracking/20083)._
