Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Results 1 to 20 of 2,165
14 Dec 2006, 15:14
#1
cuda avatar

cuda

Zen Follower

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

Simple Google Analytics - Support

I have simplified the Google Analytics integration process and am realeasing it for all to enjoy. Follow the readme directions for instalation.

There are only 2 files to be uploaded. One of which is one line and utilizes the $zv_onload variable and is not neccasary if you make an extra addition to your template and is explained in the readme. Also an sql patch needs to be installed.

Available:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=412

Enjoy
14 Dec 2006, 17:51
#2
zwenthe avatar

zwenthe

New Zenner

Join Date:
Dec 2006
Posts:
7
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Will this track transaction information too? Or just the success of a sale?

I thought with analytics you can track transaction details and report on it.
14 Dec 2006, 18:13
#3
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

zwenthe:

Will this track transaction information too? Or just the success of a sale?

I thought with analytics you can track transaction details and report on it.


Yes this will allow Google Analytics to track your transactions and entrance points, search queries, etc. So much info you won't know what to do with it.
14 Dec 2006, 21:36
#4
nellie avatar

nellie

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I assume this is for ver 1.3.6, will it also work for ver 1.2.7?
15 Dec 2006, 01:59
#5
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

This should work without any problems in 1.2.7 but I have not tested it. Follow the readme and if you have any issues I am happy to help. It really is a pretty simple mod.
15 Dec 2006, 18:57
#6
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Google Analytics - Support

i'm on step 2

2. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

which file is this?

step 3 wasn't a problem, and 4 and 5 look like they will be easy enough once i get step 2 done
15 Dec 2006, 19:32
#7
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

MB1:

i'm on step 2

2. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

which file is this?

step 3 wasn't a problem, and 4 and 5 look like they will be easy enough once i get step 2 done


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.
15 Dec 2006, 19:44
#8
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Google Analytics - Support

sweet i'll see if i can get past step 2 now.

also i signed up to https://www.google.com/analytics/ and they say i should put in a code on every page i want to track will this module take care of all that stuff?
15 Dec 2006, 20:08
#9
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Google Analytics - Support

well it says it's working but only after i install the code from the site

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


btw i placed that code at the bottom of the includes/templates/[your_template]/common/tpl_main_page.php page just after the code from this module and before the </body>

is there anything else i should do?
15 Dec 2006, 20:32
#10
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

Ok MB1 this is the code that should be at the bottom of your template (includes/templates/yourtemplate/common/tpl_main_page.php) just before the </body> tag (the code you posted is just the standard code from google and is included in the google_analytics.php file which you should have uploaded to your server in a folder named 'google_analytics'):

[PHP]<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>[/PHP]

So the code above is all that should be at the bottom of your template.... is it?

This module, in theory, should take care of the rest. You will have to enter your google analytics account number in your admin->configuration->google analytics configuration.

Remove the code provided by google and replace with the above Follow step 3. Then reload your site and view the source and at the bottom you should see the proper tracking code if everything is functioning properly. Let me know
15 Dec 2006, 20:42
#11
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Waiting for Data so it must be working just fine thank you
15 Dec 2006, 20:52
#12
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

yep congrats it should be working now if it says waiting for data...do one more thing go to a secure page (checkout) and make sure you do not get any warnings. Report back in a few days and let me know how it is working for you and if it is tracking orders and everything.
15 Dec 2006, 22:28
#13
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Google Analytics - Support

i logged on and went to the check out short of comfirming an order no warnings. is that what you wanted me to do?
15 Dec 2006, 22:31
#14
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Posts:
554
Plugin Contributions:
1

Re: Simple Google Analytics - Support

sorry to burst your bubble.. but a little before you released this mod a_berezin included a "variant_include" version of his mod.. which is basically doing the same thing as this (no javascript calling other javascript.. basically just puts it at the bottom of the template and checks ssl vs non-ssl). Not sure if you knew about this...
16 Dec 2006, 19:32
#15
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

getyourgameshere.com:

sorry to burst your bubble.. but a little before you released this mod a_berezin included a "variant_include" version of his mod.. which is basically doing the same thing as this (no javascript calling other javascript.. basically just puts it at the bottom of the template and checks ssl vs non-ssl). Not sure if you knew about this...


Thanks for the heads up I did not know he had released a new version I just wanted to make the process easier for everyone. I am here to help any that want to give this version a try.

Cuda
17 Dec 2006, 02:33
#16
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Yes I just installed Andrew's new version "variant_javascript" on Zen Cart 1.36 and it works good. Easy install. Just two files to upload, no editing, merges or overrides required. See the original GA mod support thread for info.

Woody
17 Dec 2006, 04:01
#17
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hey guys- There are 2 different versions. So? They both work. Please post your comments about Andrew's version in the other thread.
17 Dec 2006, 08:53
#18
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Kim:

Hey guys- There are 2 different versions. So? They both work. Please post your comments about Andrew's version in the other thread.


Huh? I certainly wasn't dissing Cuda's version/contribution. Rather I was stating another version was available and working, just as cuda had posted in the "other" mods support thread. Frankly I don't understand what the big deal is in doing so. Happy Holidays!
17 Dec 2006, 21:56
#19
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Simple Google Analytics - Support

works perfectly
26 Jan 2007, 20:58
#20
nellie avatar

nellie

New Zenner

Join Date:
Sep 2005
Posts:
49
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have this installed on ver 1.2.7, it records the visits and goal conversions, but not the transaction and order value. Any ideas where I am going wrong?