Closed (works as designed)
Project:
Google Analytics
Version:
6.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2011 at 15:53 UTC
Updated:
12 Oct 2011 at 22:52 UTC
It appears that the module is eating any trailing whitespace including line enders.
As a result, any custom code that ends with a single-line comment, as
// end custom code
... will be run-in with the resulting generated code.
// end custom code(function() {var ga = document.createElement("script");ga.type = "text/javascript";ga.async = true;ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga, s);})();
Comments
Comment #1
hass commentedComments are not supported. Make sure you finish every line of code with semicolons.