
Originally Posted by
talviruusu
Hi,
Because one of my clients I had the change to take a look of your module. It was a pretty good tool and I thank for that. However, I'd like to ask why one particular thing is done as it currently is.
In the google_analytics.php file at the front end side /includes/templates/template_name/google_analytics, every if statement what will end up producing the eCommerce tracking data, you have escaped all double quotes. Those double quotes will be used as elements in the Javascript code for Google Analytics. And that's the goal I assume.
It has been recommended that eCommerce tracking should be handeled with Asynchronous tracking. Well, if you use double quotes on your Javascript code, it doesn't work.
I tested it and changed all escaped double quotes to plain old single quotes and your module started working perfectly with Asynchronous tracking.
Is this a bug or just something I don't completely understand?
My ZenCart version is 1.3.9h and the Simple Google Analytics version is 1.2.4.
Thanks,
Ville