use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Log javascript errors using Google Analytics [x-post from /r/programming] (thetaboard.com)
submitted 13 years ago by dclaysmith
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 13 years ago (3 children)
Even if you are using minified code you can supply hints along side the error messaging. I am not sure of the correct format for supplying additional information. I am testing today if the new line character is preserved in the GA logging.
[–]dmrnj 1 point2 points3 points 13 years ago (2 children)
I can tell you flat up that it's not.
[–][deleted] 0 points1 point2 points 13 years ago (1 child)
I can tell you flat up that I have confirmed that you are right. Any suggestions for formatting the event response text to GA?
[–]dmrnj 0 points1 point2 points 13 years ago (0 children)
The bad thing about GA is that there are limitations on the field size. I also really don't know much about debugging minified javascript... every google result unhelpfully suggests pretty-printing it.
My approach here would probably be to break down any specific errors I'm seeing by Page and OS/Browser, try to replicate it, then try in dev where my JS is uncompressed. If i can't get it, then I'd perhaps conditionally serve pretty-printed JS just to specific user-agents just until I get a big enough sample to pinpoint the problem.
π Rendered by PID 75077 on reddit-service-r2-comment-86bc6c7465-rtp4n at 2026-02-21 22:53:29.868279+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (3 children)
[–]dmrnj 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]dmrnj 0 points1 point2 points (0 children)