Re: Simple Google Analytics - Support
Quote:
Originally Posted by
cgardner
OKay, got everything up, but maybe the file is in the wrong place? I put it right in the zen cart folder. At the bottom of the page it says:
Warning: main(includes/templates/template_default/google_analytics/google_analytics.php): failed to open stream: No such file or directory in /home/diginirv/public_html/zen_cart/store/includes/templates/magic/common/tpl_main_page.php on line 181
Warning: main(includes/templates/template_default/google_analytics/google_analytics.php): failed to open stream: No such file or directory in /home/diginirv/public_html/zen_cart/store/includes/templates/magic/common/tpl_main_page.php on line 181
Fatal error: main(): Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/local/lib/php') in /home/diginirv/public_html/zen_cart/store/includes/templates/magic/common/tpl_main_page.php on line 181
See it at
http://diginirvana.com/zen_cart/store
What have I done wrong? I can't tell what is going on in google analytics since I have been tracking the rest of the website for a while (I added the extra line in zen cart to show that zen cart is a subdirectory of my store).
This error results from uploading the files to the incorrect locations.
Be sure to follow the instructions very closely. It should be a 30 second "drag and drop" to get it installed.
In your case, make sure that you uploaded the "google_analytics" directory (and associated files within it) to the proper location. That should solve your issue.
It is currently looking for that directory (which contains the files that are "included" on the page to make Analytics work) under your "template_default" location.
If that is your template (and you are not using a custom template) then it means you did not upload the "google_analytics" directory to the location specified (include/templates/template_default).
To correct, simply upload that entire directory to "include/templates/template_default" and you should see the error go away.
So, what it would look like when you are done is
"includes/templates/template_default/google_analytics"
If you are using a custom directory template (called "magic") then you should upload the directory to the following location
/includes/templates/magic/
So it would look like this when complete.
/includes/templates/magic/google_analytics
Viola :)
Re: Simple Google Analytics - Support
Thanks for the help everyone! The message is gone at the bottom, but only because I went back to check on line 181 and that was the lines I copied and pasted from the instructions for Step 2:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
I just deleted it. However, now I have the problem of not having google analytics recognized. My directory has been in the right place, so this is not the problem. Hmmmm. Any other suggestions? Thank you for your help on this!
Re: Simple Google Analytics - Support
Any chance this is going to be modified for the new Google Analytics code that was released this week? Google claims that using the new (non-urchin) code will allow some kind of better viewing of ecommerce transactions; I have it installed for all my clients except for two that use Zen Cart, and wasn't sure if it would be possible/easy to update the code there. We are using this module currently.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
cgardner
Thanks for the help everyone! The message is gone at the bottom, but only because I went back to check on line 181 and that was the lines I copied and pasted from the instructions for Step 2:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
I just deleted it. However, now I have the problem of not having google analytics recognized. My directory has been in the right place, so this is not the problem. Hmmmm. Any other suggestions? Thank you for your help on this!
Google can't verify the code because by deleting those lines, you just removed the include statement that inserts the tracking code on your pages.
That line absolutely has to be in there for it to work.
I guarantee, the original problem you were seeing is due to not uploading all files to the proper locations.
My suggestion would be to go back and first remove everything you put in place for this mod. Then, reinstall carefully according to the instructions. Your problem was more than likely due to the "google-analytics" directory not being uploaded to the correct location (which contains the file that is "inserted" using the lines you removed).
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
netmeg
Any chance this is going to be modified for the new Google Analytics code that was released this week? Google claims that using the new (non-urchin) code will allow some kind of better viewing of ecommerce transactions; I have it installed for all my clients except for two that use Zen Cart, and wasn't sure if it would be possible/easy to update the code there. We are using this module currently.
Yes, this code WILL in fact be updated to use the newer Google Analytics code just released this week. I am working on that now. :)
I'll post to the board once ready to go and upload to the forums for download as well.
Re: Simple Google Analytics - Support
Ok, I have read through this entire thread here and my issue seems to be a new topic. I have installed this mod on a fresh install of zen 1.3.8. I see that the tracking code is being generated in the catalog, however I do not find the admin config settings in the control panel to set my tracking ID. I have uploaded all the files to the correct directory. Not sure why I cannot see this option in the Admin panel.
It should be under Admin>Config>Google yes?
Am I missing something?
Can I add my tracking id manually?
Thanks
Rooster
Re: Simple Google Analytics - Support
Nevermind - I had have the admin profile module setup and I simply needed to turn that feature on.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Yes, this code WILL in fact be updated to use the newer Google Analytics code just released this week. I am working on that now. :)
I'll post to the board once ready to go and upload to the forums for download as well.
Thanks Eric {BTW} I love your website and the eBooks, so much useful info.
I just set up a new site today and went to google and noticed the new script. for those who are wondering if it works in 1.3.8 YES it does,
If you are developing a mailing list for notification of this new mod, would you please include me?
JOhn ><>
Re: Simple Google Analytics - Support
Just jumped in here. Can I assume the new G code and the Simple Google Analytics mod like each other? BTW, Eric, your site won't resolve at this writing. I'll check back. Thanks.
Re: Simple Google Analytics - Support
I am having problems setting this up on my site. I am running the newest version of Zen Cart. I have done the following.
Created a Google Analytics account.
I download the google analytic mod. I checked the code in the file, /public_html/includes/templates/silverfish/common/tpl_main_page.php
Made sure that the body ID showed
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
Then added :
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
Just before the </body>
Updated the .sql file for non-upgrate.
Changed the account # in the admin config
Uploaded the files included with the mod into my file structure.
Now, when I access Google Analytics, I get tracking code not detected.
I have my Analytics set for http://www.pinwest.net and the default page, index.php.
Any ideas ???
Thanks,
David...