6

On Stack Overflow (rev 2015.9.9.2796) the Google Analytics snippet has one } too many:

ga('create', 'UA-5620270-1'});
                           ^

Or when logged in:

ga('create', 'UA-5620270-1', {'userId': '10202' }});
                                                 ^
1
  • Seeing the same on latest version of Chrome.
    – GEOCHET
    Sep 9, 2015 at 11:21

1 Answer 1

6

Whoops.

That extra } has been removed - the fix will be out there in the next build.

2
  • On the risk of getting suspended for harassing SE employees: shouldn't jslint/jshint have caught that on build? ... ;) /me hides for a couple of hours...
    – rene
    Sep 9, 2015 at 11:44
  • 2
    @rene - it normally would, but this bit of code lives in a razor view and not its own JS file. If it were a regular JS file, our build would have failed indeed.
    – Oded
    Sep 9, 2015 at 11:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .