If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Started by a_berezin on 20 Aug 2006, 8:28 AM · Views: 226,077

Results 141 to 160 of 660
30 Nov 2006, 10:00 AM
#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.

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

30 Nov 2006, 10:31 AM
#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, 1:25 PM
#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, 1:53 PM
#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.

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

30 Nov 2006, 3:00 PM
#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, 3:09 PM
#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 :(

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

30 Nov 2006, 3:57 PM
#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.

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

30 Nov 2006, 4:02 PM
#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, 4:20 PM
#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.

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

30 Nov 2006, 4:31 PM
#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, 5:48 PM
#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!

Danielle

30 Nov 2006, 5:51 PM
#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, 6:02 PM
#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.

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

30 Nov 2006, 6:12 PM
#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?

Danielle

30 Nov 2006, 6:16 PM
#156
100asa avatar

100asa

Totally Zenned

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

Re: Google Analytics Integration

it would :-)

2 Dec 2006, 10:16 AM
#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.

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

2 Dec 2006, 10:43 AM
#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, 5:02 PM
#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!

Danielle

11 Dec 2006, 5:30 PM
#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.


Barracuda Productions pure instincts