Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,171

Results 801 to 820 of 2,165
30 Jul 2008, 2:05 AM
#801
littleturtlemama avatar

littleturtlemama

New Zenner

Join Date:
Mar 2007
Posts:
37
Plugin Contributions:
0

Simple Google Analytics - Support

econcepts:

It takes a few days sometimes to actually start seeing data. have you resolved this or are you still getting no data returned?

It's still not resolved. google's still saying that it's receiving data, but still also saying there's been no visits which is absolutely incorrect, I've had numerous sales since it's been saying zero visits. I uninstalled and did a fresh install of the simple googe analytics thinking that would help, but the same thing is happening.

30 Jul 2008, 6:50 AM
#802
edwinlloyd avatar

edwinlloyd

New Zenner

Join Date:
Feb 2007
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

I have seen in a number of instances where the installation of JAM (creating a new "footer" file for the checkout success page) causes problems with the code that is inserted during Google Analytics install which goes on the "tpl_main_page.php" page.

This might be something to look into with the JROX code as well.

To resolve this I have moved users JAM code to the tpl_main_page.php file and added an if then statement as such:

Hi econcepts,

I would be really grateful if you could explain what this means. Since I installed JROX, my site is also no longer showing any e-commerce data, though the visits and funnel visualisation show the correct data being fed through.

What did you mean by "moving users JAM code"? Is it possible to solve this just by moving the google_analytics.php to the custom checkout_success folder?

Many thanks,

Edwin

31 Jul 2008, 3:04 PM
#803
misscharlotte avatar

misscharlotte

New Zenner

Join Date:
May 2008
Location:
Pennsylvania
Posts:
25
Plugin Contributions:
0

Re: Simple Google Analytics - Support

fashions:

Results LIKE THIS:
_uacct = "UA-#######-1";
urchinTracker();
</script>

</body></html>

I also had issues getting this to work. Then, after logging into my Google Analytics account and checking my tracking code, I realized I needed to replace the -1 with a -4. Mine works fine now and I'm happily tracking!

Hope this information can help someone else.

-Melissa

3 Aug 2008, 1:07 AM
#804
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi there, just installed. I see the code on my pages however I do not get data in google ( yes I have checked my account code number) also this test site http://checkwebsite.erigami.com/googleanalytics.html tells me that there are errors:

Visitor tracking is not OK

Google Analytics JavaScript file is not downloaded
Google Analytics Account variable is not found

Any help or ideas on what to do next would be greatly appreciated.

3 Aug 2008, 2:23 AM
#805
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Simple Google Analytics - Support

By the way.... this is the code I see in source view:

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-xxxxxx-7"); pageTracker._initData(); pageTracker._trackPageview(); </script> </body></html>
3 Aug 2008, 9:52 PM
#806
littleturtlemama avatar

littleturtlemama

New Zenner

Join Date:
Mar 2007
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

it's still not working for me, either. When I check with the truwex page, I get this response;

Google Analytics elements are detected Visitor tracking is not OK
Google Analytics JavaScript file is not downloaded
Google Analytics Account variable is not found
Google Analytics WebBeacon is detected
Google Analytics Cookie is detected any ideas on why it's not working? I'm running 1.3.7.

6 Aug 2008, 4:34 PM
#807
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Simple Google Analytics - Support

The analytics portion of this has been working great for me. The conversion has not been working however. I spent some time generating debug info, and am posting here in the hopes of getting some ideas for problems and fixes going.

I generated a test conversion through google search. The "Google Site Stats" tag did not show up on the checkout_success page, however the analytics and conversion tracking code did show up in the view source for the page. The conversion code looked like:

<!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 106937XXXX;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
	if (0.01) {
	  var google_conversion_value = 0.01;
	}
	var google_conversion_label = "purchase";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/106937XXXX/?value=0.01&label=purchase&script=0">
</noscript>

This appears to me to be pretty close to the exact code snippet given for the conversion on the adwords site, with the exception that the label now says "purchase" instead of "JDY3CMufSxC12_X9Aw" and the " if (0.01) {" clause on the conversion value.

The tracking image https://www.googleadservices.com/pagead/conversion/106937XXXX does not show up in the page when I use FireBug, however when I manually enter the image URL in the browser it shows up fine.

There are two possible issues I can see at this point:

  1. there is a page error "__utmSetTrans not defined", which refers to line one of the body of the page. does anyone have an idea what this code does or where it came from? A little google on the function name shows it to be related to google conversion tracking. I don't see where it should be defined however.
<body id="checkoutsuccessBody" onload="javascript:__utmSetTrans();">
  1. I have the "Corner of Trust" contrib installed just after the point at which the conversion code is inserted. Perhaps this is causing a conflict. I will try removing that and see if it makes any difference and will report back later. I don't think this is the problem as conversion tracking also does not work on another site without Corner of Trust, but want to eliminate the possibility completely.

Thanks to anyone who read this far and has any suggestions for debugging steps.

6 Aug 2008, 4:47 PM
#808
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Simple Google Analytics - Support

:clap:

Got it working, the problem was an old version of includes/modules/pages/checkout_success/on_load_main.js that was sitting around from an older installation. this line not only caused the javascript error, it also prevented the conversions from being tracked. the image still does not show up, but a conversion was recorded by google.

many thanks for a great contribution, and for those of your having problems with conversion tracking "may my fix be your fix"

:hug:

6 Aug 2008, 4:57 PM
#809
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Of course, all of this was spelled out by econcepts in the documentation:

NOTE to those upgrading from version 1.0

The new "ga.js" version of tracking does not need one bit of JavaScript that was included in the previous "urchin.js"
versions. You will need to DELETE this line from your code.

includes/modules/pages/checkout_success/on_load_main.js

REMOVE the following line from that file "javascript:__utmSetTrans();"

If that is the ONLY line you see in the file, than it is safe to completely DELETE the file. If this is not the only
line found in that file, then delete only that line, and save the file. Re-upload the new version to your site.
Keeping this line in when using the new ga.js tracking code can causee JavaScript errors to pop up on your site (since
the new code does not refer to this function anymore).

13 Aug 2008, 5:39 PM
#810
asappia avatar

asappia

New Zenner

Join Date:
May 2008
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi
I've a problem with e-commerce conversion:
since the end of june it doesn't work anymore.

I'm guessing what's changed, but .... nothing seems wrong....

may someone suggest me what to check ?

(new ga.js code)

thanks in advance

14 Aug 2008, 8:38 AM
#811
edwinlloyd avatar

edwinlloyd

New Zenner

Join Date:
Feb 2007
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

asappia

I am suffering this problem too and cannot find a solution.

Did this problem coincide with the installation of JROX by any chance?

Edwin

14 Aug 2008, 11:36 AM
#812
asappia avatar

asappia

New Zenner

Join Date:
May 2008
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I don't apply the JROX extension at all.

14 Aug 2008, 12:23 PM
#813
cliffrock avatar

cliffrock

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Simple Google Analytics - Support

My first post in this thread.

What on earth am I doing wrong? I had analytics/conversion running perfectly before. Then I had a custom CSS based design uploaded as I upgraded the Zen Cart to the latest. Now I have tracking on everything at https://www.youneedhidef.com/blog because I used a Wordpress add-on to put the code there; but on the rest of my site I cannot get it to work.
main site: https://www.youneedhidef.com

Can someone view the source codes and see what I should do? I followed directions but I think because of my custom CSS template I am doing it wrong.

Thanks in advance.

14 Aug 2008, 12:31 PM
#814
asappia avatar

asappia

New Zenner

Join Date:
May 2008
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

same here.

I copied classic template to a new directory, and adapted it, but.... after this change (a new template) it doesn't work anymore.

15 Aug 2008, 12:04 PM
#815
edwinlloyd avatar

edwinlloyd

New Zenner

Join Date:
Feb 2007
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts,

I suspect you are taking a well-earned summer holiday, hence your recent absence from this forum.

I am still struggling to get the e-commerce reporting of Google Analytics working following the installation of the JROX JAM affiliate software.

In the installation of this software a new tpl_footer file is created and put in: /includes/templates/custom****/checkout_success/tpl_footer.php

****I have compared the source code of the order_confirmation page (stage 3 of 4 in checkout) with that of checkout_success (stage 4 of 4).

In Stage 3 at the end of the viewed source, the order is Copyright message, Parse time display (if activated), Banner 6, and finally Google analytics.

In Stage 4, the viewed source shows the following order: Copyright message, javascript for affiliates/sale.php code, Parse time, and finally banner 6.

So the JROX code is introduced into the checkout_success footer correctly, but the google analytics code is never executed. Could this be to do with the location or existence of the new checkout_success page? How would I fix this please?

Thanks,

Edwin

27 Aug 2008, 11:08 AM
#816
edwinlloyd avatar

edwinlloyd

New Zenner

Join Date:
Feb 2007
Posts:
37
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have managed to answer this question for myself. In case it is of use to other people, the solution was to:
copy the code from:
\includes\templates\custom\google_analytics\google_analytics.php
lock, stock and barrel into the bottom of:
\includes\templates\custom\checkout_success\tpl_footer.php and save the file.
It now works.

30 Aug 2008, 12:11 PM
#817
kersielam avatar

kersielam

New Zenner

Join Date:
Jun 2008
Posts:
7
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi there

I have installed Simple Google Analytics recently, I see Google Analytic is working. But the adwords conversion tracking for signup and purchase do not work. It still says verification failed.

I want to know if I have to put the google provided conversion code anywhere in the website. Please tell me where I should put the code for signup conversion code and purchase success conversion code.

Up to now, I have setup all the google analytics setting in zen cart admin.
Here is my site. http://www.omegagolfshop.com

Please help, I have tried for two weeks already.
Thanks

2 Sep 2008, 9:52 PM
#818
unhappydave avatar

unhappydave

New Zenner

Join Date:
Jul 2008
Posts:
52
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Some may encounter this error, Check this if you can not get connected to google.
If you don't have 8 digits entered the mod will fail. If you don't have UA-1234567-8 it may be because google doesn't list #8 on the Profile Page and you have left it off or added one of these:
UA-123456-7 or UA-1234567; so your a digit short.

Clickj the test connection from google. It will fail- in the code they will now list your full UA. Make sure this is entered in the Admin so when its called it is the correct and full UA- might want to throw it ini GC also if you botched it like i did.

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-xxxxxxx-X"); pageTracker._trackPageview(); </script>
7 Sep 2008, 9:39 AM
#819
cufflinks2wear avatar

cufflinks2wear

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello everyone,

I have successfully installed SGA into my zencart and my status is now "Waiting For Data". I am sure it is correctly installed - so there shouldnt be any problems here.

My questions are regarding conversion tracking (NOT google analytics). And I have searched the whole forum (over a few days) but got more confused after that. So hoping someone can answer these questions individually.

  1. I believe I can use SGA for Conversion Tracking. This is because I can Activate Conversion Tracking and also set my Conversion Tracking Number on my zencart Admin at Configuration->Google Analytics Configuration. So I am going to conclude that I can use SGA for Conversion Tracking. Is this correct?

  2. How do I use SGA for conversion tracking? Do I just set conversion goals and funnel on my Google Analytics account? And that's all to it?

Or do I have to copy and paste the Conversion Tracking code onto one of my zencart page?

  1. If I have to copy and paste the Conversion Tracking code, I will create a Conversion Tracking code for Purchase/Sale. When I create the Conversion Tracking code, what do I put for the "Revenue for your action"? Do I put <?php echo TEXT_YOUR_ORDER_NUMBER . $zv_orders_id; ?> or something else?

  2. After creating the conversion tracking code, where do I paste the code to if I want to track purchase? I know it should be one of the file connected to checkout_success but I cant figure out which file and where.

Thanks everyone! I am definitly a Noob as far as this is concern and would appreciate all the help I can get.

Mike
http://www.cufflinks2wear.com/

9 Sep 2008, 2:00 AM
#820
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I'm facing the same problem as many, the GA data is not accurate, I can see it because I have other means to verify, in fact even the transactions are not well reported on GA's site. This, with the new ga code.

So I was looking around for some solution when I saw this difference :

On Google site the code is :

var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();

In /catalog/includes/templates/YOUR_TEMPLATE/google_analytics/google_analytics.php the code is :

var pageTracker = _gat._getTracker(\"" . GOOGLE_ANALYTICS_UACCT . "\");
pageTracker._initData();
pageTracker._trackPageview();

Do we need to correct the google_analytics.php file so that it gets the same code as the one given on https://www.google.com/support/googleanalytics/bin/answer.py?answer=55488&hl=en_US&utm_id=ad
???

Thanks for help

Regards
Hubert