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

Simple Google Analytics - Support

Views: 451,065

Results 121 to 140 of 2,165
25 Apr 2007, 8:36 PM
#121
dreamdaily avatar

dreamdaily

New Zenner

Join Date:
Apr 2005
Posts:
53
Plugin Contributions:
0

Simple Google Analytics - Support

Dear cuda,

Thank you for the reply!

cuda:

Dreamdaily-

  1. Google analytics tracks when you land on a page with the google analytics code not when you exit (exits are when you do not return to the site)... you can however track button clicks if desired. If a user does not return to the success page their transaction data can not be tracked you are correct.

  2. How are you going to call the javascript?

Yes, according to the 1) above, at the moment, we let all PayPal-ers "go unsupervised" and un-tracked when they press "confirm" button to pay. We hope that they return to the checkout_success page and will show up on the Google radar again, reconciling the session records.

However, until they return from PayPal we do not know whether they abandoned the cart on the confirmation page, or abandoned the payment process on the PayPal site, or did not return after the payment was made, or will return soon.

For a large number of ZC folks using PayPal as their main and only payment processor, this might skew their transactional and navigational data.

A quick suggestion that might bring this under better control, at least on the navigational side:
as you implied in your email, we can execute a tracing (not transactional) call to Google when the "confirm" button is pressed and the payment option is PayPal. Store owners would see at least the navigational path to PayPal. I can certainly live with this data, knowing that my customer went out to pay.

This javascript "tap" could be a simple solution for the issue, I guess.

Another, more sophisticated way of doing it, would be writing additional code for the ipn_main_handler/paypal_function.php to execute along with its main call to PayPal an additional quick HTTP POST to Google.

Is anyone up to it?
--dreamdaily

25 Apr 2007, 9:36 PM
#122
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Simple Google Analytics - Support

Answer for what? How to processing PayPal ipn_main_handler? I am interested with opinion of the developer.

29 Apr 2007, 2:16 AM
#123
zhangfei avatar

zhangfei

New Zenner

Join Date:
Apr 2007
Location:
Portland, OR
Posts:
6
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

Noob's 2 cents here:

For the Google analytics account make sure you enter the account number specified in the code example Google spits out for you. I was entering my Google analytics account UA-xxxxxxx (from 'Edit Analytics Account') but really should have added a '-1' to it, as that was what the code example Google had for me.

Hope that helps others.

Looking forward to using this, and thanks to all those who contribute to ZC.

1 May 2007, 12:46 AM
#124
mtlfloss avatar

mtlfloss

New Zenner

Join Date:
Apr 2007
Location:
Montreal
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I just installed this script, but I get this error message when I try and access my store:

Forbidden

You don't have permission to access /store/includes/templates/template_default/common/tpl_main_page.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I had made a database backup before, I tried restoring my database, got the same message. I tried taking out the modifications to the tpl_main_page file, got the same error message.

Any ideas?
my store link is store.montrealfloss.com

1 May 2007, 11:40 AM
#125
mtlfloss avatar

mtlfloss

New Zenner

Join Date:
Apr 2007
Location:
Montreal
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

FIXED :clap:

1 May 2007, 12:28 PM
#126
samantha_birt avatar

samantha_birt

New Zenner

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

Re: Simple Google Analytics - Support

can you tell me how and where I enter the tracking code for Google Analytics. What tab I go into e.g configuration, tools etc...

Please help:yuck:

1 May 2007, 1:13 PM
#127
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

samantha birt:

can you tell me how and where I enter the tracking code for Google Analytics. What tab I go into e.g configuration, tools etc...

Please help:yuck:

In the admin go to:

configuration -> Google Analytics Configuration

From there you can enter the data you need too.

cuda

2 May 2007, 7:19 AM
#128
samantha_birt avatar

samantha_birt

New Zenner

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

Re: Simple Google Analytics - Support

I do not have google analstics configuration on my configuration tab.:(

2 May 2007, 7:22 AM
#129
samantha_birt avatar

samantha_birt

New Zenner

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

Re: Simple Google Analytics - Support

cuda:

yeah I had just uploaded it. thanks kim!

How do you upload simple google anaystics onto my site? I have downloaded it onto winzip but how do I get it on my site?

2 May 2007, 10:30 AM
#130
robax avatar

robax

Zen Follower

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

Re: Simple Google Analytics - Support

Samantha... have you installed the mod that this thread is about? It's in the downloads section of the site here if you haven't.

If you have installed it, then you might have to try again because the menu will appear when it is installed correctly.
Rob

7 May 2007, 7:14 AM
#131
arretx avatar

arretx

New Zenner

Join Date:
May 2007
Posts:
7
Plugin Contributions:
0

Re: Simple Google Analytics - Support

The SQL file won't run in SQLYog or in the SQL import tool from the admin pages.

Am I screwing something up?

Tools --> Install SQL Patches

I copy the SQL statement in the googleanalytics.sql file and try to run it and I get an error.

I try to upload it from the browse feature and I get an error.

1264 Out of range value adjusted for column 'configuration_group_id' at row 1
in:
[INSERT INTO zen_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.

7 May 2007, 9:48 PM
#132
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

arretx:

The SQL file won't run in SQLYog or in the SQL import tool from the admin pages.

Am I screwing something up?

Tools --> Install SQL Patches

I copy the SQL statement in the googleanalytics.sql file and try to run it and I get an error.

I try to upload it from the browse feature and I get an error.

1264 Out of range value adjusted for column 'configuration_group_id' at row 1
in:
[INSERT INTO zen_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.

are you using mysql 5.0? If you are try replacing any value set as '' aka no value, with NULL with no quotes. so the above would be:

INSERT INTO zen_configuration_group VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1')

Try this:

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4 
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;

INSERT INTO configuration_group VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4 
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';

INSERT INTO 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 (NULL, 'Analytics Account', 'GOOGLE_ANALYTICS_UACCT', 'UA-XXXXXX-X', 'Enter your Google Analytics account number', @t4, 1, NOW(), NOW(), NULL, NULL),
(NULL, 'Target Address', 'GOOGLE_ANALYTICS_TARGET', 'customers', 'What adress (City/State/Country to correlate the transaction with) use in Analytics transaction?', @t4, 2, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''customers'', ''delivery'', ''billing''),'),
(NULL, 'Affiliation', 'GOOGLE_ANALYTICS_AFFILIATION', '', 'Optional partner or store affilation', @t4, 3, NOW(), NOW(), NULL, NULL),
(NULL, 'Use sku/code', 'GOOGLE_ANALYTICS_SKUCODE', 'products_id', 'Using as Product SKU code', @t4, 4, now(), now(), NULL, 'zen_cfg_select_option(array(''products_id'', ''products_model''),');

Let us know if that works....

7 May 2007, 11:34 PM
#133
drbyte avatar

drbyte

Sensei

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

Re: Simple Google Analytics - Support

To add to what cuda suggested, NULL or 0 should work (both without quotes).

9 May 2007, 5:25 AM
#134
myhandbaghouse avatar

myhandbaghouse

New Zenner

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

Re: Simple Google Analytics - Support

Hi,

I need some help with this...

I have read the entire thread, but must be missing something :frusty:

GA is saying tracking is not installed. Can someone have a look at my site and see what I am missing please.

Thanks

www.myhandbaghouse.com

9 May 2007, 12:01 PM
#135
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

myhandbaghouse:

Hi,

I need some help with this...

I have read the entire thread, but must be missing something :frusty:

GA is saying tracking is not installed. Can someone have a look at my site and see what I am missing please.

Thanks

www.myhandbaghouse.com

Check your account number I believe you have one extra number in the main account number before the "-1"...let us know if that works.

9 May 2007, 3:52 PM
#136
myhandbaghouse avatar

myhandbaghouse

New Zenner

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

Re: Simple Google Analytics - Support

Hi cuda,

no thats not it. I double checked the source code on my main page, and the control mod and both are showing the correct acct # as provided by google.

Here is the script google creates on GA when I run the test:

<script src="<http://www.google-analytics.com/urchin.js>" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-1805379-1"; urchinTracker(); </script>

I have not used this code because from what I understand your way will be more effective with ZC. Any other ideas for me?

One thing I did notice in my templete files is that I have both files in the templete directory tpl_header.php & tpl_main_page.php. I inputed the script provided in the readme of your download into tpl_main_page.php.
Is having tpl_header.php in the same directory screwing something up?

Thanks a million for the help!

9 May 2007, 8:38 PM
#137
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

myhandbaghouse:

Hi cuda,

no thats not it. I double checked the source code on my main page, and the control mod and both are showing the correct acct # as provided by google.

Here is the script google creates on GA when I run the test:

<script src="<http://www.google-analytics.com/urchin.js>" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-1805379-1"; urchinTracker(); </script>

I have not used this code because from what I understand your way will be more effective with ZC. Any other ideas for me?

One thing I did notice in my templete files is that I have both files in the templete directory tpl_header.php & tpl_main_page.php. I inputed the script provided in the readme of your download into tpl_main_page.php.
Is having tpl_header.php in the same directory screwing something up?

Thanks a million for the help!

Everything looks good to me here....go into google analytics and make sure you have your website set to the correct url with no typos. I do not see any conflicts...let me know if you still are not getting anything after you check the analytics.

10 May 2007, 4:37 PM
#138
myhandbaghouse avatar

myhandbaghouse

New Zenner

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

Re: Simple Google Analytics - Support

Well I dont know what happened Cuda, but it seems to be working now.

Now I have to set goals...where is a good landing place for goals on zc?

  • handbag house
10 May 2007, 5:07 PM
#139
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

myhandbaghouse:

Well I dont know what happened Cuda, but it seems to be working now.

Now I have to set goals...where is a good landing place for goals on zc?

  • handbag house

Glad is started working....Here is how I set up checkout goal

goal url: https://www.your-site.com/index.php?main_page=checkout_success

Steps:

  1. http://www.your-site.com/index.php?main_page=shopping_cart
  2. https://www.your-site.com/index.php?main_page=login
  3. https://www.your-site.com/index.php?main_page=create_account_success
    4.https://www.your-site.com/index.php?main_page=checkout_shipping
    5.https://www.your-site.com/index.php?main_page=checkout_payment
    6.https://www.your-site.com/index.php?main_page=checkout_confirmation
    7.https://www.your-site.com/index.php?main_page=checkout_success

Match type: Head Match

Hope that helps, others I am sure use a different method.

cuda

11 May 2007, 11:34 AM
#140
dmservices avatar

dmservices

New Zenner

Join Date:
Feb 2006
Posts:
21
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi Cuda, afraid im struggling to install simple analytics - am running zen 1.3.7 with MySQL 5.0.27-standard. Added both the files and edited tpl_main_page. then ran the sql script.
No menu option is appearing for me under admin/configuration and i get the following error on homepage:

Warning: require(includes/templates/Dan/index/google_analytics.php) [function.require]: failed to open stream: No such file or directory in /home/dsmeek/public_html/includes/templates/Dan/common/tpl_main_page.php on line 180

Fatal error: require() [function.require]: Failed opening required 'includes/templates/Dan/index/google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dsmeek/public_html/includes/templates/Dan/common/tpl_main_page.php on line 180

Any help appreciated and please take into account that my hosts are shocking and could have messed with db etc without me knowing!

thanks very much & sorry if this has already been covered elsewhere - its a big thread!

Dan