... however I agree this looks terrible, and there might be a better way to write it. Maybe declare that function several times? Like:

```javascript
<script>
// Track a page view in our analytics tracker. To be called by pages
// that use AJAX requests to load content.
{% if GOOGLE_ANALYTICS_ID %}
    function socorroTrackUse(url) {
        ga('send', 'pageview', url);
    }
{% else %}
    function socorroTrackUse(url) {}
{% endif %}
</script>
```