When you ad custom JS at:
www.example.com/admin/config/system/googleanalytics >> "Advanced settings" >> "Custom JavaScript code"

If you add a trailing JS comment to your custom js like so....
// END: ga customizations

Or like so....
var foo = "bar" // This is our custom foo var

Then the resulting GA code is commented out as well because it is appended directly on the same line as the code comment. A fix would be to prepend and append a "newline" character to the custom code string, after the white space has been removed.

Off course, for now, I'm just not going to use any trailing comments in my custom code additions.

Comments

hass’s picture

Status: Needs work » Closed (works as designed)

Not supported