Using hitCallback in Google Analytics with ga.js
I recently ran into an interesting issue in Google Analytics – I wanted to track an event and then immediately direct the browser to a different page. Easy right? The problem was when the event tracking was implemented like this… _gaq.push(['_trackEvent', 'Category', 'event', 'value']); document.location = ‘someOtherPage.html’; …the event call to Google Analytics was cancelled [...]
Extending jQuery’s slideToggle() Fading Absolutely Positioned Children
jQuery’s native slideToggle function generates an undesirable effect when applied to a DOM element containing absolutely positioned children landing on or outside the parent’s boundaries. At the outset of the animation jQuery hides the overflow of the animating element. This will appear to”snap off” or “clip” any portion of any child element hanging outside of [...]
jQuery Event Namespacing
Today I ventured into the land of namespaced events in jQuery. I required the ability to remove a specific click event bound to an element without unbinding all of the element’s click events. A little digging brought me to an excellent answer on stackoverflow and looking into the jQuery Documentation for on() I found: An [...]
Google Analytics Goal Conversions De-Dupe on Session
Yesterday I discovered that the goal conversions in Google Analytics de-dupe on the user’s session. The goal we set up to test was a URL destination goal type with a required step in the Goal Funnel. We required case sensitive, exact matching URLS to count for conversion success. We set up a test in which [...]
Heroize jQuery Plugin
The Heroize plugin generates a customizable animated hero/feature pane for use on your site. Features include play/pause toggle jump to pane buttons keeps code clear and optimized for search engines timer Default panel display if Javascript is not enabled slide transitions. Source https://github.com/joelasonian/heroize-jquery-plugin Sample Display this panel when javascript isn’t loaded Feature 1 Feature 2 [...]