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

Google Analytics Integration

Views: 225,778

Results 81 to 100 of 660
8 Nov 2006, 8:59 PM
#81
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Google Analytics Integration

a_berezin:

You ask me about dollar values. I have answered, that the currency has no importance for me.

I have all e-commerce report in Google Analitics. Including sales reports. And products info with prices and taxes.

Andrew the discussion is regarding the implementation of a modification to your code to place the analytics code in the footer as outlined here...
http://www.zen-cart.com/forum/showpost.php?p=269632&postcount=54

It has nothing to do with currency conversion. He is trying to figure out whether his "goal conversions" in the ecommerce reports for analytics are working properly. Apparently he is not showing sales in these ecommerce reports even though there are sales being recorded elsewhere (ie, zencart admin).

9 Nov 2006, 8:33 AM
#82
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

You don't want understand me.

  1. Google Analitics code placed before </body> tag;
  2. Goal conversions in the ecommerce reports for analytics are working properly, also showing all sales.
9 Nov 2006, 6:40 PM
#83
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Google Analytics Integration

cuda:

Are you getting e-commerce tracking a_berezin with dollar values?

Cuda,

I am using the original mod and everything works perfect. I get all the data including sales data, average ticket value, etc. I did not install Andrew's Adapter version even though his approach is better solution. I was afraid to mess up something that's working if you know what I mean.

9 Nov 2006, 11:56 PM
#84
firehorse avatar

firehorse

Zen Follower

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

Re: Google Analytics Integration

Hi,

I'm using the original mod. Had a sale today but on google analytics it didn't get to 'confirm order' :(

Midnight now so I'm can't think of where to begin! :sleep:

Best regards
Alan

10 Nov 2006, 9:22 AM
#85
firehorse avatar

firehorse

Zen Follower

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

Re: Google Analytics Integration

Hi,> firehorse:

I'm using the original mod. Had a sale today but on google analytics it didn't get to 'confirm order' :(Goods news. It's appeared today with value and product. :thumbsup:

Thanks
Alan

13 Nov 2006, 3:10 PM
#86
cuda avatar

cuda

Zen Follower

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

Re: Google Analytics Integration

I switched over to a body onload event and now I am getting sales tracking I will get my mod of this mod, which loads the google code at the bottom as suggested by google, together for any one who wants to use it.

13 Nov 2006, 6:17 PM
#87
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: Google Analytics Integration

This probably a really dumb question, but can't I just sign up for an account and copy the script supplied by Google to tpl_footer.php ?? Will this cause problems?

13 Nov 2006, 6:19 PM
#88
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

cuda:

I switched over to a body onload event and now I am getting sales tracking I will get my mod of this mod, which loads the google code at the bottom as suggested by google, together for any one who wants to use it.

I love it. You might want to ask andrew if he wants to integrate it into his original mod. I don't think he completely understood what was being discussed in the fragmented discussions we were having. Might want to pm him though. See what he says. Or just put it out there and maybe he'll want to add it to the original code.

great work
mafiasam

13 Nov 2006, 10:46 PM
#89
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

The impression is created, that you discuss the module, which never saw. :frusty:
May be you talk about another one? Not my module?

13 Nov 2006, 11:54 PM
#90
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

The impression is created, that you discuss the module, which never saw. :frusty:
May be you talk about another one? Not my module?

andrew,
this is the thread that we are discussing, please view it...
http://www.zen-cart.com/forum/showpost.php?p=269632&postcount=54
Cuda was able to add code that would move the analytics code snippet to the footer. However, he had some problems initially. He has figured out the problems and is going to release a "patch" for the footer code. I suggested that you might want to take a look at it and add it to your original code.

also, i'd like to buy you a cup of coffee andrew. How do i donate to you?

mafiasam

14 Nov 2006, 9:52 AM
#91
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

mafiasam:

Cuda was able to add code that would move the analytics code snippet to the footer.My mod ALREADY add "analytics code snippet to the footer", before </body tag.
mafiasam:

However, he had some problems initially. He has figured out the problems and is going to release a "patch" for the footer code. I suggested that you might want to take a look at it and add it to your original code.I don't need this kind of patches.
mafiasam:

also, i'd like to buy you a cup of coffee andrew. How do i donate to you?If you really have visited my site, you would see the button donate and statistics:
Totally downloaded - 6701
Totally donated - 0 :D :D :D :D

15 Nov 2006, 4:36 AM
#92
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

My mod ALREADY add "analytics code snippet to the footer", before </body tag.

Am I seeing things?

I just did an install of your code and here is where the code snippet shows up on my page...

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>

<script type="text/javascript">
_uacct = "UA-737751-1";
urchinTracker();
</script>
</head>

It looks like it's in the header to me. Am I doing something wrong?

mafiasam

15 Nov 2006, 4:47 AM
#93
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: Google Analytics Integration

It's still before the </body> tag. Just not right before the </body> tag. I think that's what Andrew is saying although I do agree that it probably should be very near the close tag to keep the site loading properly if there are problems with the Google Analytics server.

15 Nov 2006, 1:34 PM
#94
cuda avatar

cuda

Zen Follower

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

Re: Google Analytics Integration

dinki:

It's still before the </body> tag. Just not right before the </body> tag. I think that's what Andrew is saying although I do agree that it probably should be very near the close tag to keep the site loading properly if there are problems with the Google Analytics server.

You are right it is before the body tag just way before. Like you said if google analytics servers are having problems so is your shop with this configuration. This is why I set out to create a version that loads the code just before the </body> tag. Will clean it up and get it released for you guys.

15 Nov 2006, 3:34 PM
#95
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

cuda:

You are right it is before the body tag just way before. Like you said if google analytics servers are having problems so is your shop with this configuration. This is why I set out to create a version that loads the code just before the </body> tag. Will clean it up and get it released for you guys.

thanks cuda

15 Nov 2006, 3:40 PM
#96
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

My mod ALREADY add "analytics code snippet to the footer", before </body tag.
I don't need this kind of patches.
If you really have visited my site, you would see the button donate and statistics:
Totally downloaded - 6701
Totally donated - 0 :D :D :D :D

total donated is now 1.

sorry it couldn't be more andrew.
I'll try and do it again next week.

anyone who uses your contributions should try and donate something.

http://zen-cart.spb.ru/index.php?main_page=contributions

mafiasam

15 Nov 2006, 6:17 PM
#97
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

OK!
I do not want to anybody anything to prove. You can see it on zen-cart.spb.ru:

<script type="text/javascript">
function zen_urchinTracker() {
  var scrUTM = document.createElement("script");
  scrUTM.type = "text/javascript";
  scrUTM.src = "http://www.google-analytics.com/urchin.js";
  document.body.appendChild(scrUTM);
  var scrUTM = document.createElement("script");
  scrUTM.type = "text/javascript";
  scrUTM.innerHTML = "\n  _uacct = 'UA-XXXXXX-X';\n  urchinTracker();\n";
  document.body.appendChild(scrUTM);
  
}
</script>
</head>

<body id="indexBody" onload="javascript:zen_urchinTracker();">

and

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

</script></body></html>

I don't need any donation. It was simply experiment with expected result: downloaded 6701 : donated 0.

15 Nov 2006, 9:56 PM
#98
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

I don't need any donation. It was simply experiment with expected result: downloaded 6701 : donated 0.

I'm happy to donate. You worked hard on your contributions.

17 Nov 2006, 8:14 AM
#99
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

mafiasam:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-737751-1"; urchinTracker(); </script> </head> ``` > It looks like it's in the header to me. Am I doing something wrong? It looks like you use very old code.
17 Nov 2006, 8:24 AM
#100
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

It looks like you use very old code.

I just reinstalled it from your web site last week and did sql install.