Analytics

Adds a tracking script. It's mainly third-party code, so I'm not sure how valuable tests would be.

If anyone disagrees, I can try to come up with something.

The following sample usage is a little long for a pull request, but it didn't seem appropriate to include it in the script itself.
```
    <script>
    var _myaq = _myaq || [];
    (function() {
        // url of the tracking pixel; May have parameters appended (server-side info from MJ-616, for instance)
        var u = (("https:" == document.location.protocol) ? "https:" : "http:") + "//secure.my.jobs/pixel.gif"
        _myaq.push(['setTrackerUrl', u]);
        _myaq.push(['setDocumentTitle',
                   document.domain + '/' + document.title]);
        _myaq.push(['setCookieDomain', '*.my.jobs']);

        // Track apply button clicks
        $('[id^=direct_applyButton]').click(function() {
            _myaq.push(['setCustomVariable', 1, 'url',
                       $(this).children('a')[0].href])
            _myaq.push(['trackGoal', 'apply']);
        });

        // Track social share clicks
        // Main share buttons (Facebook, Twitter, LinkedIn, G+, email)
        var share_main = document.getElementsByClassName('at16nc')
        for (var i = 0; i < share_main.length; i++) {
            var share_btn = share_main[i];
            share_btn.onclick = function() {
                var text = this.innerHTML.replace(/^\s+|\s+$/g, '');
                if (text.indexOf('More...') == 0) {
                    _myaq.push(['setCustomVariable', 1, 'share', 'Other'])
                } else if (text.indexOf('Settings...') == 0) {
                    return;
                } else {
                    _myaq.push(['setCustomVariable', 1, 'share', text]);
                }
                _myaq.push(['trackGoal', 'share']);
            }
        }

        // "More" sharing; includes sites from previous set and a couple hundred more
        var share_extra = document.getElementsByClassName('at15nc')
        for (var i = 0; i < share_extra.length; i++) {
            var share_btn = share_extra[i];
            share_btn.onclick = function() {
                var text = this.children[0];
                if (text !== undefined) {
                    text = text.innerHTML.replace(/^\s+|\s+$/g, '');
                    if (text !== null && text.indexOf('Share on ') == 0) {
                        _myaq.push(['setCustomVariable', 1, 'share', text.substr(9)]);
                        _myaq.push(['trackGoal', 'share']);
                    }
                }
            }
        }

        // Track saving a search
        var save_search = document.getElementById('savedsearch_button')
        save_search.onclick = function() {
            var email = document.getElementById('savedsearch_email').value;
            if (email !== null && email.length > 0) {
                // We could also track the user's address, as the myguid cookie doesn't exist yet
                //_myaq.push(['setCustomVariable', 1, 'email', email]);
                _myaq.push(['trackGoal', 'save']);
            }
        }

        // Tracks outbound links
        //_myaq.push(['enableLinkTracking'])
        _myaq.push(['trackPageView']);
        var d = document,
            g = d.createElement('script'),
            s = d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.defer=true;
        g.async=true;
        g.src="http://analytics.my.jobs/myjobs/ma.js";
        s.parentNode.insertBefore(g,s);
    })();
    </script>
    <noscript>
    <img src="{pixel.gif}"> {# {pixel.gif} refers to the url at the top of the <script> tag #}
    </noscript>
```