Re: Simple Google Analytics - Ecommerce not tracking
Hello everyone,
About 10 days ago I switched from the other Analytics mod to Simple Google Analytics using Asynchronous code. Everything seems to be tracking OK except ecommerce which I do have enabled in G Analytics. I've had a couple of purchases since then and I've also made a test purchase but they don't show up.
Is there a period of time after switching to Simple Google Analytics where it won't pick up the transactions or have I done something incorrectly?
Any help is appreciated...thank you.
Zen 139h
PHP 5.2.16
MySQL 5.0.92
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Minu
I have installed the Google Analytics by Andrew, but I can't find the support thread for it. Would anybody direct me to the right thread.
Thanks to All
That support thread is here:
http://www.zen-cart.com/forum/showthread.php?t=43907
I haven't seen any support from the original programmer in there given for a while (I've been answering questions in there for people to help them.)
This is the support thread for my module: Simple Google Analytics
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
AshleyNG2
Thanks for this fix, was a bit boggled by this. I know this post was a while ago but I have made one addition to a popup which was not included and fixed the space in the wordings. I shall highlight the addition in bold.
Code:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,popup_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popup_shipping_estimator,info_shopping_cart')) ) {
//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 */
?>
Super thanks!
Re: Simple Google Analytics - Ecommerce not tracking
Quote:
Originally Posted by
kcb410
Hello everyone,
About 10 days ago I switched from the other Analytics mod to Simple Google Analytics using Asynchronous code. Everything seems to be tracking OK except ecommerce which I do have enabled in G Analytics. I've had a couple of purchases since then and I've also made a test purchase but they don't show up.
Is there a period of time after switching to Simple Google Analytics where it won't pick up the transactions or have I done something incorrectly?
Any help is appreciated...thank you.
Zen 139h
PHP 5.2.16
MySQL 5.0.92
There should be no period of time to wait unless you weren't tracking ecommerce before. Even then it would be minimal.
Here is a thought for you.
1) When you uninstalled the other mod (assuming it was Google Anlaytics by Andrew) are you sure you reversed all those changes both in the files and in the database? The tracking in that mod didn't work well with ecommerce for some reason and if you didn't reverse all files changes and remove all files that came with that package, you could have carried over some of those native issues.
I suspect this might be the cause (some overlap in code etc...).
2) Do you have any type of affiliate tracking activated on your site? If so, which one? There is a work around for the code if this is the case.
Re: Simple Google Analytics - Ecommerce not tracking
Hello Econcepts,
Quote:
Originally Posted by
econcepts
Here is a thought for you.
1) When you uninstalled the other mod (assuming it was Google Anlaytics by Andrew) are you sure you reversed all those changes both in the files and in the database? The tracking in that mod didn't work well with ecommerce for some reason and if you didn't reverse all files changes and remove all files that came with that package, you could have carried over some of those native issues.
I suspect this might be the cause (some overlap in code etc...).
I'll go through and double check this later today. I thought I got everything.
Quote:
Originally Posted by
econcepts
2) Do you have any type of affiliate tracking activated on your site? If so, which one? There is a work around for the code if this is the case.
I don't have any affiliate tracking activated that I know of.
Thank you for the reply Econcepts.
Paul
Re: Simple Google Analytics - Ecommerce not tracking
Quote:
Originally Posted by
kcb410
Hello Econcepts,
I'll go through and double check this later today. I thought I got everything.
I don't have any affiliate tracking activated that I know of.
Thank you for the reply Econcepts.
Paul
If you don't have any affiliate tracking installed then it is likely that a few files (or files you altered) remain from the previous installation. This would cause tracking to be in accurate.
Re: Simple Google Analytics - Support
I am in step 2 of installing the simple Google analytics, but I don't have a file in common called "tpl_main_page.php" I am using ZenCart 1.3.9
any idea?
Thanks and God Bless
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Minu
I am in step 2 of installing the simple Google analytics, but I don't have a file in common called "tpl_main_page.php" I am using ZenCart 1.3.9
any idea?
Thanks and God Bless
Hello,
What is your file path to the folder 'common'?
Are you using the Classic template (standard when zen is installed)?
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
kcb410
Hello,
What is your file path to the folder 'common'?
Are you using the Classic template (standard when zen is installed)?
Thanks KCB410;
the common file is in the following path
"includes/template/andover_modern/common"
my template is "andover_modern"
Thanks for your help
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Minu
Thanks KCB410;
the common file is in the following path
"includes/template/andover_modern/common"
my template is "andover_modern"
Thanks for your help
You wouldn't find it there unless you copied it there from its original location. You'll want to download the file from includes/templates/template_default/common make the required changes and upload it to includes/template/andover_modern/common.
You may want to check out this article on setting template overrides.
https://www.zen-cart.com/tutorials/index.php?article=36