Closed (works as designed)
Project:
Google Analytics
Version:
7.x-1.2
Component:
User Interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 18:14 UTC
Updated:
25 Feb 2012 at 11:24 UTC
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
Comment #1
hass commentedNot supported