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

Simple Google Analytics - Support

Views: 453,422

Results 101 to 120 of 2,165
13 Apr 2007, 1:35 AM
#101
onelove5683 avatar

onelove5683

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

Simple Google Analytics - Support

cuda:

you can track transactions too...what you sold and when
Thank you for the reply.

So that is the only major difference? I can just track my transactions in admin right?

If I choose not to use this download, can I just do what I mentioned in my first post?

Also, for your download, what if I've already deleted the install directory?

13 Apr 2007, 3:24 AM
#102
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

onelove5683:

Thank you for the reply.

So that is the only major difference? I can just track my transactions in admin right?

If I choose not to use this download, can I just do what I mentioned in my first post?

Also, for your download, what if I've already deleted the install directory?

Yes you just will not receive any e-commerce data meaning you will not see how much you make per conversion from what source and so forth...this data is quit useful for tracking your advertising and seeing what works for you and what does not. In my opinion you will be missing some key info without tracking your sales.

But yes you can do basic tracking with just pasting the code in your template


Barracuda Productions pure instincts

13 Apr 2007, 8:59 AM
#103
onelove5683 avatar

onelove5683

New Zenner

Join Date:
Apr 2007
Posts:
77
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I installed your download, seems to be working great. Thanks for the help.

Analytics doesn't appear to be tracking more than general visits, I guess I'll have to learn how to set up goals and such.

14 Apr 2007, 12:46 PM
#104
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

onelove5683:

I installed your download, seems to be working great. Thanks for the help.

Analytics doesn't appear to be tracking more than general visits, I guess I'll have to learn how to set up goals and such.

If you are looking for ecommerce tracking you must turn it on in google analytics...that might be what you are looking for


Barracuda Productions pure instincts

23 Apr 2007, 1:23 PM
#105
samantha_birt avatar

samantha_birt

New Zenner

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

Re: Simple Google Analytics - Support

MB1:

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?

How did you put the code on every page? Was it on configuration or tools?

Would be gratefu for some help. :lookaroun

Thanks Sam

23 Apr 2007, 2:47 PM
#106
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

samantha birt:

How did you put the code on every page? Was it on configuration or tools?

Would be gratefu for some help. :lookaroun

Thanks Sam

This thread is for a mod called simple google analytics which will put the code on all your pages. Just download, test, and then upload to your servre.

cuda


Barracuda Productions pure instincts

24 Apr 2007, 8:29 PM
#107
dreamdaily avatar

dreamdaily

New Zenner

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

Re: Simple Google Analytics - Support

Thank you for the great mod!

I have a funny situation, please help with your advice:

On one of my ZC sites the mod behaves just like it's supposed to, no problems there.
On another one, it seems to be working, however, the Configuration menu in the Admin console does not show up the "Google Analytics Configuration" option.
The DB is fine: the configuration_group and the configuration tables contain proper values for the mod to be shown on the menu.
Desperate, I set the Analytics configuration by hand and they are fine.
Again the mod works, that's not the issue.

What bothers me is why the Configuration menu refuses to show the Google Analytics Conf option.

Any ideas?

Thank you,
--dreamdaily

24 Apr 2007, 8:48 PM
#108
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

dreamdaily:

Thank you for the great mod!

I have a funny situation, please help with your advice:

On one of my ZC sites the mod behaves just like it's supposed to, no problems there.
On another one, it seems to be working, however, the Configuration menu in the Admin console does not show up the "Google Analytics Configuration" option.
The DB is fine: the configuration_group and the configuration tables contain proper values for the mod to be shown on the menu.
Desperate, I set the Analytics configuration by hand and they are fine.
Again the mod works, that's not the issue.

What bothers me is why the Configuration menu refuses to show the Google Analytics Conf option.

Any ideas?

Thank you,
--dreamdaily

what version are your two carts?


Barracuda Productions pure instincts

24 Apr 2007, 9:05 PM
#109
dreamdaily avatar

dreamdaily

New Zenner

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

Re: Simple Google Analytics - Support

The one that's misbehaving - 1.2.5
php - 4.4.6.

It was not too hard to make the mod work on the old version.
..Other than the Configuration menu, of course.

I can live with it like this but the restless mind wants to know why?...

I don't think it has to do with the mod itself.

Thank you,
--dreamdaily

24 Apr 2007, 9:40 PM
#110
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

dreamdaily:

The one that's misbehaving - 1.2.5
php - 4.4.6.

It was not too hard to make the mod work on the old version.
..Other than the Configuration menu, of course.

I can live with it like this but the restless mind wants to know why?...

I don't think it has to do with the mod itself.

Thank you,
--dreamdaily

out of curiosity is the site you do have it working on in the 1.3.x series? I have not tested it on 1.2.5


Barracuda Productions pure instincts

24 Apr 2007, 9:53 PM
#111
dreamdaily avatar

dreamdaily

New Zenner

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

Re: Simple Google Analytics - Support

Yes, the site that did not pose any problems is a brand new 1.3.7.

I just enabled it for the GA today and it's collecting the first load of data. The 'view page source' shows the right numbers and the checkout_success -- the correctly filled utmform.

And so does the old trusted 1.2.5.
Enabling it on the old version was not too hard at all: I had to "update" the query_factory.php file in the classes/db/mysql to include then missing bindvars() function et al.
This query_factory update did not have any effect on the Configuration "no-show" that started my question.

Do you know what function/file assembles dhtml menus for the admin console? Is there a max limit on the number of entries to put in the admin menu?

Any ideas?
--AW

24 Apr 2007, 10:09 PM
#112
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

dreamdaily:

Yes, the site that did not pose any problems is a brand new 1.3.7.

I just enabled it for the GA today and it's collecting the first load of data. The 'view page source' shows the right numbers and the checkout_success -- the correctly filled utmform.

And so does the old trusted 1.2.5.
Enabling it on the old version was not too hard at all: I had to "update" the query_factory.php file in the classes/db/mysql to include then missing bindvars() function et al.
This query_factory update did not have any effect on the Configuration "no-show" that started my question.

Do you know what function/file assembles dhtml menus for the admin console? Is there a max limit on the number of entries to put in the admin menu?

Any ideas?
--AW

You may want to start at admin/includes/boxes/configuration_dhtml.php
if 1.2.5 has that I really didn't use the 1.2 series so I am not much help with it. I doubt there is a maximum number that can be shown but you never know...let us know if you do track down the problem....sorry I can't be of more help but luckily you shouldn't have to change those settings very often if at all.


Barracuda Productions pure instincts

24 Apr 2007, 10:18 PM
#113
dreamdaily avatar

dreamdaily

New Zenner

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

Re: Simple Google Analytics - Support

OK, the mistery of the missing menu option is solved.

My bad, of course: it was just the "Admin Level" mod that was blocking the access to the new admin action. Everything is fine now.

Just in case someone is still on 1.2.x and wants to implement the Google Analytics:

Here is what needs to be done on 1.2.x:

  1. Install the Mod like described in the README file.
  2. Modify the core file /includes/classes/db/sql/query_factory.php:

a) Find around line 268

function queryTime() {
return $this->total_query_time;
}

}

b) Add right AFTER the function queryTime() and BEFORE the second curly brace the following code from the 1.3.x version of this file.
The final result looks like this:

function queryTime() {
return $this->total_query_time;
}

function getBindVarValue($value, $type) {
$typeArray = explode(':',$type);
$type = $typeArray[0];
switch ($type) {
case 'csv':
return $value;
break;
case 'passthru':
return $value;
break;
case 'float':
return (!zen_not_null($value) || $value=='' || $value == 0) ? 0 : $value;
break;
case 'integer':
return (int)$value;
break;
case 'string':
if (isset($typeArray[1])) {
$regexp = $typeArray[1];
}
return ''' . $this->prepare_input($value) . ''';
break;
case 'noquotestring':
return $this->prepare_input($value);
break;
case 'currency':
return ''' . $this->prepare_input($value) . ''';
break;
case 'date':
return ''' . $this->prepare_input($value) . ''';
break;
case 'enum':
if (isset($typeArray[1])) {
$enumArray = explode('|', $typeArray[1]);
}
return ''' . $this->prepare_input($value) . ''';
default:
die('var-type undefined: ' . $type . '('.$value.')');
}
}
/**

  • method to do bind variables to a query
    **/
    function bindVars($sql, $bindVarString, $bindVarValue, $bindVarType, $debug = false) {
    $bindVarTypeArray = explode(':', $bindVarType);
    $sqlNew = $this->getBindVarValue($bindVarValue, $bindVarType);
    $sqlNew = str_replace($bindVarString, $sqlNew, $sql);
    return $sqlNew;
    }

function prepareInput($string) {
return @mysql_real_escape_string($string);
}
}

It seems to be working without a glitch on the 1.2.5 code.

All the best,
--dreamdaily

25 Apr 2007, 2:26 AM
#114
dreamdaily avatar

dreamdaily

New Zenner

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

Re: Simple Google Analytics - Support

Dear cuda,

I have another question, now regarding the workings of the mod:

My assumption is that it does not touch the ipn_main_handler.php, therefore, it does not report on the PayPal bound clicks (regular PayPal, NOT the Express).

If this is true, then 'checkout_confirmation' page will report a larger number of exits/bounces/etc. than it really has, since many PayPal users will not be tracked once they go to the PayPal site to pay.

Also, after running ZC sites for almost 2 years I noticed that a lot of PayPal users do not "return to merchant" after paying and thus will never see the checkout_success page. In these cases, the transactional data will not get to Google.

  1. Is my assumption regarding the ipn_main_handler.php correct?
  2. If no, how does Google count the PayPal-ers?
  3. If yes, what do you think about rigging the ipn_main_handler.php?

What do you think?
--dreamdaily

25 Apr 2007, 2:33 PM
#115
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

Too it's interesting that the developer of this problem thinks.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Apr 2007, 3:12 PM
#116
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

a_berezin:

Too it's interesting that the developer of this problem thinks.

Ok look Andrew (a_berezin) you are resorting to insulting now...go back and read this thread I have given an apology for your misunderstanding of what I said and also stated that this mod is a version of your "Google Analytics Integration" mod that I changed and renamed "Simple Google Analytics." This is a community opensource project we share code and edit code to our liking. From my understanding of the GNU license I am more then welcomed to do so as long as I give credit in the files and such to any code written by others. What is your understanding of GNU license???

It is not like everytime we talk about Zen Cart we have to give a disclaimer that it started out as osCommerce.

If you would rather not share your code then do not but I do not appreciate your unnecessary insults and your lack of community support.


Barracuda Productions pure instincts

25 Apr 2007, 3:44 PM
#117
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Re: Simple Google Analytics - Support

i must agree that it was uncalled for. cuda did clarify his stance earlier in the thread.

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.

25 Apr 2007, 4:53 PM
#118
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

dreamdaily:

Dear cuda,

I have another question, now regarding the workings of the mod:

My assumption is that it does not touch the ipn_main_handler.php, therefore, it does not report on the PayPal bound clicks (regular PayPal, NOT the Express).

If this is true, then 'checkout_confirmation' page will report a larger number of exits/bounces/etc. than it really has, since many PayPal users will not be tracked once they go to the PayPal site to pay.

Also, after running ZC sites for almost 2 years I noticed that a lot of PayPal users do not "return to merchant" after paying and thus will never see the checkout_success page. In these cases, the transactional data will not get to Google.

  1. Is my assumption regarding the ipn_main_handler.php correct?
  2. If no, how does Google count the PayPal-ers?
  3. If yes, what do you think about rigging the ipn_main_handler.php?

What do you think?
--dreamdaily

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?


Barracuda Productions pure instincts

25 Apr 2007, 6:36 PM
#119
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

So there are a lot of empty words, and answer is not present.

Once again ask.
That the developer thinks about PayPal ipn_main_handler?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Apr 2007, 6:52 PM
#120
cuda avatar

cuda

Zen Follower

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

Re: Simple Google Analytics - Support

a_berezin:

So there are a lot of empty words, and answer is not present.

Once again ask.
That the developer thinks about PayPal ipn_main_handler?

Ok then you are the almighty....what would you suggest o great developer. Give an answer that will satisfy you so none of us need to hear your ridicule anymore.... :blink:


Barracuda Productions pure instincts