Is there anyway to remove/handle the double quotes that may exist in product names when being passed to Google Analytics by way of the GOLAN module?
Example Product Name: 14" Widget
When passed to Google Analytics using the module would look like this:
Note the last line where it passes the line item info and the double quote in the product name essentially ends the parameter prematurely
Example Product Name: 14" Widget
When passed to Google Analytics using the module would look like this:
Code:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-XXXXXX-X"); pageTracker._initData(); pageTracker._trackPageview(); pageTracker._addTrans("200074","XY","46.81","0","0","Boston","MA","US"); pageTracker._addItem( "200074","WIDGET14","14" Widget","","29","1" ); pageTracker._trackTrans(); </script>
Code:
pageTracker._addItem( "200074","WIDGET14","14" Widget","","29","1" ); pageTracker._trackTrans(); </script>
Comment