Unable to bind a handler to any event in web intents


It seems to be a problem to track events in a way described here - https://dev.twitter.com/docs/intents/events#click

Even the simplest code ain’t working



    <span class="btn-holder">
        <a href="https://twitter.com/share"

<script type="text/javascript">
    $(document).ready(function() {
        twttr.events.bind('click', function(event) {

When i click on the button, the tweet edit interface appears, but instead of event object dump, some uncaught exception goes to a Firebug console.

This happens on most website with tweet buttons, for example dev.twitter.com

And not only in firefox. Here is in Chrome

I suppose that the problem is in this exception thrown, that’s why the binded function is not called.
I want to believe that I simply doing something wrong, and there is an easy solution for my trouble.

My goal is to track tweet events in Google Analytics. Any help is so appreciated! Thanks.


I believe that this is possibly related to the issue that some of us are seeing with the popup share (or any intent) button. Instead of the popup going away, and the event firing, a second version of the popup fires.

Since, in both cases, the exception/incorrect processing is happening entirely on Twitter’s side, I don’t think there is anything that we can really do about it, except to keep gathering as many examples of it not working the way it is supposed to.


You’re right that it’s most likely related to that bug – which should be resolved soon.

closed #4

closed #5