Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Hello,
I am trying to install he google mod too. I've upgraded all my files in the zip file and I have run the query on the database (new installation not upgrade). Well now that I have done all of that, I don't see the goodle mod in the Admin->Configuration section.
Can someone please nudge in the right direction.
thanks a lot
Update: I now have the database working and I see the Google settings under Admin->configuration->google.
Here is the code that I have at the bottom of my "tpl_main_page.php" file:Problem I have now is that when I try to test the mod on Google it says:
Profile Name: tranquillas.com/biz
Website URL: http://www.tranquillas.com/biz
Tracking Unknown (Last checked: 2008-01-06 7:50 PM PST.)
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
Can anyone shed some light on why the google check status does not work? I appreciate any help!<?php
if (file_exists($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php')) {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
<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-3347195-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
forgot.... I also have the script code at the end of my /home/index.php file.
hope that helps some.
I'm having the same problem mentioned earlier when I try to apply the SQL Patch. I get the dreaded 1064 error:
Do you want to turn on Google AdWords Conversion Tracking?
', @t4, 5, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('Yes', 'No'), ');
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Yes', 'No'), ')' at line 1
in:
I'm using the "future_zen" template and I've tried installing the google_analytics subdir under both the future_zen directory and the template_default directory.
No joy. Analytics is at least partially installed, as it is an option under configuration and google confirms that its working. This LOOKS like its a syntax error in the sql patch... not a problem with a file location...
HELP!
-Rob Shearer
Oddly enough, when I opened up the .sql file in notepad and copied and pasted the text into the "query to be executed" box, it ran fine... and installed all the new stuff.
Weird.
uploading the file from my local hard drive failed with the 1064 msg. Copying the SAME text from the .sql file into the box ran without error.
[scratching head...]
Whatever, now its working.
- rob shearer
Hi Rob,
Sorry to hear that you are having issues too! At least you have things to the point where google says it's working. I can't even make it to that point yet. I'm going to go back over the many posts and see if I can find something that will make my code work. Wish me luck.
p.s. glad that you got it working!
Hi there! Just wanted to say thank you for the code that finally got the google stuff to work. Now when you go to the google site it says "Receiving Data". I don't see any information in any reports but from what I can gather from the posts here is that it takes a little time for things to start showing up.
I've been going crazy! Thanks a bunch!
After looking at your pages, you have both the "urchin" and the new "ga" version of Google analytics code present. You can only have one (both may not be present).
Try removing one of them and then make sure you give Google the proper url (with the trailing slash) to find and verify the code at.
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Bookmarks