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

Simple Google Analytics - Support

Views: 451,182

Results 1,261 to 1,280 of 2,165
16 Jun 2010, 1:35 PM
#1261
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

sunflowertami:

hello,

The mod was working on 1.3.8a and since cache error debugging wasn't available then, don't know if it was a problem back then.

Anyway, it was working then I upgraded to 1.3.9b. On the cache, I noticed the following error every time a purchase is made:

PHP Warning: require(includes/templates/cherry_zen/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
[23-May-2010 06:19:53] PHP Warning: require(includes/templates/cherry_zen/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/l/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
[23-May-2010 06:19:53] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/cherry_zen/checkout_success//google_analytics.php' (include_path='.:/usr/local/php5/lib/php') in /home/includes/templates/cherry_zen/common/tpl_main_page.php on line 227

I have the google analytics folder correctly located on:
templates/cherry_zen/google_analytics/google_analytics.php

Then just to be sure, I took out the php file and just added it to the root of templates/cherry_zen/google_analytics.php

I still get the same error though, but it appears the site is functioning. I tested it, no blank pages and google is recording the order, it is just that the error comes out everytime.

Any ideas?

This should work regardless of version (older versions as well as new.)

The error you are getting looks it can't find the file in the following location:

includes/templates/cherry_zen/checkout_success//google_analytics.php

Notice the "checkout_success" portion. That is not a part of the original code. It looks to me like the tpl_main_page.php file is somehow now referencing the google_analytics.php file in the checkout success folder (which is incorrect).

Did you change anything else (add any mods) during upgrade? Did you add any third party mods or alter the "checkout_success" portion? During that process is when your error likely developed.

The message basically means that the system is looking for the google_analytics.php file in the "checkout_success" folder and since it can't find it, it throws the error. The tracking still works because you likely have the proper code also referencing the "google_analytics" folder (as it should.)

Remove the reference to the checkout_success portion and all should be ok.

16 Jun 2010, 1:39 PM
#1262
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

panuma:

Hello there,

I just installed for the first time google analytics on my website, and followed the process step by step.. but it doesn't seem to work, when I go to my google analytics account, the status shows a yellow warning instead of "receiving data".

I hope someone can help me, thanks.

Just checked your site, and the tracking code is installed correctly.

You may need to reverify the status of the code in place with Google to make it see it.

Try to do that and you should be ok. Make sure when telling Google where to find the code you use the proper url (watch the trailing slash at times).

Also make sure you are using the right Google Analytics tracking ID. Currently on your page you are using "UA-16986522-1". If you are not looking at the tracking for that exact number (within your GA account) you'll find it says "no tracking installed" (or the warning message.)

Let me know if that helps.

16 Jun 2010, 5:56 PM
#1263
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks for your response,
I wrote to quickly on the forum, later on I noticed it takes until 24 hours to get activated..

have a good day

22 Jun 2010, 5:49 PM
#1264
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Ok, so I've downloaded the analytics module and read the install file but it's not very good. Can someone please point me in the right direction concerning how to actually install this thing?

Ian

23 Jun 2010, 11:40 AM
#1265
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

r1formetoo:

Ok, so I've downloaded the analytics module and read the install file but it's not very good. Can someone please point me in the right direction concerning how to actually install this thing?

Ian

If you are using Simple Google Analytics (not the other module) then the install is very straight forward. Follow the steps numbered in the readme and run the Install patch.

Just make sure you don't miss step #3 in the install (which is the only time you need to add anything to code), and copy the files to the same folder your template is running from.

Should be up and running in 2 minutes or less.

23 Jun 2010, 4:17 PM
#1266
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

If you are using Simple Google Analytics (not the other module) then the install is very straight forward. Follow the steps numbered in the readme and run the Install patch.

Just make sure you don't miss step #3 in the install (which is the only time you need to add anything to code), and copy the files to the same folder your template is running from.

Should be up and running in 2 minutes or less.

Ahh. Turns out that I had the other module downloaded. I've deleted that one because it seems like much more trouble. I've downloaded Simple Google Analytics but before I go any further and actually install this I want to make sure that having conversion tracking already set up on my site won't screw anything up? You know, I've added the conversion tracking code to my checkout_success page. Do I need to remove that before installing? I don't want the two pieces of code to conflict.

Ian

24 Jun 2010, 4:20 PM
#1267
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

r1formetoo:

Ahh. Turns out that I had the other module downloaded. I've deleted that one because it seems like much more trouble. I've downloaded Simple Google Analytics but before I go any further and actually install this I want to make sure that having conversion tracking already set up on my site won't screw anything up? You know, I've added the conversion tracking code to my checkout_success page. Do I need to remove that before installing? I don't want the two pieces of code to conflict.

Ian

My version has conversion tracking already built in so it would conflict with the coded you entered on the checkout_success page.

I would remove that code and then once you get mine installed, go to the configuration section of the admin and plug your tracking ID (just the conversion tracking number) into the proper text field and save. Select the radio button that says "turn on conversion tracking" and save. All set.

The other thing I have noticed with those that moved from the other version to this one is that there are a number of files the other version makes you add. Make sure you remove all of those files it makes you add including those "js" type files that auto load. Those can cause conflicts as well with my version at times and render no tracking at all.

Let me know if that helps.

Thanks!

9 Jul 2010, 9:38 PM
#1268
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have followed the installation guide in the download package, how do I now if the installation is correct?

10 Jul 2010, 7:03 PM
#1269
jdalton avatar

jdalton

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have installed this module for a number of months now. I was using predominately the urchin.js version. I have noticed however when testing myself, that a number of the google organic searches not appear. Also if a organic search does appear then the correct keyword does not appear & i get something like "site:ethoil.com" (my website)
I have changed to ga.js but that too seems to be as inconsistent as the other. ALso any referrals on yahoo search never appear??

11 Jul 2010, 11:38 AM
#1270
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

fei2010:

I have followed the installation guide in the download package, how do I now if the installation is correct?

If you entered your Analytics ID in the "Configuration" section for Google Analytics and the code shows on the bottom of your pages you are ready to go. You will have to make sure you tell google where to verify the tracking code at for it to start recording data.

11 Jul 2010, 11:44 AM
#1271
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jdalton:

I have installed this module for a number of months now. I was using predominately the urchin.js version. I have noticed however when testing myself, that a number of the google organic searches not appear. Also if a organic search does appear then the correct keyword does not appear & i get something like "site:ethoil.com" (my website)
I have changed to ga.js but that too seems to be as inconsistent as the other. ALso any referrals on yahoo search never appear??

The module does not actually record the data. That is done on Google's end. So any tracking that is not consistent is a Google side issue more than likely.

This module simply provides the ability for tracking to take place by placing the code on the page.

There will always be differences in tracking to some degree (more on the ga.js version than the urchin version) because google uses javascript to track.

For Yahoo, it should appear just like any other engine does UNLESS you are talking about "yahoo search marketing" 9as in paid search or ppc).

Google does not track that info out of the box and you have to make some adjustments (on google's end not within the module) to track that information in your Google Analytics.

Here is an article that may help you do that.

How To Track Yahoo Paid Search With Google Analitycs

16 Jul 2010, 6:46 AM
#1272
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi there,
I've just installed this for the first time on a 1.3.9d cart and when I install the sql, it returns the following error:

1366 Incorrect integer value: '' for column 'configuration_group_id' at row 1
in:
[INSERT INTO configuration_group VALUES ('', 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Not sure what that means but any advice is much appreciated.
Thanks heaps
Rob

19 Jul 2010, 12:23 PM
#1273
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

robax:

Hi there,
I've just installed this for the first time on a 1.3.9d cart and when I install the sql, it returns the following error:

1366 Incorrect integer value: '' for column 'configuration_group_id' at row 1
in:
[INSERT INTO configuration_group VALUES ('', 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Not sure what that means but any advice is much appreciated.
Thanks heaps
Rob

Rob,

This works fine on all version of zen (including the newest).

A few questions for you:

  1. How did you install the patch? You should copy and paste it into the zen cart admin (not upload it) and run it from there.

  2. What version of MySQL are you running?

  3. What version of PHP are you running?

19 Jul 2010, 1:24 PM
#1274
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Rob,

This works fine on all version of zen (including the newest).

A few questions for you:

  1. How did you install the patch? You should copy and paste it into the zen cart admin (not upload it) and run it from there.

  2. What version of MySQL are you running?

  3. What version of PHP are you running?

Hi and thanks for the reply,

At first I tried uploading it, and that produced the error. Then I tried pasting it in, and that gave the same error exactly.

I'm running PHP Version 5.2.13 on IIS7 FastCGI mode, and MySQL 5.1.46

I've got 3 Zen Carts on the server, one old 1.3.7, one fairly old 1.3.8a, which has an earlier version of the analytics mod on it, and now I'm keen to get it working on 1.3.9d

Do you think there is any damage from uploading the script first time around, or is it pretty safe once it has failed with the error.. I assume it would have stopped processing the script, but I don't really know much about it.

Perhaps I should check the db for some tables to remove if the script upload messed it up?

Thanks for any advice on this
Rob

20 Jul 2010, 1:32 PM
#1275
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

@robax,

Give this link a try. The error you are getting is likely a result of strict mode being turned on in your MySQL install.

[
http://www.zen-cart.com/forum/showthread.php?t=63993](http://www.zen-cart.com/forum/showthread.php?t=63993)

That link gives some info on how to turn it off or address it.

Let me know if it helps!

21 Jul 2010, 1:15 PM
#1276
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

@robax,

Give this link a try. The error you are getting is likely a result of strict mode being turned on in your MySQL install.

[
http://www.zen-cart.com/forum/showthread.php?t=63993](http://www.zen-cart.com/forum/showthread.php?t=63993)

That link gives some info on how to turn it off or address it.

Let me know if it helps!

Thank you Eric! you rule!
Commenting the strict line out of my.ini allows the sql to execute and everything's working perfectly.
:clap:

24 Jul 2010, 4:38 PM
#1277
ptowers49 avatar

ptowers49

New Zenner

Join Date:
Aug 2009
Location:
UK
Posts:
71
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi

I've been using google simple anaytics for some time now and it has been good.
The only issue is that some traffic appears as a referral from my own domain.
ie. classicalchandeliers.co.uk/ referral

This is not good when I am trying to track the source of sales.

I do have a htaccess redirect from non-www to www

Any idea how this could be fixed?

thanks in anticipation

Paul

25 Jul 2010, 12:07 PM
#1278
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

ptowers49:

Hi

I've been using google simple anaytics for some time now and it has been good.
The only issue is that some traffic appears as a referral from my own domain.
ie. classicalchandeliers.co.uk/ referral

This is not good when I am trying to track the source of sales.

I do have a htaccess redirect from non-www to www

Any idea how this could be fixed?

thanks in anticipation

Paul

Paul,

Try some of these links to see if anything helps. There is some good info here. Let me know if any of this solves any issues. It sounds like there are a number of cases where this could happen.

http://groups.google.com/group/analytics-help-troubleshoot/browse_thread/thread/3f9314c58720e952/f0148ea3875d2890?lnk=gst&q=

http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=09e914574a0d52c7&hl=en

http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=68c497ffbb8b6ec9&hl=en

http://www.analyticsmarket.com/blog/referrals-from-own-site

15 Aug 2010, 11:33 AM
#1280
upnorthal avatar

upnorthal

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi

I'm running Zencart 1.3.9 d

This is a fresh install of Simple google Anayltics

Files installed.

I've appended the code to just before the closing <\body> in
/includes/templates/[your_template]/common/tpl_main_page.php

I've run the install.sql - no errors.

I've setup up a google analytics account.
I've configured the "UA-" account number in Zencart to match.

No matter what I do, I can't get Google to connect. The yellow hazard sign never dissaperas in Google.

I can see code has been appended to my source when viewing in FireBug.

My site is :-

http://www.reefbay.co.uk/ (which redirects with a 903 to http://www.reefbay.co.uk/shop)

Can anyone see anything obvious I have missed? I'm sure it must be something really basic, but I just can't see it.

cheers
Al