Re: Simple Google Analytics - Support
I'm confused. I've installed and configured the mod and my site is receiving data. I need to continue to track ecommerce conversions but I can't seem to get that section of the tracking code to generate. It seems like this code is not triggering as true:
if($page_directory == 'includes/modules/pages/checkout_success') {
and the else clause is treating it as a normal page.
Any ideas?
btw I'm running 1.3.9g with cowoa added
Re: Simple Google Analytics - Support
Hello,
I just checked again, now it says receiving data. I thought that sign comes up right away, but guess not. Thank you.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
badarac
I'm confused. I've installed and configured the mod and my site is receiving data. I need to continue to track ecommerce conversions but I can't seem to get that section of the tracking code to generate. It seems like this code is not triggering as true:
if($page_directory == 'includes/modules/pages/checkout_success') {
and the else clause is treating it as a normal page.
Any ideas?
btw I'm running 1.3.9g with cowoa added
Are you sure you are running SIMPLE Google Analytics? That line is not in any of my code. I think you must be running Andrew's version of Google analytics.
My version (Simple Google Analytics) has ecommerce tracking built in by default no site or code adjustments needed.
My version also works on all zen cart version (even 1.3.9 +)
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
nycxkkoma
Hello,
I just checked again, now it says receiving data. I thought that sign comes up right away, but guess not. Thank you.
Yes, it can take time for Google to show that it is receiving data.
Glad you got it working!
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Are you sure you are running SIMPLE Google Analytics? That line is not in any of my code. I think you must be running Andrew's version of Google analytics.
My version (
Simple Google Analytics) has ecommerce tracking built in by default no site or code adjustments needed.
My version also works on all zen cart version (even 1.3.9 +)
Hi Eric,
Yes I checked and it is in fact your mod. That line of code appears in your includes/templates/my_templates/google_analytics/google_analytics.php
at around line 81. For some reason it's not detecting that the calling page is checkout_success. I added some text to the else path to verify that it was in fact executing the else code and it is. Any suggestions?
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
badarac
Hi Eric,
Yes I checked and it is in fact your mod. That line of code appears in your includes/templates/my_templates/google_analytics/google_analytics.php
at around line 81. For some reason it's not detecting that the calling page is checkout_success. I added some text to the else path to verify that it was in fact executing the else code and it is. Any suggestions?
I see that here. Are you using the newest version? (I thought I changed that line a while back ... it will be altered in the next release (out soon with some great new features.)
Do this for me.
Change that line of code to the following and see if it has any effect (this is the line of code that it is being altered to in the new release)
PHP Code:
if ($_GET['main_page']=="checkout_success") {
So you are removing the previous line of code and in place of it adding this. (Do this in each location that appears in the script.)
Let me know if that has any impact. I've never heard of this mod every causing any issues with that line (or ecommerce tracking at all) and I've got it running on 1.3.9+ versions with no issues.
There is always a first time for everything though and we'll figure out what is causing it.
Let me know if the above works!
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
I see that here. Are you using the newest version? (I thought I changed that line a while back ... it will be altered in the next release (out soon with some great new features.)
Do this for me.
Change that line of code to the following and see if it has any effect (this is the line of code that it is being altered to in the new release)
PHP Code:
if ($_GET['main_page']=="checkout_success") {
So you are removing the previous line of code and in place of it adding this. (Do this in each location that appears in the script.)
Let me know if that has any impact. I've never heard of this mod every causing any issues with that line (or ecommerce tracking at all) and I've got it running on 1.3.9+ versions with no issues.
There is always a first time for everything though and we'll figure out what is causing it.
Let me know if the above works!
I made the change and it still doesn't detect the checlout success module. Here's what is being generated on the checkout success page:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
pageTracker._initData();
pageTracker._trackPageview();
</script></body></html>
I made the change two places in the file. Here is the version info from the install file:
Version Date: v 1.2.2 01/09/2008 Eric Leuenberger (Zen ID: econcepts) http://www.zencartoptimization.com. If there's a different version available somewhere for download I'll be happy to try it.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
badarac
I made the change and it still doesn't detect the checlout success module. Here's what is being generated on the checkout success page:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
pageTracker._initData();
pageTracker._trackPageview();
</script></body></html>
I made the change two places in the file. Here is the version info from the install file:
Version Date: v 1.2.2 01/09/2008 Eric Leuenberger (Zen ID: econcepts)
http://www.zencartoptimization.com. If there's a different version available somewhere for download I'll be happy to try it.
A few things.
1) Your tracking code is not in place. I see 'UA-xxxxxxx-1' and that should be your tracking code. Make sure you enter that code within the admin or the tracking will not work.
2) Are you running any affiliate programs or anything else that might affect the checkout page? If so, there is a different way I'll have you integrate it. Sometimes those mods make alterations to the checkout success page that override any tracking.
3) You might want to switch to the Urchin form of the tracking for a short time as it is more accurate on ecommerce tracking. But I don't see the ecom tracking code on the thank you page (likely due to other mods which alter the checkout success page as mentioned) and so this is just a side note to consider.
Let me know answers to the above and if you want to send me a url to the site I can look at that as well.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
A few things.
1) Your tracking code is not in place. I see 'UA-xxxxxxx-1' and that should be your tracking code. Make sure you enter that code within the admin or the tracking will not work.
2) Are you running any affiliate programs or anything else that might affect the checkout page? If so, there is a different way I'll have you integrate it. Sometimes those mods make alterations to the checkout success page that override any tracking.
3) You might want to switch to the Urchin form of the tracking for a short time as it is more accurate on ecommerce tracking. But I don't see the ecom tracking code on the thank you page (likely due to other mods which alter the checkout success page as mentioned) and so this is just a side note to consider.
Let me know answers to the above and if you want to send me a url to the site I can look at that as well.
Sorry, I should have mentioned that I edited the account number.. It's actually set in the config settings.
I'm not running any affiliate programs and the only mod to the tpl_checkout_success_default.php is from the current COWOA mod. The analytics code is being called from the main page which was unmodified until I added the following line as instructed <?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>. Otherwise it is unmodified from the one in template_default.
The site is www.beachtradingco.com. You can call me on the 800 number if you want to kick stuff around real time.
Re: Simple Google Analytics - Support
Just a quick update. I added a line to have it echo the main_page in each path of the if statement. It seems that for some reason the main page variable as soon as I start the checkout process is set to time_out. It stays set at that value through the entire checkout process. This has to be related somehow to the COWOA mod but so far I can't see it. The url is correctly built for each checkout page. Weird.