Is there a fix for this? I am having the same problem.
Printable View
Just submitted a new 1.2.4 version of this mod that includes a fix for the popup window issue some have experienced.
If you have 1.2.3 version you do not need to upload any files. All you have to do is take the following action to remedy the situation.
Open the file "html_header.php" file from your template directory 'common' folder (making sure you have the proper location for the template you are using if custom.)
1) Once opened, find the section of code that looks like this (usually just before the closing </HEAD> tag):
Find this:
-------------------------------------------------
Quote:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
And change to this:
--------------------------------------------------
That should correct the issue. If you find that any other pages are causing the same issue (I think I got them all) just add that to the array shown here and it will eliminate the problem on those pages.)Quote:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_shipping_estimator')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>
If you can' wait for the new version to be activated in the Zen Cart downloads section you can get the newest version from the following link right now:
http://www.zencartoptimization.com/downloads/
Post any issues in this forum.
I love this add-on! Has really helped with my biz! Having one small prob, though - it's not tracking every conversion. Almost all of them but not every one. Maybe one in ten doesn't come through. I can't see any rhyme or reason to it, either. No particular customer, product, or payment method. What could cause this? Right now I have a difference of about $1100 between google and sales reports from within zen. I can see the missing order numbers in analytics.
Help?
nm, i see my answer at post #1318.
Thanks for letting us know you found the answer and what post other can find it at as well. There will always be a slight margin of error with any analytics package you use which utilizes JavaScript (as Google Analytics does).
This is a native issue with the tracking programs, not the module itself.
Hello,
I’ve installed this module a few days ago on our new zc site. (we already had a google analytics account using the Asynchronous code on our old static site.)
- When I set the Asynchronous tracking preference under the admin, the product pages display blank.
- When I set the ga.js tracking under the admin, the product pages display all right but they are not being tracked by google analytics. All other pages seem to get tracked all right.
Do you know what’s wrong?
our site is ezistock(dot)com
Thanks much!
Yes its is. I've pasted both codes as indicated on the install instructions. This one is supposed to be pasted there on tpl_main_page.php. Perhaps you're refering to the one to be pasted on html_header.php before </head>...Quote:
Redbaron2: Your code is in the bottom of your pages before the </body> tag.
The body tag on tpl_main_page.php also includes the onload code.
I don't understand why the code doesn't show on the product pages source only.
Do you know what's wrong?
A blank page means you have an error in your PHP somewhere.
Most likely from something inadvertently altered during install (specifically during the install portion where you had to add the few lines of code to the html header and tpl main page files.)
To correct this you need to find where your error is. To find the erro you should turn on error logging in your cart (if you have zen 1.3.9 + it is already turned on by default.) If you have an older version of zen cart (lower than 1.3.9) you'll need to add the error logging to your site (just a single file) using the following file and instructions.
http://www.zen-cart.com/forum/showthread.php?t=84613
Once you have that in place, just activate the contribution (asyc code if that is what causes the error / white page) and then navigation to the product page. (This will throw the 'white page').
Now go to your server (FTP in) and look at the error log that was just generated in the /cache/ directory (starts with "myDEBUG..."). Download that, open it and read the error message. It should tell you the exact line and location of the error.
Find that section of code and rework it adding the missing element and you should be ready to go.
Let me know if you have any other problems. I'd be happy to walk you through them.