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

Simple Google Analytics - Support

Views: 451,121

Results 461 to 480 of 2,165
21 Dec 2007, 6:35 PM
#461
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

JackA:

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.

The new G code and Simple Google Analytics WILL like each other (once I get this new version out).

The upgrade from this version to the next should be pretty simple.

Until then, you can use this version of Simple Google Analytics (which uses the previous "Urchin" tracking method and will be supported by Google for at least another year -- don't worry, my module will be out long before that with the updated code :).

21 Dec 2007, 6:40 PM
#462
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

pinwest:

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

Did you forget the trailing slash when telling Google where to verify code at?

You have to be careful at times with letting Google know the exact location.

Try reading through this post. It has some things to consider if the code shows as not detected. (One being the trailing slash).

http://www.zencartoptimization.com/2007/07/18/google-analytics-de-mystified-part-2-vanilla-google-analytics/

21 Dec 2007, 9:36 PM
#463
pinwest avatar

pinwest

New Zenner

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

Re: Simple Google Analytics - Support

Thank you very much. Figured out. My problem was that I copied the reg. code from the goggle site. Forget where I got it but the one I copied did not have the "-1" at the end therefore the activation code was incorrect. I found that when I check the code that goggle wanted me to enter into my site, the code had the -1 while the code I was using did not.

Thanks for the link, it did help me greatly.

David...

22 Dec 2007, 1:20 PM
#464
nrg avatar

nrg

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

Who knows what I did wrong, when I do get the normal analytics data, but the ecomerce keeps saying 0.00% conversion. Somehow the ecommerce things are not tracked, as I have had sales since I installed this.

(I had analytics running before I installed the module. And I have selected 'ecommerce site' in my analytics account. Also I can see the urchin code when I view source.)

23 Dec 2007, 10:51 PM
#465
shamis avatar

shamis

New Zenner

Join Date:
Dec 2007
Posts:
57
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I'm trying to install GA. I am at step 4 (updating database with sql file) This is what I received below. I have zen 1.3.7.1 and MySQL 4.1.22-standard-log. Anyone know what I did wrong. Keep in mind that I am clueless about all this stuff:blush:

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:
[INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Activate Conversion Tracking', 'GOOGLE_CONVERSION_ACTIVE', 'No', 'This element enables you turn on or off Google Conversion Tracking.

Please Note: Conversion tracking is used to track the effectiveness of Google AdWords paid search campaigns. If you are not running any paid search campaigns, then you should leave this set to "No".

If you are running Google AdWords (paid search) campaigns, then turning this on will place the proper conversion tracking code on your checkout success page and enable you to start tracking conversions.

Turning this on requires you to enter your unique Google Conversion Tracking ID in place of the "XXXXXXXXXXX" number shown in the next section.

For more hints and tips on how to use Google Analytics to increase sales from your store, visit ZenCartOptimization.com

Do you want to turn on Google AdWords Conversion Tracking?
', @t4, 5, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('Yes', 'No'), ');]
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.

24 Dec 2007, 4:10 PM
#466
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

shamis:

I'm trying to install GA. I am at step 4 (updating database with sql file) This is what I received below. I have zen 1.3.7.1 and MySQL 4.1.22-standard-log. Anyone know what I did wrong. Keep in mind that I am clueless about all this stuff:blush:

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:
[INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Activate Conversion Tracking', 'GOOGLE_CONVERSION_ACTIVE', 'No', 'This element enables you turn on or off Google Conversion Tracking.

Please Note: Conversion tracking is used to track the effectiveness of Google AdWords paid search campaigns. If you are not running any paid search campaigns, then you should leave this set to "No".

If you are running Google AdWords (paid search) campaigns, then turning this on will place the proper conversion tracking code on your checkout success page and enable you to start tracking conversions.

Turning this on requires you to enter your unique Google Conversion Tracking ID in place of the "XXXXXXXXXXX" number shown in the next section.

For more hints and tips on how to use Google Analytics to increase sales from your store, visit ZenCartOptimization.com

Do you want to turn on Google AdWords Conversion Tracking?
', @t4, 5, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('Yes', 'No'), ');]
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.

This error usually results from not uploading the "google_analytics" directory to the proper location.

It should be uploaded to your template main directory as such:

/includes/templates/{your template directory here}/google_analytics

24 Dec 2007, 5:43 PM
#467
shamis avatar

shamis

New Zenner

Join Date:
Dec 2007
Posts:
57
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks econcepts!

24 Dec 2007, 6:28 PM
#468
shamis avatar

shamis

New Zenner

Join Date:
Dec 2007
Posts:
57
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I'm still having problems. First I get this warning below on the bottom of my site and when I check my GA account it states that GA tracking hasn't been installed on my website. But I have done everything up to step step 5

This is fustrating:frusty:

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/shamista/public_html/contagioushair/includes/templates/SexyPink/common/tpl_main_page.php on line 176

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/shamista/public_html/contagioushair/includes/templates/SexyPink/common/tpl_main_page.php on line 176

Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/shamista/public_html/contagioushair/includes/templates/SexyPink/common/tpl_main_page.php on line 176

25 Dec 2007, 4:26 PM
#469
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Simple Google Analytics - Support

shamis:

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: No such file or directory

It's telling you that it's looking for a specific file ... but can't find it.
Note the path and filename it's mentioning.
Use your FTP program and check to see if the file exists exactly as mentioned in the error message, as I've highlighted above for convenience.
... perhaps you missed uploading it somehow.

25 Dec 2007, 11:39 PM
#470
shamis avatar

shamis

New Zenner

Join Date:
Dec 2007
Posts:
57
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thank you so much Dr. Byte!:clap: It is now finally working and Google says it's receiving data. I hope in the future that the installation instructions in mod contributions are a more "newb friendly" because when we follow instructions to a T and still run into problems, it get's a little discouraging.

2 Jan 2008, 3:54 PM
#471
wyreworks avatar

wyreworks

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I had Google Analytics working before (but e-Commerce never worked). I installed Simple Google Analytics and still have the same problem.

In my Zen Cart Admin, in the Google Analytics settings, target address is set to "Customers" (maybe it should be "billing"??) and I do have e-Commerce enabled in my Google Analytics settings.

I receive regular analytics data, but convesions always show as 0% even though I have made sales.

I also set up two goals, one for the shopping cart and one for checkout, and the shopping cart goal works and shows data but the checkout one does not.

I have "http://wyreworks.com/index.php?main_page=checkout_process" set as the page for the checkout goal, which i am pretty sure is correct. I am currently using PayPal IPN as my only method of payment (although if I can ever figure out how to get the shared secure server working with checkout I can add regular credit card processing as well, since I can take cards offline).

If anyone has any ideas how I can get e-Commerce working, I would be very grateful!! :)

2 Jan 2008, 9:06 PM
#472
jds580s avatar

jds580s

New Zenner

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

Re: Simple Google Analytics - Support

surf7.net:

Dear developer of this excellent mod,

Just wanna inform you that the included installation sql patch will delete configuration_key with configuration_group_id = 0

The effected keys are

PRODUCTS_OPTIONS_TYPE_SELECT
UPLOAD_PREFIX
TEXT_PREFIX

Deletion of above keys will effect the proper functionality of Zen Cart.

This happened to me after installing Simple Google Analytics Mod

What is the proper SQL syntax to re-insert these 3 keys with their default values?

I have my backedup databased and can see the line they appear on, but the line is huge (when viewing with text wrap it's over 1000 lines of code)

I would prefer not to roll back to my previous database backup in it's entirety since multiple orders have been placed since then while I was figuring out what was causing the issues I was experiencing on the site (tracking back the problems to those 3 keys, searched and found this thread)

Any help is much appreciated

The portions of that line of code that seem pertinent to those keys are:

(364,'Product option type Select','PRODUCTS_OPTIONS_TYPE_SELECT','0','The number representing the Select type of product option.',0,NULL,'2007-10-08 10:56:19','2007-10-08 10:56:19',NULL,NULL)

(370,'Upload prefix','UPLOAD_PREFIX','upload_','Prefix used to differentiate between upload options and other options',0,NULL,'2007-10-08 10:56:19','2007-10-08 10:56:19',NULL,NULL)

(371,'Text prefix','TEXT_PREFIX','txt_','Prefix used to differentiate between text option values and other option values',0,NULL,'2007-10-08 10:56:19','2007-10-08 10:56:19',NULL,NULL)
2 Jan 2008, 9:50 PM
#473
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

wyreworks:

I had Google Analytics working before (but e-Commerce never worked). I installed Simple Google Analytics and still have the same problem.

In my Zen Cart Admin, in the Google Analytics settings, target address is set to "Customers" (maybe it should be "billing"??) and I do have e-Commerce enabled in my Google Analytics settings.

I receive regular analytics data, but convesions always show as 0% even though I have made sales.

I also set up two goals, one for the shopping cart and one for checkout, and the shopping cart goal works and shows data but the checkout one does not.

I have "http://wyreworks.com/index.php?main_page=checkout_process" set as the page for the checkout goal, which i am pretty sure is correct. I am currently using PayPal IPN as my only method of payment (although if I can ever figure out how to get the shared secure server working with checkout I can add regular credit card processing as well, since I can take cards offline).

If anyone has any ideas how I can get e-Commerce working, I would be very grateful!! :)

Did you activate "e-commerce tracking" within your Google Analytics account? Just installing tracking code is not enough. You need to inform Google that you wish to track e-commerce transactions from within your Analytics profile. Set the radio button to "yes" (I want to track e-commerce data).

2 Jan 2008, 9:53 PM
#474
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jds580s:

This happened to me after installing Simple Google Analytics Mod

What is the proper SQL syntax to re-insert these 3 keys with their default values?

I have my backedup databased and can see the line they appear on, but the line is huge (when viewing with text wrap it's over 1000 lines of code)

I would prefer not to roll back to my previous database backup in it's entirety since multiple orders have been placed since then while I was figuring out what was causing the issues I was experiencing on the site (tracking back the problems to those 3 keys, searched and found this thread)

Any help is much appreciated

The portions of that line of code that seem pertinent to those keys are:

(364,'Product option type Select','PRODUCTS_OPTIONS_TYPE_SELECT','0','The number representing the Select type of product option.',0,NULL,'2007-10-08 10:56:19','2007-10-08 10:56:19',NULL,NULL)

(370,'Upload prefix','UPLOAD_PREFIX','upload_','Prefix used to differentiate between upload options and other options',0,NULL,'2007-10-08 10:56:19','2007-10-08 10:56:19',NULL,NULL)

(371,'Text prefix','TEXT_PREFIX','txt_','Prefix used to differentiate between text option values and other option values',0,NULL,'2007-10-08 10:56:19','2007-10-08 10:56:19',NULL,NULL)


A few questions.

1) What version of Zen are you running?
2) What other mods do you have installed (and were any others installed around the time you installed Simple GA?)

3)  Are you certain the installation of the GA mod caused it? 

Out of all the other users in this forum with the mod, there are only two that reported this (1 being you, and the other being surfnet7). 

I have been unable to duplicate this on any install of Zen to date.

Let me know the above and we'll see if we can't get to the bottom of what may have caused it.
2 Jan 2008, 10:01 PM
#475
wyreworks avatar

wyreworks

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

A few questions.

  1. What version of Zen are you running?

  2. What other mods do you have installed (and were any others installed around the time you installed Simple GA?)

  3. Are you certain the installation of the GA mod caused it?

Out of all the other users in this forum with the mod, there are only two that reported this (1 being you, and the other being surfnet7).

I have been unable to duplicate this on any install of Zen to date.

Let me know the above and we'll see if we can't get to the bottom of what may have caused it.

Hi... ok, here's what I have...

  1. Zen Cart 1.3.7

  2. yes, I have lots of other mods installed, and I've been working on the site a LOT in the last couple of weeks, so honestly I would have no idea if any of them are affecting Google Analytics. However, I only recently installed the Google Analytics mod, and I don't think I've done much since then.

  3. I used to have the Google Analytics code in my header (or footer, can't remember now as I did it over a year ago), and I have always been able to get regular analytics data in my analytics account, but e-commerce tracking has never worked. I have always had e-commerce set to "yes" in my analytics settings, but it does not make a difference

  4. I installed Simple Google Analytics, hoping that would automatically make the e-commerce tracking work correctly, but everything still seems to be the same as before I installed it, and it still shows as 0% even though I have made sales.

  5. My current checkout method is PayPal IPN... I wonder if that has anything to do with it, since it goes to a 3rd party payment page?

thanks so much!

2 Jan 2008, 10:03 PM
#476
wyreworks avatar

wyreworks

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I was reading so fast, only just now saw that these questions were for someone else, but maybe this info will help with my e-commerce problem, too :)

wyreworks:

Hi... ok, here's what I have...

  1. Zen Cart 1.3.7

  2. yes, I have lots of other mods installed, and I've been working on the site a LOT in the last couple of weeks, so honestly I would have no idea if any of them are affecting Google Analytics. However, I only recently installed the Google Analytics mod, and I don't think I've done much since then.

  3. I used to have the Google Analytics code in my header (or footer, can't remember now as I did it over a year ago), and I have always been able to get regular analytics data in my analytics account, but e-commerce tracking has never worked. I have always had e-commerce set to "yes" in my analytics settings, but it does not make a difference

  4. I installed Simple Google Analytics, hoping that would automatically make the e-commerce tracking work correctly, but everything still seems to be the same as before I installed it, and it still shows as 0% even though I have made sales.

  5. My current checkout method is PayPal IPN... I wonder if that has anything to do with it, since it goes to a 3rd party payment page?

thanks so much!

2 Jan 2008, 10:21 PM
#477
jds580s avatar

jds580s

New Zenner

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

Re: Simple Google Analytics - Support

econcepts:

A few questions.

  1. What version of Zen are you running?

  2. What other mods do you have installed (and were any others installed around the time you installed Simple GA?)

  3. Are you certain the installation of the GA mod caused it?

Out of all the other users in this forum with the mod, there are only two that reported this (1 being you, and the other being surfnet7).

I have been unable to duplicate this on any install of Zen to date.

Let me know the above and we'll see if we can't get to the bottom of what may have caused it.

Sorry should have included that info in the original post

  1. ZenCart version 1.3.7.1
    Database Patch Level: 1.3.7.1

  2. The only other mod installed is FedEx which was installed at site launch (simple google analytics was installed post launch by about 2 months)
    No other changes happened to the site at the time of the google analytics add-on.

  3. I won't say 100% certain, as there is always room for error, but everything I have reviewed and scrutinized over points to SGA as the culprit. I even asked the host to check error logs and see if there were any updates that might have been responsible for the server behaving differently or modifying the database, they took the time to help but were unable to find anything on their end.

Thanks!

3 Jan 2008, 10:37 PM
#478
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello - trying to get done with Step one here. I haven't read this entire thread (that doesn't seem like it should be necessary), but I'm in need of some help.

From the first page of this thread, referencing the ReadMe Step 1:

By default this is in includes/templates/[your_template]/common/tpl_main_page.php

but could be located in includes/templates/[your_template]/common/tpl_header.php
as well, depends on how your site has been templated.

I don't have an includes/templates/[your_template]/common/tpl_main_page.php, but I do have the header and footer.php.

The problem is when I open the header and do a ctrl+f for "body", I don't even have that text.

What is my first step here? v 1.3.7

Thanks!

3 Jan 2008, 11:28 PM
#479
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Simple Google Analytics - Support

All right well I found..

includes/templates/template_default/common/tpl_main_page.php

... should I modify this file and put it in my template directory with the header and footer.php?

4 Jan 2008, 12:57 AM
#480
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Simple Google Analytics - Support

All right, now I've got a real problem..

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php): failed to open stream: No such file or directory in xxx/catalog/includes/templates/custom/common/tpl_main_page.php on line 182

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php): failed to open stream: No such file or directory in xxx/catalog/includes/templates/custom/common/tpl_main_page.php on line 182

Fatal error: main(): Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/local/lib/php') in xxx/catalog/includes/templates/custom/common/tpl_main_page.php on line 182

Obviously it says it can't find a file but I need to know how to correct this. I ran the sql file from the admin, set up the configuration in the admin area with the proper google identification numbers for what, analytics and conversion tracking.

I go to test the conversion, click an Add from google, go to login to my site to make a "purchase" and I get this problem. Help? Thanks!