Quote Originally Posted by talviruusu View Post
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
It could be a bug, however, I am using the Asynch code on a number of sites as is and it works just fine (including ecom tracking.)

When you made changes, could it be possible that you altered something which caused the escaped quotes to not 'escape' as they should (and instead, actually print the 'escape' character instead)?

I'll look into it here but haven't heard of any other reports of similar nature and again, have it working unaltered on a number of sites without a problem.