Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,121

Results 441 to 460 of 2,165
7 Dec 2007, 5:31 PM
#441
efman avatar

efman

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.

10 Dec 2007, 3:45 PM
#442
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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. :)

10 Dec 2007, 5:44 PM
#443
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

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?

10 Dec 2007, 5:46 PM
#444
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Is it safe to copy and paste it from an opened Word Doc?

10 Dec 2007, 9:00 PM
#445
tot_2_teen avatar

tot_2_teen

New Zenner

Join Date:
Oct 2007
Posts:
26
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Absolutely! That's what I had to do!

10 Dec 2007, 10:44 PM
#446
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks! Going to try that!

11 Dec 2007, 3:35 AM
#447
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

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).

11 Dec 2007, 9:16 AM
#448
ces avatar

ces

Zen Follower

Join Date:
Nov 2004
Location:
West Mids, England
Posts:
199
Plugin Contributions:
0

Re: Simple Google Analytics - Support

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

12 Dec 2007, 3:05 AM
#449
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

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?

13 Dec 2007, 4:39 PM
#450
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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).

13 Dec 2007, 4:46 PM
#451
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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 :)

14 Dec 2007, 3:34 PM
#452
cgardner avatar

cgardner

New Zenner

Join Date:
Sep 2007
Posts:
46
Plugin Contributions:
0

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!

14 Dec 2007, 8:14 PM
#453
netmeg avatar

netmeg

New Zenner

Join Date:
Jan 2007
Posts:
14
Plugin Contributions:
0

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.

15 Dec 2007, 1:49 PM
#454
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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).

15 Dec 2007, 1:53 PM
#455
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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.

15 Dec 2007, 5:04 PM
#456
roosterd avatar

roosterd

New Zenner

Join Date:
Nov 2005
Posts:
20
Plugin Contributions:
0

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

15 Dec 2007, 5:16 PM
#457
roosterd avatar

roosterd

New Zenner

Join Date:
Nov 2005
Posts:
20
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Nevermind - I had have the admin profile module setup and I simply needed to turn that feature on.

18 Dec 2007, 3:41 PM
#458
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Simple Google Analytics - Support

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 ><>

20 Dec 2007, 6:35 AM
#459
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

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.

20 Dec 2007, 12:35 PM
#460
pinwest avatar

pinwest

New Zenner

Join Date:
Nov 2007
Posts:
20
Plugin Contributions:
0

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...