funny how Twitter warned me that a bunch of my friends at GitHub are all a sudden interested in https://t.co/cb52btuPZe
— Matt Aimonetti (@mattetti) February 26, 2014
…which leads us to
Initial sources suggest that will be one of the biggest app releases of the year.
It’ll be loved by many. Hated by some.
As we learn more… I will try to keep this updated. Here are a few “screenshots” people have posted on twitter.
Some animated gifs:
— Tom Preston-Werner (@mojombo) February 26, 2014
You might consider following @AtomEditor on twitter.Read more at the source
Earlier today, I noticed that we now have over 500 developers from around the globe who I have accepted pull-requests from1. That is so fantastic.
Thanks to each and every one of you who has helped make this project so wonderful for others.
1 This number could be a lot higher if I spent more than a hour or two a week on this, but I’m a big fan of slow and steady… a good number of the open pull-requests are themes at the moment.Read more at the source
To track an event with Google Analytics, you’d need to trigger something like:
pageTracker._trackEvent('Button', 'Click', 'Get in touch');
As you can see from our code earlier, in development, the
_trackPageview() and handle it appropriately.
This class works with the following logic:
- if google analytics is loaded, pass the parameters to the real
- if google analytics is NOT loaded, output the information to
console.log()for debugging purposes
And in our production environment, we can see that this was sent to Google Analytics.
We’re able to do this by initializing the GoogleAnalyticsProxy class and calling these functions through it. For example:
_gap = new GoogleAnalyticsProxy(); _gap._trackEvent('Video', 'Play', 'Homepage video'); _gap._trackEvent('Video', 'Pause', 'Homepage video'); _gap._trackEvent('Button', 'Click', 'Call to action X');
You’ll see that we’re just calling
pageTracker. We then replace all the instances of pageTracker (except where it is defined in the google analytics code block they provide you). You’ll find this located near the bottom of our
We now have
_gap available throughout our project and can call
_trackPageview() with it. Note: You can use any JS variable name that you want, _gap is just what I went with.