New Zenner
- Join Date:
- Nov 2007
- Posts:
- 41
- Plugin Contributions:
- 0
Simple Google Analytics - Support
Just to wrap up...mine started working on its own.
Thanks for everyones help.
Views: 451,121
New Zenner
Just to wrap up...mine started working on its own.
Thanks for everyones help.
Totally Zenned
joshlfisher:
There was some kind of error with the SQL, and it didn't put the options in the configuration table correctly. Some kind of issue with the configuration_group_id. I got it working.
Glad you got it working.
Just for the record, I had a similar message when trying to install the Recover Carts mod on a site of mine recently. Identical message (different module).
I talked with DrByte on it and came to find out that it was due to the caching of Zen Cart. I ran the cache fix that can be downloaded from the Zen Cart downloads section, and all worked fine after that (able to install with no conflict).
I can't seem to locate that thread but if I find it, I'll post it here.
In case anyone else wants to know. :)
New Zenner
I have been reading this thread and gave up and decided to just ask my question since no one seems to have this problem. I am simply having problems uploading the sql altogether. I do a BROWSE, choose the file and upload. Nothing happens. And nothing shows up under Configuration. What am I doing wrong?
New Zenner
Is it safe to copy and paste it from an opened Word Doc?
New Zenner
Absolutely! That's what I had to do!
New Zenner
Thanks! Going to try that!
New Zenner
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).
Zen Follower
I'm no expert but it looks like you've uploaded some files to the wrong directorys from the error you've got there.
Instead of uploading them to 'template_default' try changing the directory name to 'magic' which seems to be your template override and uplaod them again.
Craig
New Zenner
What files are you talking about? The main folder called Simple_Google_Analytics- I have dropped in a number of locations, but can't seem to figure out where it goes. It is currently sitting in public_html/zen_cart/store/includes/templates/magic.
Where am I suppose to put these files?
Totally Zenned
cgardner:
Is it safe to copy and paste it from an opened Word Doc?
I would be very careful copying and pasting from any Word doc. Oftentimes too many "extra characters" are included that can cause things to go awry.
The better way is to copy and paste directly from the text file opened in a text editor like Notepad (not a word processing program like MS Word).
Totally Zenned
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 :)
New Zenner
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!
New Zenner
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.
Totally Zenned
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).
Totally Zenned
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.
New Zenner
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
New Zenner
Nevermind - I had have the admin profile module setup and I simply needed to turn that feature on.
Totally Zenned
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 ><>
Zen Follower
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.
New Zenner
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...
Fields marked required must be completed.
Tell staff why this post should be reviewed.