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
Twitter
Twitter
<p>
<span class="btn-holder">
<a href="https://twitter.com/share"
class="twitter-share-button"
data-url="http://www.redmondpie.com/microsoft-black-friday-deals-discounts-on-xbox-360-windows-pcs-kinect-free-windows-phones-more/"
data-count="horizontal"
data-lang="en">Tweet</a>
</span>
</p>
<script type="text/javascript">
$(document).ready(function() {
twttr.events.bind('click', function(event) {
console.log(event);
});
});
</script>
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.
http://img.200133883.info/serega/132223268508_kiss_107kb.jpg
This happens on most website with tweet buttons, for example dev.twitter.com
http://img.200133883.info/serega/132223293082_kiss_93kb.jpg
And not only in firefox. Here is in Chrome
http://img.200133883.info/serega/132223331370_kiss_321kb.jpg
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.