Zen Cart Logo
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Views: 225,777

Results 141 to 160 of 660
30 Nov 2006, 10:00
#141
a_berezin avatar

a_berezin

Deceased

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

Google Analytics Integration

getyourgameshere.com!
May be, may be. But I already rewrite this mod.
Download and try last version.

v 1.2.0 29.11.2006 12:41
NB!

  1. Remove /includes/modules/pages/checkout_success/jscript_google_analytics.php
  2. Replace /includes/templates/YOUR_TEMPLATE/jscript/jscript_google_analytics.php by new one.
30 Nov 2006, 10:31
#142
pytelcz avatar

pytelcz

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

getyourgameshere.com!
May be, may be. But I already rewrite this mod.
Download and try last version.

v 1.2.0 29.11.2006 12:41
NB!

  1. Remove /includes/modules/pages/checkout_success/jscript_google_analytics.php
  2. Replace /includes/templates/YOUR_TEMPLATE/jscript/jscript_google_analytics.php by new one.

where can i download the latest version?

30 Nov 2006, 13:25
#144
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

Andrew, I've just add your latest version: must I delete google original code?

ps: google say me that thei can't solve the problem, because scipt is written by another customer.
Say me that I can call their programmer at this address
http://www.google.com/analytics/it-it/support_partner_provided.html.

30 Nov 2006, 13:53
#145
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

100asa
Better way - remove my code and forget about it :( . My script does not work on your site.

30 Nov 2006, 15:00
#146
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

:-(
why your new script don't work on my site?

30 Nov 2006, 15:09
#147
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

I don't know :-( Sorry :(

30 Nov 2006, 15:57
#148
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

100asa
I really don't understand why it doesn't work.
But if you pm or email me your ftp login/passw, I can try to understand what was happen.

30 Nov 2006, 16:02
#149
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

Sorry, but I've only 1 login/passw to enter my website, and it's secret to all!
I can send to you all the file you want, for testing.

30 Nov 2006, 16:20
#150
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

100asa
It will not help. Let all remains as is.

30 Nov 2006, 16:31
#151
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

It's not better I send to you all file you want? so you can ceck the file.

30 Nov 2006, 17:48
#152
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Google Analytics Integration

I just came across this thread, but can someone tell me what the benefit is? I put the Google code in tpl_main_page.php, at the bottom right before the </body> tag and it has been working beautifully. I'm guessing there is a good reason to use the mod, I'd just like to know why before I start playing with it :wink2:

Thanks!

30 Nov 2006, 17:51
#153
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

Google analytics works with your ecommerce transaction too?

30 Nov 2006, 18:02
#154
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Danielle!
No any benefits! Hard coded easier and more reliably. I recommend all to put the Google code in tpl_main_page.php.

30 Nov 2006, 18:12
#155
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Google Analytics Integration

100asa:

Google analytics works with your ecommerce transaction too?

I don't know, I haven't used that. I use adwords so I use conversion tracking through there. Does this mod track the ecommerce transactions?

30 Nov 2006, 18:16
#156
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

it would :-)

02 Dec 2006, 10:16
#157
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Danielle:

I put the Google code in tpl_main_page.php, at the bottom right before the </body> tag and it has been working beautifully.
OK. For some counters and tracking systems same as user tracking, bbclone, phpMyVisiters etc, I also use tpl_footer. And for those, who could not or don't want to use jscript_google_analytics.php and like to change of a code, I can offer other variant.
Download and test.

02 Dec 2006, 10:43
#158
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

OK. For some counters and tracking systems same as user tracking, bbclone, phpMyVisiters etc, I also use tpl_footer. And for those, who could not or don't want to use jscript_google_analytics.php and like to change of a code, I can offer other variant.
Download and test.
download link is broken:
File "zc-contribution/GoogleAnalytics.zip" not found in download directory...

11 Dec 2006, 17:02
#159
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Google Analytics Integration

I posted earlier that I had manually added the Analytics tracking code to my tpl_main_page.php file. I just removed it because the javascript link for google is a src=http:// so when customers are on an https:// page of the site, e.g. login, checkout, etc. a warning box pops up that says "This page contains both secure and insecure items. Do you want to display the insecure items?"

Will this happen if I use this mod? I'm assuming it will, but wanted to ask anyways!

11 Dec 2006, 17:30
#160
cuda avatar

cuda

Zen Follower

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

Re: Google Analytics Integration

Danielle:

I posted earlier that I had manually added the Analytics tracking code to my tpl_main_page.php file. I just removed it because the javascript link for google is a src=http:// so when customers are on an https:// page of the site, e.g. login, checkout, etc. a warning box pops up that says "This page contains both secure and insecure items. Do you want to display the insecure items?"

Will this happen if I use this mod? I'm assuming it will, but wanted to ask anyways!

This can be fixed by adding a simple check if you are on a secure page and then include the secure google analytics code like this...

if ($request_type == 'NONSSL') {
	$google_analytics_url = "http://www.google-analytics.com/urchin.js";
} else {
	$google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
}
  echo '<script src="' . $google_analytics_url . '" type="text/javascript">
</script>

I am working on getting my version of this mod avaialble for all that minimizes JS and allows you to track sales based on this useful mod from a_berezin.