fooman / googleanalyticsplus

Magento Extension to add extra features to the default GoogleAnalytics module.
http://store.fooman.co.nz/extensions/magento-extension-googleanalyticsplus.html
100 stars 53 forks source link

SyntaxError: missing ) after argument list #23

Closed refueledinc closed 10 years ago

refueledinc commented 10 years ago

Version 0.14.1 is giving the following error in console: SyntaxError: missing ) after argument list For this line: ga('create', 'UA-XXXXXXXX-X','{'cookieDomain': 'domain.com'}');

refueledinc commented 10 years ago

I don't know if this is the appropriate solution, but I changed this line: https://github.com/fooman/googleanalyticsplus/blob/master/app/design/frontend/base/default/template/fooman/googleanalyticsplus/universal.phtml#L9 to: ga('create', '<?php echo $this->getUniversalAccount(); ?>',<?php echo $this->getUniversalParams(); ?>);

fooman commented 10 years ago

Thanks for spotting this - fixed in the latest version.